Published package / CLIR

w3c.css_cascade

v0.1.0

CSS Cascading and Inheritance Level 5

A package can be printed as a standalone module in a general-purpose language that answers without the rules engine: an answer and its status, with no proof, hashes or canonical document. Everything on this page comes from the generation plan built with the index; the gallery computes nothing of its own.

Generation plan

The plan builds: the package can be printed as a module.

plan format
law-backend-plan/0.9
capabilities
closure, defeasible, negation, status:not_known

Checked against package scenarios

39 of 39 scenarios matched on ts, py, go

answer statuses
FALSE_ONLY 1 · NEITHER 3 · TRUE_ONLY 35

Outcomes are pinned in the consumer gate manifest; the gate must reproduce them.

Target languages

print this plangopyts

refuse this plan · 13
  • bsl версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • cs версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • dart версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • erl версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • ex версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • java версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • kt версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • lua версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • php версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • rb версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • rs версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • scala версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • swift версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU

Print the module from a repository checkout

./law dev backend corpus/clir/w3c-css-cascade.lawir.json --target ts --target py --target go --out DIR

Module interface

Questions are public relations with a producing rule; inputs are the facts a question reads. Function names follow the language: ask_… in Python, ask.… in TypeScript, Ask… in Go.

Questions · 3

NameParametersMeaningReadsSources
cascaded_value_fromtext, text, textdeclaration is the cascaded value for this property on this elementassigned_to_layerband_rankconditional_group_condition_trueconditional_group_is_element_sensitivecontext_nested_indeclaration_contextdeclaration_origindeclaration_recordeddeclared_by_layer_blockdeclared_by_layer_statementdeclared_by_layered_importdeclared_inside_conditional_groupdeclared_outside_conditional_groupdeclares_propertydocument_orderelement_attachedfirst_declared_beforehas_important_annotationhost_language_assigns_ua_originhost_language_leaves_default_hint_originin_applicable_style_sheetmapped_by_style_rulepresentational_hintproperty_is_knownqualifying_conditions_trueselector_matchesspecificityunlayered_declarationvalue_matches_property_syntaxsection/4_2
declaration_origintext, textdeclaration has this cascade originhost_language_assigns_ua_originhost_language_leaves_default_hint_originpresentational_hintsection/6_5
wins_cascadetext, textdeclaration is sorted before the other by the cascadeassigned_to_layerband_rankconditional_group_condition_trueconditional_group_is_element_sensitivecontext_nested_indeclaration_contextdeclaration_origindeclaration_recordeddeclared_by_layer_blockdeclared_by_layer_statementdeclared_by_layered_importdeclared_inside_conditional_groupdeclared_outside_conditional_groupdeclares_propertydocument_orderelement_attachedfirst_declared_beforehas_important_annotationhost_language_assigns_ua_originhost_language_leaves_default_hint_originin_applicable_style_sheetmapped_by_style_rulepresentational_hintproperty_is_knownqualifying_conditions_trueselector_matchesspecificityunlayered_declarationvalue_matches_property_syntaxsection/6_1section/6_4

Inputs · 29

NameParametersMeaning
assigned_to_layertext, textdeclaration is explicitly assigned to this cascade layer
band_ranktext, decband occupies this position in the origin-and-importance precedence list
conditional_group_condition_truetextthe condition of the conditional group rule the layer is defined in is true
conditional_group_is_element_sensitivetextthe conditional group rule the layer is defined in can evaluate differently for different elements in the document
context_nested_intext, textthe first context is nested inside the second in shadow-including tree order
declaration_contexttext, textdeclaration is sourced from this encapsulation context
declaration_origintext, textdeclaration has this cascade origin
declaration_recordedtextdeclaration is among the declarations the case records
declared_by_layer_blocktextlayer is declared using a @layer block at-rule
declared_by_layer_statementtextlayer is declared using a @layer statement at-rule
declared_by_layered_importtextlayer is declared using an @import rule with the layer keyword or layer() function
declared_inside_conditional_grouptextlayer is defined inside a conditional group rule
declared_outside_conditional_grouptextlayer is not defined inside a conditional group rule
declares_propertytext, textdeclaration declares this property
document_ordertext, decposition of the declaration in document order
element_attachedtextdeclaration is attached directly to an element, such as the contents of a style attribute
first_declared_beforetext, textthe first layer is first declared before the second in the layer order of its origin and context
has_important_annotationtextthe last two non-whitespace, non-comment tokens in the declaration's value are the delimiter token ! followed by the identifier token important
host_language_assigns_ua_origintextthe document language defines that this presentational hint enters the cascade as a UA-origin rule
host_language_leaves_default_hint_origintextthe document language does not assign the presentational hint to the UA origin, so it enters the special-purpose author presentational hint origin
in_applicable_style_sheettextdeclaration belongs to a style sheet that currently applies to this document
mapped_by_style_ruletextdeclaration is mapped by means of a style rule selector
presentational_hinttextdeclaration is a non-CSS presentational hint translated from the source document's markup
property_is_knowntextthe declaration's property is a known property name
qualifying_conditions_truetextevery conditional rule qualifying the declaration has a true condition
selector_matchestext, textdeclaration belongs to a style rule whose selector matches the element
specificitytext, dec, dec, decspecificity of the style rule the declaration appears in, as computed by the Selectors module
unlayered_declarationtextdeclaration is not assigned to any explicit cascade layer
value_matches_property_syntaxtextthe declaration's value matches the syntax for that property