Published package / CLIR
w3c.css_cascade
v0.1.0CSS 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
Target languages
gopyts
refuse this plan · 13
bslверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUcsверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUdartверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUerlверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUexверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUjavaверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUktверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUluaверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUphpверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUrbверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUrsверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUscalaверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RUswiftверсия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
./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
| Name | Parameters | Meaning | Reads | Sources |
|---|---|---|---|---|
| cascaded_value_from | text, text, text | declaration is the cascaded value for this property on this element | assigned_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_syntax | section/4_2 |
| declaration_origin | text, text | declaration has this cascade origin | host_language_assigns_ua_originhost_language_leaves_default_hint_originpresentational_hint | section/6_5 |
| wins_cascade | text, text | declaration is sorted before the other by the cascade | assigned_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_syntax | section/6_1section/6_4 |
Inputs · 29
| Name | Parameters | Meaning |
|---|---|---|
| assigned_to_layer | text, text | declaration is explicitly assigned to this cascade layer |
| band_rank | text, dec | band occupies this position in the origin-and-importance precedence list |
| conditional_group_condition_true | text | the condition of the conditional group rule the layer is defined in is true |
| conditional_group_is_element_sensitive | text | the conditional group rule the layer is defined in can evaluate differently for different elements in the document |
| context_nested_in | text, text | the first context is nested inside the second in shadow-including tree order |
| declaration_context | text, text | declaration is sourced from this encapsulation context |
| declaration_origin | text, text | declaration has this cascade origin |
| declaration_recorded | text | declaration is among the declarations the case records |
| declared_by_layer_block | text | layer is declared using a @layer block at-rule |
| declared_by_layer_statement | text | layer is declared using a @layer statement at-rule |
| declared_by_layered_import | text | layer is declared using an @import rule with the layer keyword or layer() function |
| declared_inside_conditional_group | text | layer is defined inside a conditional group rule |
| declared_outside_conditional_group | text | layer is not defined inside a conditional group rule |
| declares_property | text, text | declaration declares this property |
| document_order | text, dec | position of the declaration in document order |
| element_attached | text | declaration is attached directly to an element, such as the contents of a style attribute |
| first_declared_before | text, text | the first layer is first declared before the second in the layer order of its origin and context |
| has_important_annotation | text | the 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_origin | text | the document language defines that this presentational hint enters the cascade as a UA-origin rule |
| host_language_leaves_default_hint_origin | text | the 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_sheet | text | declaration belongs to a style sheet that currently applies to this document |
| mapped_by_style_rule | text | declaration is mapped by means of a style rule selector |
| presentational_hint | text | declaration is a non-CSS presentational hint translated from the source document's markup |
| property_is_known | text | the declaration's property is a known property name |
| qualifying_conditions_true | text | every conditional rule qualifying the declaration has a true condition |
| selector_matches | text, text | declaration belongs to a style rule whose selector matches the element |
| specificity | text, dec, dec, dec | specificity of the style rule the declaration appears in, as computed by the Selectors module |
| unlayered_declaration | text | declaration is not assigned to any explicit cascade layer |
| value_matches_property_syntax | text | the declaration's value matches the syntax for that property |