Опубликованный пакет / CLIR

w3c.css_cascade

v0.1.0

CSS Cascading and Inheritance Level 5

Пакет можно напечатать самостоятельным модулем на языке общего назначения, который отвечает без движка правил: ответ и статус, без доказательства, хэшей и канонического документа. Всё на этой странице взято из плана кодогенерации, построенного вместе с индексом; витрина ничего не вычисляет сама.

План кодогенерации

План строится: пакет печатается модулем.

формат плана
law-backend-plan/0.9
возможности
closure, defeasible, negation, status:not_known

Сверка сценариями пакета

совпало 39 из 39 сценариев на ts, py, go

статусы ответов
FALSE_ONLY 1 · NEITHER 3 · TRUE_ONLY 35

Исходы закреплены в манифесте ворот потребителя; ворота обязаны их повторить.

Целевые языки

печатают этот планgopyts

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

Напечатать модуль из рабочей копии репозитория

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

Интерфейс модуля

Вопросы — публичные отношения с производящим правилом; входы — факты, которые вопрос читает. Имена функций следуют языку: ask_… в Python, ask.… в TypeScript, Ask… в Go.

Вопросы · 3

ИмяПараметрыСмыслЧитаетИсточники
cascaded_value_fromtext, text, textdeclaration is the cascaded value for this property on this elementENassigned_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 originENhost_language_assigns_ua_originhost_language_leaves_default_hint_originpresentational_hintsection/6_5
wins_cascadetext, textdeclaration is sorted before the other by the cascadeENassigned_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

Входы · 29

ИмяПараметрыСмысл
assigned_to_layertext, textdeclaration is explicitly assigned to this cascade layerEN
band_ranktext, decband occupies this position in the origin-and-importance precedence listEN
conditional_group_condition_truetextthe condition of the conditional group rule the layer is defined in is trueEN
conditional_group_is_element_sensitivetextthe conditional group rule the layer is defined in can evaluate differently for different elements in the documentEN
context_nested_intext, textthe first context is nested inside the second in shadow-including tree orderEN
declaration_contexttext, textdeclaration is sourced from this encapsulation contextEN
declaration_origintext, textdeclaration has this cascade originEN
declaration_recordedtextdeclaration is among the declarations the case recordsEN
declared_by_layer_blocktextlayer is declared using a @layer block at-ruleEN
declared_by_layer_statementtextlayer is declared using a @layer statement at-ruleEN
declared_by_layered_importtextlayer is declared using an @import rule with the layer keyword or layer() functionEN
declared_inside_conditional_grouptextlayer is defined inside a conditional group ruleEN
declared_outside_conditional_grouptextlayer is not defined inside a conditional group ruleEN
declares_propertytext, textdeclaration declares this propertyEN
document_ordertext, decposition of the declaration in document orderEN
element_attachedtextdeclaration is attached directly to an element, such as the contents of a style attributeEN
first_declared_beforetext, textthe first layer is first declared before the second in the layer order of its origin and contextEN
has_important_annotationtextthe last two non-whitespace, non-comment tokens in the declaration's value are the delimiter token ! followed by the identifier token importantEN
host_language_assigns_ua_origintextthe document language defines that this presentational hint enters the cascade as a UA-origin ruleEN
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 originEN
in_applicable_style_sheettextdeclaration belongs to a style sheet that currently applies to this documentEN
mapped_by_style_ruletextdeclaration is mapped by means of a style rule selectorEN
presentational_hinttextdeclaration is a non-CSS presentational hint translated from the source document's markupEN
property_is_knowntextthe declaration's property is a known property nameEN
qualifying_conditions_truetextevery conditional rule qualifying the declaration has a true conditionEN
selector_matchestext, textdeclaration belongs to a style rule whose selector matches the elementEN
specificitytext, dec, dec, decspecificity of the style rule the declaration appears in, as computed by the Selectors moduleEN
unlayered_declarationtextdeclaration is not assigned to any explicit cascade layerEN
value_matches_property_syntaxtextthe declaration's value matches the syntax for that propertyEN