Derivation: every row of the Selectors 4 overview table (section 2), plus every numbered section of Selectors 4 sections 3 to 16 that defines a selector, a grammar rule or an error-handling rule; the Selectors 3 conformance section; every numbered section of Cascade 4 sections 2 to 7; the additions of Cascade 5 (sections 2, 4.8, 6.4, 7.3.5, 8) and Cascade 6 (sections 2.1, 2.5, 3); and the CSS Scoping 1 sections that SVG 2 relies on.
Out of scope for an SVG user agent without script, and why: Selectors 4 section 17 (API hooks for DOM methods; only the :scope fallback is covered), Appendix A (guidance for document-language authors), Appendix C (:visited privacy), the CSSOM sections of Cascade 5 and 6, and the input, resource-state and display-state pseudo-classes (HTML form, media and top-layer state that no SVG element can have; each still has a row recording how Donner treats the name). CSS tokenization and escaping, property-name case, @media, @supports, @namespace syntax and @font-face are owned by other ledgers and appear here only where the cascade depends on them.
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/selector-list | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#grouping | A comma-separated list of complex selectors represents the union of its members. | donner/css/parser/SelectorParser.cc:226-257 | donner/css/Selector.h:111-130; donner/svg/components/style/StyleSystem.cc:512-534 | SelectorParser.Multiple (donner/css/parser/tests/SelectorParser_tests.cc:65); StylesheetParser.WithRules (donner/css/parser/tests/StylesheetParser_tests.cc:340) | - | - | Parsed and matched as a union. |
| feat:selectors-4/forgiving-selector-list | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#forgiving-selector | A forgiving list parses each member separately and discards members that fail; an empty result is valid and matches nothing. Used only by :is() and :where(). | donner/css/parser/SelectorParser.cc:153-183, 586-587 | donner/css/selectors/PseudoClassSelector.cc:38-40 (empty list allowed); donner/css/Selector.h:202-205 | SelectorParser.ForgivingSelectorList (donner/css/parser/tests/SelectorParser_tests.cc:449); SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28); SelectorTests.SupportedPseudoClassesSurviveForgivingLists (donner/css/tests/Selector_tests.cc:120) | - | - | Invalid and unsupported members are dropped individually, including members that hold a pseudo-element. |
| feat:selectors-4/forgiving-relative-selector-list | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#forgiving-selector | The 2026 draft makes the :has() argument a plain (unforgiving) relative selector list; the forgiving relative production is no longer consumed by any Level 4 selector. | donner/css/parser/SelectorParser.cc:193-223 (helper kept as a public entry point), donner/css/parser/SelectorParser.cc:590-591 (:has uses the strict parser) | donner/css/selectors/PseudoClassSelector.cc:41-43 | SelectorParsing.ForgivingRelativeSelectorList (donner/css/parser/tests/SelectorParser_tests.cc:520); SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) asserts :has(> .ok, :unsupported) is an error | - | - | Matches the current draft, which changed since the 2022 draft the source comments cite. |
| feat:selectors-4/relative-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#relative | A relative selector begins with an optional combinator (descendant when omitted) and is anchored at a reference element. | donner/css/parser/SelectorParser.cc:346-360 | donner/css/selectors/ComplexSelector.h:155-164, 207-240 | SelectorTests.HasRelativeSiblingArguments (donner/css/tests/Selector_tests.cc:79); SelectorTests.HasAnchorsTheLeadingCompound (donner/css/tests/Selector_tests.cc:103); SelectorTests.RelativeSelectorMatchingCoversSiblingAndColumnCombinators (donner/css/tests/Selector_tests.cc:761) | - | - | All four leading combinators are matched forward from the anchor. |
| feat:selectors-4/invalid-selector-drops-rule | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#invalid | A parse error anywhere in a selector list makes the whole list invalid, and CSS then drops the whole style rule. | donner/css/parser/SelectorParser.cc:235-253 (first failing member aborts the list) | donner/css/parser/StylesheetParser.cc:485-489 (rule skipped with a warning) | StylesheetParser.InvalidSelectorWarnsAndSkipsRule (donner/css/parser/tests/StylesheetParser_tests.cc:413); SelectorParser.InvalidCombinator (donner/css/parser/tests/SelectorParser_tests.cc:312) | - | - | Holds for syntax errors and for unsupported pseudo-classes. It does not hold for unsupported pseudo-elements or the column combinator; see their rows. |
| feat:selectors-4/empty-selector-invalid | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#invalid | A selector with no compound selector is invalid. | donner/css/parser/SelectorParser.cc:229-232, 420-426 | donner/css/parser/StylesheetParser.cc:485-489 | SelectorParser.Empty (donner/css/parser/tests/SelectorParser_tests.cc:44) | - | - | An empty prelude and a trailing comma both fail to parse. |
| feat:selectors-4/unsupported-pseudo-class-handling | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#invalid | A pseudo-class the user agent has no usable support for must be treated as invalid, which invalidates the enclosing unforgiving list. | donner/css/selectors/PseudoClassSelector.cc:27-45 (allow-list: root, scope, defined, empty, first-child, last-child, only-child, first-of-type, last-of-type, only-of-type, the four nth functions, is, where, not, has) | donner/css/parser/SelectorParser.cc:597-618 raises the error; top level: donner/css/parser/StylesheetParser.cc:485-489 drops the rule; inside :is()/:where() only that argument is dropped (donner/css/parser/SelectorParser.cc:170-179); inside :not(), :has() and of S the enclosing pseudo-class becomes invalid (donner/css/parser/SelectorParser.cc:574-582, 550-555; donner/css/selectors/PseudoClassSelector.cc:19-23) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) | - | - | Holds for every name outside the allow-list: the whole rule is dropped, including the valid members of the same list (for example rect, rect:hover {} styles nothing). |
| feat:selectors-4/unsupported-pseudo-element-handling | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#invalid | An unsupported pseudo-element must be treated as invalid, which invalidates the whole selector list. | donner/css/parser/SelectorParser.cc:647-663 builds a PseudoElementSelector for any ::name; donner/css/selectors/PseudoElementSelector.h:55 reports isValid() false | donner/css/parser/SelectorParser.cc:226-257 and 1036-1039 never consult isValid() for the top-level list, so the rule is kept and the member simply never matches (donner/css/selectors/PseudoElementSelector.h:62-65) | SelectorParser.PseudoElementSelector (donner/css/parser/tests/SelectorParser_tests.cc:149) asserts the parse succeeds; no test of list invalidation | low | S | rect, text::first-line { fill: red } paints rect red; the rule should be dropped. Inconsistent with pseudo-class handling. |
| feat:selectors-4/undeclared-namespace-prefix-invalid | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#invalid | A simple selector that uses a namespace prefix with no @namespace declaration is invalid. | donner/css/parser/SelectorParser.cc:665-685 accepts any prefix; donner/css/selectors/TypeSelector.h:70-73 (isValid always true, TODO); donner/css/selectors/AttributeSelector.h:102 | donner/css/parser/StylesheetParser.cc:665-668 (@namespace only ends the import section; no prefix table exists) | none | low | M | foo\|rect {} is kept and compared against the literal document prefix. |
| feat:selectors-4/compound-selector-grammar-order | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#grammar | In a compound selector an optional type selector comes first, at most once, followed by subclass selectors. | donner/css/parser/SelectorParser.cc:385-430: the loop accepts a type selector at any position and any number of times | donner/css/selectors/CompoundSelector.h:80-106 (all entries must match) | none | low | S | [x]rect, .a* and rect* parse as valid compounds instead of invalidating the rule. By code reading. |
| feat:selectors-4/whitespace-rules | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#grammar | White space is forbidden inside a compound selector, a qualified name and an attribute matcher, and is required between compounds when the combinator is omitted. | donner/css/parser/SelectorParser.cc:299-341 (white space ends a compound), donner/css/parser/SelectorParser.cc:500 and 714 (prefix lookahead needs adjacent tokens), donner/css/parser/SelectorParser.cc:938-947 (matcher must be adjacent) | donner/css/selectors/ComplexSelector.h:186-196 | SelectorParser.CombinatorTypes (donner/css/parser/tests/SelectorParser_tests.cc:74); SelectorParser.InvalidAttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:337); SelectorParser.InvalidNsPrefix (donner/css/parser/tests/SelectorParser_tests.cc:295) | - | - | Token adjacency is enforced by the lookahead positions. |
| feat:selectors-4/case-insensitive-syntax | conformant-untested | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#case-sensitive | Selector syntax keywords (pseudo-class names, of, the i and s flags) are ASCII case-insensitive. | donner/css/selectors/PseudoClassSelector.cc:12-45, 70-91; donner/css/parser/SelectorParser.cc:263, 525-529, 586-590, 867-870 (all use equalsLowercase) | donner/css/Selector.h:141-254 (equalsLowercase in every matcher) | none (no upper-case pseudo-class or flag spelling in the selector tests) | - | - | :ROOT, :Nth-Child(2N OF rect) and [a=b I] are accepted by code reading. |
| feat:selectors-4/case-sensitivity-element-names | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#case-sensitive | Element-name matching follows the document language; XML, and therefore SVG, is case-sensitive. | donner/css/parser/SelectorParser.cc:469-517 | donner/css/selectors/TypeSelector.h:97 (equalsIgnoreCase on the local name) and donner/css/selectors/TypeSelector.h:87 (on the prefix); donner/css/Selector.h:245 routes :nth-of-type through the same comparison while donner/css/selectors/PseudoClassSelector.h:257, 274 compare :first-of-type and :last-of-type exactly | none | low | S | RECT {} and LinearGradient {} style rect and linearGradient. The typed child-index family is internally inconsistent about case. |
| feat:selectors-4/case-sensitivity-attribute-names | conformant-untested | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-case | Attribute-name matching follows the document language (case-sensitive in XML). | donner/css/parser/SelectorParser.cc:812-819 | donner/css/selectors/AttributeSelector.h:112 into donner/base/xml/components/AttributesComponent.h:66-69 (exact map lookup on prefix and local name) | none for a differing-case attribute name | - | - | Exact comparison. |
| feat:selectors-4/case-sensitivity-attribute-values | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-case | Attribute values match case-sensitively in XML unless the i flag is present. | donner/css/parser/SelectorParser.cc:863-875 | donner/css/selectors/AttributeSelector.h:159-213 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247) | - | - | Default exact; i switches every matcher to ASCII case-insensitive. |
| feat:selectors-4/case-sensitivity-html-embedded | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#case-sensitive | In HTML documents element and attribute names of HTML elements match case-insensitively. | No HTML parser exists; documents enter through the XML parser only (donner/svg/parser/SVGParser.cc) | donner/css/selectors/TypeSelector.h:97 | none | - | - | Donner never hosts SVG inside an HTML document, so only the XML rule applies (see case-sensitivity-element-names for the divergence from it). |
| feat:selectors-4/featureless-elements | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#featureless-elements | Featureless elements match only selectors explicitly defined to match them. | none | none | none | - | - | No featureless element is exposed: shadow hosts are not selectable through :host and pseudo-elements never match. |
| feat:selectors-4/legacy-aliases | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#legacy-aliasing | A legacy selector alias is converted to the standard name at parse time. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | The only alias this draft names is :-webkit-autofill, an input pseudo-class with no SVG meaning; it is rejected like :autofill. |
| feat:selectors-4/webkit-pseudo-element-quirk | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#compat | User agents that parse Web content must accept unknown non-functional ::-webkit-* pseudo-elements as valid selectors that match nothing, and reject the functional form. | donner/css/parser/SelectorParser.cc:647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 | none | low | S | The non-functional form is accepted and matches nothing, as a side effect of accepting every pseudo-element; the functional form ::-webkit-x() is also accepted instead of being invalid. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/type-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-selectors | E represents an element whose qualified name is E. | donner/css/parser/SelectorParser.cc:469-517 | donner/css/selectors/TypeSelector.h:80-98 | SelectorTests.TypeMatch (donner/css/tests/Selector_tests.cc:188); resvg structure/style/type-selector.svg (active) | - | - | Local-name match works; case and namespace behavior are tracked in their own rows. |
| feat:selectors-4/universal-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-universal-selector | * represents any element; it may be omitted when other simple selectors are present. | donner/css/parser/SelectorParser.cc:485-491 | donner/css/selectors/TypeSelector.h:66-67, 93-95 | SelectorTests.TypeMatch (donner/css/tests/Selector_tests.cc:188); resvg structure/style/universal-selector.svg (active) | - | - | Matches every element. |
| feat:selectors-4/ns-prefix-type-selector | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-nmsp | ns\|E matches elements named E in the namespace URI bound to prefix ns by @namespace. | donner/css/parser/SelectorParser.cc:497-512, 665-685 | donner/css/selectors/TypeSelector.h:85-87: the selector prefix is compared, case-insensitively, with the element's literal document prefix | SelectorTests.TypeMatch (donner/css/tests/Selector_tests.cc:188) asserts prefix-text matching | low | M | svg\|rect matches <svg:rect> only when the document happens to use the same prefix text; no URI comparison and no @namespace table. |
| feat:selectors-4/ns-any-type-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-nmsp | *\|E matches elements named E in any namespace or none. | donner/css/parser/SelectorParser.cc:486-488, 497-512 | donner/css/selectors/TypeSelector.h:86 | SelectorTests.TypeMatch (donner/css/tests/Selector_tests.cc:188); StyleSystemTest.UserAgentDisplayRulesResolveSvgNamespaceAliases (donner/svg/components/style/tests/StyleSystem_tests.cc:1299) | - | - | Wildcard prefix accepted for names and for *\|*. |
| feat:selectors-4/ns-none-type-selector | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-nmsp | \|E matches only elements that are in no namespace. | donner/css/parser/SelectorParser.cc:484, 665-685 (empty prefix) | donner/css/selectors/TypeSelector.h:85-87 (empty selector prefix equals empty document prefix) | SelectorTests.TypeMatch (donner/css/tests/Selector_tests.cc:188) asserts \|a matches an unprefixed element | low | M | \|rect matches ordinary SVG-namespace <rect> elements written without a prefix; it should match none of them. |
| feat:selectors-4/default-namespace-unprefixed-type-selector | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-nmsp | With no default namespace declared, an unprefixed E is equivalent to *\|E. | donner/css/parser/SelectorParser.cc:508-511 (empty prefix stored) | donner/css/selectors/TypeSelector.h:85-87 (empty prefix matches only elements written without a prefix) | StyleSystemTest.UserAgentDisplayRulesResolveSvgNamespaceAliases (donner/svg/components/style/tests/StyleSystem_tests.cc:1299) covers only the *\| form | medium | M | In a document that binds the SVG namespace to a prefix (<svg:rect>), rect {} matches nothing. Author sheets and the built-in svg:not(:root), image, marker, pattern rules are affected. |
| feat:selectors-4/ns-universal-selector | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#type-nmsp | ns\|*, *\|* and \|* are the universal selector restricted to a namespace, any namespace or no namespace. | donner/css/parser/SelectorParser.cc:497-505 | donner/css/selectors/TypeSelector.h:85-95 | SelectorParser.TypeSelector (donner/css/parser/tests/SelectorParser_tests.cc:95) | low | M | *\|* is correct; ns\|* and \|* share the prefix-text semantics of the type-selector rows. |
| feat:selectors-4/defined | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-defined-pseudo | When the host language has no notion of undefined elements, every element matches :defined. | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:167-169 into donner/svg/components/style/StyleSystem.cc:424-427 (false for ElementType::Unknown) | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399) asserts unknown elements do not match | low | S | SVG has no definedness state, so unknown elements should match too. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/attr-presence | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-representation | [att] matches when the attribute is present, whatever its value. | donner/css/parser/SelectorParser.cc:796-824 | donner/css/selectors/AttributeSelector.h:110-118 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195); resvg structure/style/attribute-selector.svg (active) | - | - | Presence test. |
| feat:selectors-4/attr-equals | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-representation | [att=val] matches when the value is exactly val. | donner/css/parser/SelectorParser.cc:829-859, 891-936 | donner/css/selectors/AttributeSelector.h:207-212 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | - | - | Exact comparison. |
| feat:selectors-4/attr-includes | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-representation | [att~=val] matches one word of a whitespace-separated list; an empty val or one containing white space matches nothing. | donner/css/parser/SelectorParser.cc:897 | donner/css/selectors/AttributeSelector.h:161-175 | SelectorTests.ClassAndIncludesUseCssWhitespace (donner/css/tests/Selector_tests.cc:151) including the empty-value case; SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | - | - | Splits on ASCII white space; empty and spaced operands never equal a word. |
| feat:selectors-4/attr-dash-match | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-representation | [att\|=val] matches the exact value or a value that starts with val followed by a hyphen. | donner/css/parser/SelectorParser.cc:898, 713-714 (keeps att\|= from being read as a namespace prefix) | donner/css/selectors/AttributeSelector.h:176-185 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | - | - | Both alternatives implemented. |
| feat:selectors-4/attr-prefix-match | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-substrings | [att^=val] matches when the value begins with val; an empty val represents nothing. | donner/css/parser/SelectorParser.cc:899-901 | donner/css/selectors/AttributeSelector.h:186-192 calls StringUtils::StartsWith, which is true for an empty operand (donner/base/StringUtils.h) | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) (non-empty operands only) | low | S | Non-empty operands are correct. [att^=""] matches every element that has the attribute instead of none. By code reading. |
| feat:selectors-4/attr-suffix-match | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-substrings | [att$=val] matches when the value ends with val; an empty val represents nothing. | donner/css/parser/SelectorParser.cc:899-901 | donner/css/selectors/AttributeSelector.h:193-199 calls StringUtils::EndsWith, which is true for an empty operand (donner/base/StringUtils.h) | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) (non-empty operands only) | low | S | Non-empty operands are correct. [att$=""] matches every element that has the attribute instead of none. By code reading. |
| feat:selectors-4/attr-substring-match | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-substrings | [att*=val] matches when the value contains val; an empty val represents nothing. | donner/css/parser/SelectorParser.cc:899-901 | donner/css/selectors/AttributeSelector.h:200-206 calls StringUtils::Contains, which is true for an empty operand (donner/base/StringUtils.h) | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) (non-empty operands only) | low | S | Non-empty operands are correct. [att*=""] matches every element that has the attribute instead of none. By code reading. |
| feat:selectors-4/attr-flag-i | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-case | The i flag forces ASCII case-insensitive value matching. | donner/css/parser/SelectorParser.cc:863-869 | donner/css/selectors/AttributeSelector.h:165-168, 179-181, 187-209 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | - | - | Applied to all six matchers. |
| feat:selectors-4/attr-flag-s | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-case | The s flag forces case-sensitive value matching. | donner/css/parser/SelectorParser.cc:870-873 | donner/css/selectors/AttributeSelector.h:159-213 (default branch) | SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | - | - | Identical to the XML default, so the flag only needs to parse. |
| feat:selectors-4/attr-value-ident-or-string | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attribute-representation | The operand must be an ident token or a string token. | donner/css/parser/SelectorParser.cc:841-859 | donner/css/selectors/AttributeSelector.h:71-75 | SelectorParser.InvalidAttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:337) | - | - | Other tokens are a parse error. |
| feat:selectors-4/attr-namespace | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#attrnmsp | [ns\|att] uses a declared prefix, [*\|att] any namespace, and [att] or [\|att] only attributes in no namespace. | donner/css/parser/SelectorParser.cc:687-739, 812-819 | donner/css/selectors/AttributeSelector.h:111-135; donner/base/xml/components/AttributesComponent.cc:10-27 | SelectorTests.AttributeMatch (donner/css/tests/Selector_tests.cc:247); SelectorParser.AttributeSelector (donner/css/parser/tests/SelectorParser_tests.cc:195) | low | M | [att], [\|att] and [*\|att] behave as specified. [ns\|att] compares the literal document prefix (so [xlink\|href] works only when the document spells the prefix xlink) and never needs @namespace. |
| feat:selectors-4/attr-default-values-in-dtd | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#def-values | User agents are not required to read DTD subsets, so selectors need not see defaulted attributes. | none | none | none | - | - | Permitted to ignore. Whether the XML parser applies internal-subset ATTLIST defaults was not examined in this ledger (unverified). |
| feat:selectors-4/class-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#class-html | .name is equivalent to [class~=name] on the document language's class attribute. | donner/css/parser/SelectorParser.cc:752-765 | donner/css/selectors/ClassSelector.h:50-63 | SVGStyleCascadeTests.CSSClassSelector (donner/svg/tests/SVGStyleCascade_tests.cc:42); SelectorTests.ClassAndIncludesUseCssWhitespace (donner/css/tests/Selector_tests.cc:151); resvg structure/style/class-selector.svg (active) | - | - | Case-sensitive word match. |
| feat:selectors-4/id-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#id-selectors | #name matches the element whose ID attribute equals name. | donner/css/parser/SelectorParser.cc:741-750 | donner/css/selectors/IdSelector.h:48-50 | SVGStyleCascadeTests.CSSIdSelector (donner/svg/tests/SVGStyleCascade_tests.cc:59); resvg structure/style/iD-selector.svg (active) | - | - | Case-sensitive comparison with the id attribute. |
| feat:selectors-4/id-selector-hash-must-be-identifier | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#grammar | The hash token of an ID selector must be of type id (its value is a valid identifier); otherwise the selector is invalid. | donner/css/parser/SelectorParser.cc:741-750 takes any hash token (TODO at 744-746); the tokenizer already records the type (donner/css/Token.h:169-184) | donner/css/selectors/IdSelector.h:48-50 | none | low | S | #1a {} is accepted and matches id="1a". |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/dir | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-dir-pseudo | :dir(ltr|rtl) matches by the element's resolved directionality as defined by the document language. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | M | Rule dropped. SVG text has direction, but no markup-level directionality resolution exists. |
| feat:selectors-4/lang | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-lang-pseudo | :lang() matches when the element's content language (xml:lang or lang, inherited) matches a listed language range. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | medium | M | Rule dropped. Required by SVG 2 section 6.9 (https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#RequiredCSSFeatures). No content-language resolution exists (grep for xml:lang under donner/svg finds no consumer). |
| feat:selectors-4/lang-ranges | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-lang-pseudo | Level 4 lets :lang() take a comma-separated list of ranges, strings and * wildcards with RFC 4647 extended filtering. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Depends on :lang() itself. |
| feat:selectors-4/any-link | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-any-link-pseudo | :any-link matches every element that is the source anchor of a hyperlink (in SVG, an a element with href). | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Rule dropped. |
| feat:selectors-4/link | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#link | :link matches unvisited hyperlink source anchors. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | medium | S | Rule dropped. Required by SVG 2 section 6.9. The built-in sheet's own :link, :visited { cursor: pointer } rule (donner/svg/core/UserAgentStylesheet.h:24-26) is discarded by Donner's parser, and author rules such as a:link { fill: blue } never apply. |
| feat:selectors-4/visited | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#link | :visited matches visited hyperlink source anchors; a user agent may treat all links as unvisited. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Rule dropped. Accepting the name and never matching would be sufficient, and would stop a:link, a:visited {} lists from being discarded. |
| feat:selectors-4/target | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-target-pseudo | :target matches the element identified by the document URL's fragment. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | M | Rule dropped. No document-fragment target is tracked. |
| feat:selectors-4/target-within | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-target-pseudo | Removed from the 2026 draft in favor of :has(:target). | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | Not part of the published TR. Donner rejects it as an unknown pseudo-class, which is the required behavior. |
| feat:selectors-4/local-link | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#changes | Deferred to Selectors Level 5 in the 2026 draft. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | Not part of the published TR. Rejected as an unknown pseudo-class. |
| feat:selectors-4/scope | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-scope-pseudo | :scope represents the scoping root; with no scoping root it is equivalent to :root (or :host in a shadow tree). | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:144-148 returns a non-primary match; donner/css/selectors/CompoundSelector.h:89-93 and donner/css/selectors/ComplexSelector.h:261-262 reject a non-primary match in the subject compound | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399); SelectorTests.ForgivingScopeFunctionsKeepAncestorContext (donner/css/tests/Selector_tests.cc:170) | low | S | In a style sheet :scope > rect works, but :scope {} and svg:scope {} never match the root, and :not(:scope) matches every element including the root. The non-subject restriction suits a DOM query whose root is excluded, not style rules. |
| feat:selectors-4/hover | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-hover-pseudo | :hover matches an element designated by a pointing device, and its ancestors. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | medium | S | Required by SVG 2 section 6.9. Rule dropped, so a static render also loses the valid members of the list (a, a:hover { fill: blue } styles nothing). Selectors 3 section 12 lets a non-interactive agent skip dynamic states, but the selector should then parse and never match. |
| feat:selectors-4/active | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-active-pseudo | :active matches an element being activated by the user. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Required by SVG 2 section 6.9. Rule dropped, so a static render also loses the valid members of the list (a, a:active { fill: blue } styles nothing). Selectors 3 section 12 lets a non-interactive agent skip dynamic states, but the selector should then parse and never match. |
| feat:selectors-4/focus | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-focus-pseudo | :focus matches the element that has input focus. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Required by SVG 2 sections 6.8 and 6.9. Rule dropped, so a static render also loses the valid members of the list (a, a:focus { fill: blue } styles nothing). Selectors 3 section 12 lets a non-interactive agent skip dynamic states, but the selector should then parse and never match. |
| feat:selectors-4/focus-visible | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-focus-visible-pseudo | :focus-visible matches a focused element when the user agent decides focus should be indicated. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Level 4 addition. Rule dropped, so a static render also loses the valid members of the list (a, a:focus-visible { fill: blue } styles nothing). Selectors 3 section 12 lets a non-interactive agent skip dynamic states, but the selector should then parse and never match. |
| feat:selectors-4/focus-within | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-focus-within-pseudo | :focus-within matches an element that is focused or has a focused descendant in the flat tree. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) for the generic rejection path; none for this name | low | S | Level 4 addition. Rule dropped, so a static render also loses the valid members of the list (a, a:focus-within { fill: blue } styles nothing). Selectors 3 section 12 lets a non-interactive agent skip dynamic states, but the selector should then parse and never match. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/playing | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#video-state | :playing reflects media playback state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/paused | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#video-state | :paused reflects media playback state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/seeking | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#video-state | :seeking reflects media playback state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/buffering | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#media-loading-state | :buffering reflects media loading state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/stalled | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#media-loading-state | :stalled reflects media loading state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/muted | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#sound-state | :muted reflects sound state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/volume-locked | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#sound-state | :volume-locked reflects sound state; SVG 2 has no media elements. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/open | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#open-state | :open reflects open/closed state of HTML details, dialog and select. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/popover-open | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#popover-open-state | :popover-open reflects HTML popover state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/modal | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#modal-state | :modal reflects HTML modal dialog or fullscreen state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/fullscreen | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#fullscreen-state | :fullscreen reflects Fullscreen API state of a hosting browser. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/picture-in-picture | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pip-state | :picture-in-picture reflects picture-in-picture video state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/enabled | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#enableddisabled | :enabled reflects form-control state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/disabled | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#enableddisabled | :disabled reflects form-control state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/read-only | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#rw-pseudos | :read-only reflects editability state; SVG text is not user-editable through the document language. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/read-write | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#rw-pseudos | :read-write reflects editability state; SVG text is not user-editable through the document language. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/placeholder-shown | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#placeholder | :placeholder-shown reflects input placeholder state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/autofill | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#autofill | :autofill reflects input autofill state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/default | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-default-pseudo | :default reflects default form option state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/checked | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#checked | :checked reflects checkbox and option state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/unchecked | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#checked | :unchecked reflects checkbox and option state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/indeterminate | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#checked | :indeterminate reflects checkbox and progress state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/valid | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#validity-pseudos | :valid reflects form validity state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/invalid | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#validity-pseudos | :invalid reflects form validity state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/in-range | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#range-pseudos | :in-range reflects form range state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/out-of-range | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#range-pseudos | :out-of-range reflects form range state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/required | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#opt-pseudos | :required reflects form optionality state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/optional | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#opt-pseudos | :optional reflects form optionality state. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/user-valid | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#user-pseudos | :user-valid reflects form validity after user interaction. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| feat:selectors-4/user-invalid | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#user-pseudos | :user-invalid reflects form validity after user interaction. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | No SVG element can be in this state. Donner treats the name as unsupported and drops the rule, the behavior section 3.9 requires for unsupported pseudo-classes. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/root | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-root-pseudo | :root matches the document's root element. | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:141-143; donner/svg/components/style/StyleSystem.cc:374-386 (shadow entities resolve their parent so instance roots are not :root) | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399); StyleSystemTest.UserAgentNamespaceMatchesComputedAndDiagnosticStyles (donner/svg/components/style/tests/StyleSystem_tests.cc:1273) exercises svg:not(:root) | - | - | Parentless element test. |
| feat:selectors-4/empty | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-empty-pseudo | :empty matches an element with no element children and no text other than document white space; comments and processing instructions do not count. | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:149-156; donner/svg/components/style/SelectorContent.cc:18-32, 52-84, 155-167 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399); SVGElementTests.EmptySelectorIncludesTextAndCDataContent (donner/svg/tests/SVGElement_tests.cc:100); StyleSystemTest.EmptySelectorUsesAuthoredChildrenAfterShadowInstantiation (donner/svg/components/style/tests/StyleSystem_tests.cc:1365) | - | - | Level 4 white-space rule implemented (space, tab, CR, LF). |
| feat:selectors-4/nth-child | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-nth-child-pseudo | :nth-child(An+B) matches elements whose 1-based index among their inclusive siblings is An+B for some n >= 0. | donner/css/parser/SelectorParser.cc:519-546 with donner/css/parser/AnbMicrosyntaxParser.cc | donner/css/Selector.h:231-240; donner/css/selectors/PseudoClassSelector.h:192-246; donner/css/details/AnbValue.h:29-41 | SelectorTests.PseudoClassSelectorNthChild (donner/css/tests/Selector_tests.cc:479); SelectorTests.NthSelectorsRequireNonNegativeN (donner/css/tests/Selector_tests.cc:612); AnbValueTests.RequiresNonNegativeN (donner/css/tests/Selector_tests.cc:570) | - | - | Non-element nodes are skipped by the adapter. |
| feat:selectors-4/nth-child-of-selector | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-nth-child-pseudo | :nth-child(An+B of S) indexes only the siblings that match the unforgiving complex selector list S; the subject must itself match S. | donner/css/parser/SelectorParser.cc:259-287, 547-558 | donner/css/selectors/PseudoClassSelector.h:196-207, 216-218 (non-matching siblings, including the subject, are skipped and yield index -1) | SelectorTests.PseudoClassSelectorNthChildNestedForgivingList (donner/css/tests/Selector_tests.cc:650); SelectorParser.InvalidNthChildSuffixesRejectTheSelector (donner/css/parser/tests/SelectorParser_tests.cc:547); SelectorParser.Level4StrictPseudoClassArguments (donner/css/parser/tests/SelectorParser_tests.cc:28) | low | S | Matching and strictness are correct. The of keyword check at donner/css/parser/SelectorParser.cc:262-269 runs only when the next component is a plain token, so :nth-child(2n [x]) is accepted as if of were present (by code reading, unverified by execution). |
| feat:selectors-4/nth-last-child | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-nth-last-child-pseudo | :nth-last-child(An+B [of S]) counts from the last sibling. | donner/css/parser/SelectorParser.cc:527-529 | donner/css/Selector.h:241-244; donner/css/selectors/PseudoClassSelector.h:226-241 | SelectorTests.PseudoClassSelectorNthChild (donner/css/tests/Selector_tests.cc:479); SelectorTests.NthSelectorsRequireNonNegativeN (donner/css/tests/Selector_tests.cc:612); AnbValueTests.RequiresNonNegativeN (donner/css/tests/Selector_tests.cc:570) | - | - | Shares the of S path and its parser quirk. |
| feat:selectors-4/first-child | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-first-child-pseudo | :first-child is :nth-child(1). | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:157-159 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399); StyleSystemTest.ShadowTreeSelectorsMatchSiblingAndAttributeState (donner/svg/components/style/tests/StyleSystem_tests.cc:1495) | - | - | No previous element sibling. |
| feat:selectors-4/last-child | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-last-child-pseudo | :last-child is :nth-last-child(1). | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:160-162 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399); StyleSystemTest.ShadowTreeSelectorsMatchSiblingAndAttributeState (donner/svg/components/style/tests/StyleSystem_tests.cc:1495) | - | - | No next element sibling. |
| feat:selectors-4/only-child | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-only-child-pseudo | :only-child matches an element with no element siblings. | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:163-166 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399) | - | - | Both sibling tests. |
| feat:selectors-4/nth-of-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-nth-of-type-pseudo | :nth-of-type(An+B) indexes among siblings with the same type; no selector argument is allowed. | donner/css/parser/SelectorParser.cc:525-526, 559-563 | donner/css/Selector.h:245-249 | SelectorTests.PseudoClassSelectorNthChild (donner/css/tests/Selector_tests.cc:479); SelectorTests.NthSelectorsRequireNonNegativeN (donner/css/tests/Selector_tests.cc:612); AnbValueTests.RequiresNonNegativeN (donner/css/tests/Selector_tests.cc:570); SelectorParser.InvalidNthChildSuffixesRejectTheSelector (donner/css/parser/tests/SelectorParser_tests.cc:547) | - | - | Type comparison is case-insensitive; see case-sensitivity-element-names. |
| feat:selectors-4/nth-last-of-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-nth-last-of-type-pseudo | :nth-last-of-type(An+B) counts same-type siblings from the end. | donner/css/parser/SelectorParser.cc:525-526 | donner/css/Selector.h:250-253 | SelectorTests.PseudoClassSelectorNthChild (donner/css/tests/Selector_tests.cc:479); SelectorTests.NthSelectorsRequireNonNegativeN (donner/css/tests/Selector_tests.cc:612); AnbValueTests.RequiresNonNegativeN (donner/css/tests/Selector_tests.cc:570) | - | - | Same path as :nth-of-type. |
| feat:selectors-4/first-of-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-first-of-type-pseudo | :first-of-type is :nth-of-type(1). | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:176-178; donner/css/selectors/PseudoClassSelector.h:248-263 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399) | - | - | Exact tag-name comparison. |
| feat:selectors-4/last-of-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-last-of-type-pseudo | :last-of-type is :nth-last-of-type(1). | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:179-181; donner/css/selectors/PseudoClassSelector.h:265-280 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399) | - | - | Exact tag-name comparison. |
| feat:selectors-4/only-of-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#the-only-of-type-pseudo | :only-of-type matches an element with no same-type siblings. | donner/css/selectors/PseudoClassSelector.cc:29-33 | donner/css/Selector.h:182-185 | SelectorTests.PseudoClassSelectorSimple (donner/css/tests/Selector_tests.cc:399) | - | - | Both type tests. |
| feat:selectors-4/child-indexed-without-parent | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#child-index | Level 4 defines the child-indexed pseudo-classes over inclusive siblings, so a parentless element (the root) can match them. | donner/css/selectors/PseudoClassSelector.cc:12-17 | donner/css/Selector.h:233-236 returns false for all four nth functions when there is no parent, while donner/css/Selector.h:157-166 and 176-185 let the root match :first-child, :last-child, :only-child and the *-of-type keywords | none | low | S | svg:nth-child(1) and :root:nth-of-type(1) never match although svg:first-child does. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/descendant-combinator | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#descendant-combinators | A B matches B with an ancestor A. | donner/css/parser/SelectorParser.cc:321-341 | donner/css/selectors/ComplexSelector.h:186-188, 213-215, 279-313 | SelectorTests.Combinators (donner/css/tests/Selector_tests.cc:220); SelectorParser.CombinatorTypes (donner/css/parser/tests/SelectorParser_tests.cc:74); SVGStyleCascadeTests.DescendantSelector (donner/svg/tests/SVGStyleCascade_tests.cc:213); resvg structure/style/rule-specificity.svg (active) | - | - | Backtracking search with an explicit stack. |
| feat:selectors-4/child-combinator | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#child-combinators | A > B matches B whose parent is A. | donner/css/parser/SelectorParser.cc:440-443 | donner/css/selectors/ComplexSelector.h:189-191, 213-215 | SelectorTests.Combinators (donner/css/tests/Selector_tests.cc:220); SelectorParser.CombinatorTypes (donner/css/parser/tests/SelectorParser_tests.cc:74); resvg structure/style/combined-selectors.svg (active) | - | - | Single parent step. |
| feat:selectors-4/next-sibling-combinator | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#adjacent-sibling-combinators | A + B matches B immediately preceded by sibling A, ignoring non-element nodes. | donner/css/parser/SelectorParser.cc:444-447 | donner/css/selectors/ComplexSelector.h:216-218; donner/svg/components/style/StyleSystem.cc:474-490 | SelectorTests.Combinators (donner/css/tests/Selector_tests.cc:220); SelectorParser.CombinatorTypes (donner/css/parser/tests/SelectorParser_tests.cc:74); StyleSystemTest.ShadowTreeSelectorsMatchSiblingAndAttributeState (donner/svg/components/style/tests/StyleSystem_tests.cc:1495) | - | - | Element siblings only. |
| feat:selectors-4/subsequent-sibling-combinator | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#general-sibling-combinators | A ~ B matches B preceded by any sibling A. | donner/css/parser/SelectorParser.cc:448-451 | donner/css/selectors/ComplexSelector.h:192-195, 216-218 | SelectorTests.Combinators (donner/css/tests/Selector_tests.cc:220); SelectorParser.CombinatorTypes (donner/css/parser/tests/SelectorParser_tests.cc:74) | - | - | Walks all previous siblings. |
| feat:selectors-4/column-combinator | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#grammar | The grammar still lists \|\|, but the 2026 draft deferred the grid-structural selectors to Level 5; an unsupported combinator must make the selector invalid. | donner/css/parser/SelectorParser.cc:452-458 parses \|\| as Combinator::Column | donner/css/selectors/ComplexSelector.h:196, 219, 359-361 (never matches); donner/css/selectors/ComplexSelector.cc:5-17 (isValid ignores the combinator) | SelectorTests.RelativeSelectorMatchingCoversSiblingAndColumnCombinators (donner/css/tests/Selector_tests.cc:761) asserts it parses and never matches | low | S | rect, a \|\| b {} still styles rect. Without surrounding white space (a\|\|b) the same input is a parse error, so behavior depends on spacing. |
| feat:selectors-4/time-dimensional-pseudo-classes | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#changes | :current, :past and :future were deferred to Selectors Level 5 in the 2026 draft. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | Not part of the published TR; rejected as unknown pseudo-classes. |
| feat:selectors-4/grid-structural-pseudo-classes | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#changes | :nth-col() and :nth-last-col() were deferred to Selectors Level 5 in the 2026 draft. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | Not part of the published TR; rejected as unknown pseudo-classes. |
| feat:selectors-4/blank | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#changes | :blank was deferred to Selectors Level 5 in the 2026 draft. | donner/css/parser/SelectorParser.cc:767-794 (generic : ident or function production), donner/css/selectors/PseudoClassSelector.cc:27-45 (isValid allow-list does not contain the name) | donner/css/parser/SelectorParser.cc:613-616 sets a parse error, so donner/css/parser/StylesheetParser.cc:485-489 drops the whole style rule; no matcher exists (grep for the quoted name under donner/css and donner/svg finds only the classification list at donner/css/Selector.cc:47-48) | none | - | - | Not part of the published TR; rejected. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/pseudo-element-syntax | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-element-syntax | ::name or ::name(args), valid only at the end of a complex selector unless specified otherwise; names are case-insensitive. | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | SelectorParser.PseudoElementSelector (donner/css/parser/tests/SelectorParser_tests.cc:149); SelectorParser.InvalidPseudo (donner/css/parser/tests/SelectorParser_tests.cc:328) | low | S | Syntax parses, position is not checked (a::before b is accepted), and nothing is supported. |
| feat:selectors-4/first-line | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | SVG 2 section 6.9 requires ::first-line on text elements. | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | low | L | Never matches; the rule is kept rather than invalidated. Needs text layout support for per-line styling. |
| feat:selectors-4/first-letter | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | SVG 2 section 6.9 requires ::first-letter on text elements. | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | low | L | Never matches; the rule is kept rather than invalidated. |
| feat:selectors-4/before | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | ::before generates content before an element's children (CSS generated content). | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | - | - | SVG 2 does not render CSS generated content. The only observable defect is the missing list invalidation (unsupported-pseudo-element-handling). |
| feat:selectors-4/after | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | ::after generates content after an element's children (CSS generated content). | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | - | - | As for ::before. |
| feat:selectors-4/selection | missing | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | SVG 2 section 6.8 requires interactive user agents to style ::selection. | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | low | M | Never matches. Relevant only to interactive text selection. |
| feat:selectors-4/marker | not-applicable | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-elements | ::marker styles list-item marker boxes. | donner/css/parser/SelectorParser.cc:402-405, 647-663 | donner/css/selectors/PseudoElementSelector.h:55-65 (never valid, never matches); grep for first-line, first-letter and selection under donner/svg finds no implementation | none | - | - | SVG has no list items; unrelated to SVG marker elements. |
| feat:selectors-4/legacy-single-colon-pseudo-elements | partial | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#pseudo-element-syntax | :before, :after, :first-line and :first-letter must be parsed as pseudo-elements, never as pseudo-classes. | donner/css/parser/SelectorParser.cc:402-408 routes a single colon to the pseudo-class path | donner/css/parser/SelectorParser.cc:613-616 rejects the name as an unsupported pseudo-class | none | low | S | The single-colon form invalidates the whole rule while the double-colon form of the same pseudo-element keeps the rule alive, so the two spellings behave differently. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:selectors-4/specificity-id-class-type | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | A counts ID selectors, B counts class, attribute and pseudo-class selectors, C counts type selectors and pseudo-elements. | donner/css/selectors/ComplexSelector.cc:19-54 | donner/css/selectors/ComplexSelector.h:145; donner/svg/components/style/StyleSystem.cc:521-530, 681-685 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890); SVGStyleCascadeTests.SpecificityIdBeatsClass (donner/svg/tests/SVGStyleCascade_tests.cc:76); SVGStyleCascadeTests.TypeSelectorLowerSpecificityThanClass (donner/svg/tests/SVGStyleCascade_tests.cc:290); resvg structure/style/rule-specificity.svg (active) | - | - | Summed over every compound of the complex selector. |
| feat:selectors-4/specificity-universal-ignored | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | The universal selector contributes nothing. | donner/css/selectors/ComplexSelector.cc:39-43 | donner/css/selectors/ComplexSelector.h:145 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Namespace-qualified universal forms are ignored too. |
| feat:selectors-4/specificity-pseudo-element | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | A pseudo-element counts in C. | donner/css/selectors/ComplexSelector.cc:44-47 | donner/css/selectors/ComplexSelector.h:145 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Counted although it never matches. |
| feat:selectors-4/specificity-is | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | :is() takes the specificity of its most specific argument, whichever argument matched. | donner/css/selectors/PseudoClassSelector.cc:70-76 | donner/css/Selector.h:90-100 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Maximum over the argument list. |
| feat:selectors-4/specificity-not | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | :not() takes the specificity of its most specific argument. | donner/css/selectors/PseudoClassSelector.cc:70-76 | donner/css/Selector.h:90-100 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Maximum over the argument list. |
| feat:selectors-4/specificity-has | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | :has() takes the specificity of its most specific argument. | donner/css/selectors/PseudoClassSelector.cc:70-76 | donner/css/Selector.h:90-100 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Maximum over the argument list. |
| feat:selectors-4/specificity-where | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | :where() contributes zero. | donner/css/selectors/PseudoClassSelector.cc:91-92 | donner/css/selectors/ComplexSelector.cc:33-38 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | Zero. |
| feat:selectors-4/specificity-nth-child-of-selector | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | :nth-child() and :nth-last-child() count as one pseudo-class plus the most specific argument of of S. | donner/css/selectors/PseudoClassSelector.cc:80-88 | donner/css/selectors/ComplexSelector.cc:33-38 | SelectorTests.Specificity (donner/css/tests/Selector_tests.cc:890) | - | - | One pseudo-class plus the argument maximum; other pseudo-classes count (0,1,0). |
| feat:selectors-4/specificity-selector-list-most-specific-match | divergent | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | For a selector list, the specificity in effect is that of the most specific member that matches the element. | donner/css/parser/SelectorParser.cc:226-257 | donner/svg/components/style/StyleSystem.cc:517-531 returns the first member that matches, in source order; donner/css/Selector.h:119-127 does the same | StyleSystemTest.CollectMatchedStyleRulesReportsSelectorBranchAndSourceRanges (donner/svg/components/style/tests/StyleSystem_tests.cc:455) covers branch reporting, not precedence | medium | S | With rect, #a { fill: red } followed by .c { fill: blue }, <rect id="a" class="c"> is blue: the rule is applied at (0,0,1) instead of (1,0,0). Any list whose earlier member is less specific than a later matching member is affected. |
| feat:selectors-4/specificity-comparison-and-clamping | conformant | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | Specificities compare A, then B, then C; implementations with storage limits must clamp, not overflow. | donner/css/Specificity.h:86-101 | donner/css/Specificity.h:207-213; donner/svg/properties/PropertyParsing.h:101-104 | Specificity.ABCOrder (donner/css/tests/Specificity_tests.cc:83) | - | - | Three 32-bit counters; style-sheet size limits keep them far from overflow, so no clamp is needed (clamping itself is untested). |
| feat:selectors-4/specificity-repeated-simple-selectors | conformant-untested | https://www.w3.org/TR/2026/WD-selectors-4-20260122/#specificity-rules | Repeating a simple selector increases specificity. | donner/css/parser/SelectorParser.cc:385-430 | donner/css/selectors/ComplexSelector.cc:22-50 (each entry counted) | none | - | - | .a.a counts (0,2,0) by code reading. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-4/at-import-url-and-string | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#at-import | @import takes a URL or a string naming the style sheet to import. | donner/css/parser/StylesheetParser.cc:551-571, 628-644 | donner/svg/components/style/StyleSystem.cc:695-700; donner/svg/components/resources/ResourceManagerContext.cc:621 (loader entry) | StylesheetParser.ImportFormsAreRetainedBeforeFollowingRules (donner/css/parser/tests/StylesheetParser_tests.cc:180); CssImportTest.ImportIsFetchedAndPrecedesLocalRules (donner/svg/renderer/tests/CssImport_tests.cc:139) | - | - | String, url token and url("string") forms accepted; an empty target is invalid. |
| feat:css-cascade-4/at-import-placement | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#at-import | @import rules must precede every other valid at-rule and style rule except @charset (and, in Level 5, @layer statements); a misplaced import is invalid. | donner/css/parser/StylesheetParser.cc:665-690, 700-709, 720-727, 753-756 | donner/css/parser/StylesheetParser.cc:711-717 | StylesheetParser.ImportAfterAnotherRuleIsIgnored (donner/css/parser/tests/StylesheetParser_tests.cc:223); StylesheetParser.ImportMayFollowLayerStatementsUnknownAndInvalidRules (donner/css/parser/tests/StylesheetParser_tests.cc:242) | - | - | Invalid and unknown rules correctly do not close the import section. |
| feat:css-cascade-4/at-import-in-place-ordering | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#at-import | Imported rules cascade as if written at the position of the @import rule. | donner/css/parser/StylesheetParser.cc:711-717 | donner/svg/components/style/StyleSystem.cc:695-703 (imported sheets are applied before the importing sheet's own rules) | CssImportTest.ImportIsFetchedAndPrecedesLocalRules (donner/svg/renderer/tests/CssImport_tests.cc:139); CssImportTest.ImportedRulesStillCompeteBySpecificity (donner/svg/renderer/tests/CssImport_tests.cc:152); CssImportTest.LaterImportsFollowEarlierImports (donner/svg/renderer/tests/CssImport_tests.cc:160) | - | - | Within one style element. Ordering between style elements is subject to the multiple-style-elements row. |
| feat:css-cascade-4/at-import-media-query | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#conditional-import | An @import may carry a media query list; the import applies only when it matches. | donner/css/parser/StylesheetParser.cc:589-601, 622 | donner/css/parser/StylesheetParser.cc:653-655 (ignored with a warning) | StylesheetParser.ImportMediaAllIsUnconditional (donner/css/parser/tests/StylesheetParser_tests.cc:255); StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored (donner/css/parser/tests/StylesheetParser_tests.cc:266) | medium | M | Only the single keyword all is honored. @import url(a.css) screen; is discarded although a screen renderer should load it. Needs the media query evaluator the conditional-rules ledger lacks. |
| feat:css-cascade-4/at-import-supports | missing | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#conditional-import | An @import may carry a supports() condition; the import applies only when it is true. | donner/css/parser/StylesheetParser.cc:618-620 | donner/css/parser/StylesheetParser.cc:651-652 (ignored with a warning) | StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored (donner/css/parser/tests/StylesheetParser_tests.cc:266) | low | M | Every supports() import is dropped, including ones whose condition is true. |
| feat:css-cascade-4/at-import-processing | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#import-processing | Each imported sheet is fetched and processed as an independent style sheet; failures leave the rest of the sheet intact. | donner/css/parser/StylesheetParser.cc:711-717 | donner/svg/components/resources/ResourceManagerContext.cc:621-640 (entry point only; loader internals unverified, classification rests on the named tests) | CssImportTest.CyclesAreDiagnosedAndEachStylesheetLoadsOnce (donner/svg/renderer/tests/CssImport_tests.cc:195); CssImportTest.NestedImportsResolveAgainstTheImportingStylesheet (donner/svg/renderer/tests/CssImport_tests.cc:171); CssImportTest.FailedFetchesKeepLocalRulesAndDoNotEchoTargets (donner/svg/renderer/tests/CssImport_tests.cc:338) | - | - | Cycles, nesting and failures are covered by tests; fetching is bounded by resource budgets. |
| feat:css-cascade-4/at-import-content-type | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#content-type | A resource that is not a CSS style sheet must not be processed as one. | donner/css/parser/StylesheetParser.cc:711-717 | donner/svg/components/resources/ResourceManagerContext.cc:621-640 (entry point only; loader internals unverified) | CssImportTest.NonCssTargetsAreRejected (donner/svg/renderer/tests/CssImport_tests.cc:326) | - | - | Covered by test. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-4/value-stage-declared | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#declared | Every syntactically valid declaration that applies to the element contributes a declared value; invalid declarations are discarded. | donner/svg/components/style/StyleSystem.cc:548-565; donner/svg/properties/PropertyRegistry.cc:3434-3467 | donner/svg/properties/PropertyParsing.h:113-119 (a failed parse leaves the previous winner untouched) | StyleSystemTest.WarningsCollectedForInvalidProperties (donner/svg/components/style/tests/StyleSystem_tests.cc:625); PropertyRegistry.WhiteSpaceKeywordsAndInvalidDeclarations (donner/svg/properties/tests/PropertyRegistry_tests.cc:3437) | - | - | Values are parsed while applying, so declared and parsed forms are one step. |
| feat:css-cascade-4/value-stage-cascaded | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascaded | The cascaded value is the declared value that wins the cascade sort. | donner/svg/properties/PropertyParsing.h:101-104 (a declaration is skipped only when its priority is strictly lower than the current winner) | donner/svg/components/style/StyleSystem.cc:842-849 (attributes and style attribute, then sheet rules, then animation) | SVGStyleCascadeTests (donner/svg/tests/SVGStyleCascade_tests.cc:23-345) | medium | S | No sort: declarations are folded in application order with a priority comparison. Equivalent to the sort for one style element; wrong across style elements and for selector lists (see those rows). |
| feat:css-cascade-4/value-stage-specified | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#specified | The specified value is the cascaded value, or the inherited or initial value when the cascade yields nothing. | donner/svg/properties/Property.h:188-225 | donner/svg/components/style/StyleSystem.cc:784-808 | Property.InheritFromCoversStateAndSpecificityBranches (donner/svg/properties/tests/PropertyRegistry_tests.cc:176) | high | S | Defaulting is merged with a cross-element priority comparison; see inheritance-parent-priority-overrides-child. |
| feat:css-cascade-4/value-stage-computed | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#computed | The computed value resolves relative units and keywords as far as possible without layout, and is the value children inherit. | donner/svg/properties/PropertyRegistry.cc:3699-3790 (font-size, font-weight, font-stretch, text-indent), donner/svg/properties/PropertyRegistry.cc:3676, 3736 (inset clip lengths, decoration thickness) | donner/svg/components/style/StyleSystem.cc:885-894 is the only computation step; every other property is stored and inherited exactly as specified | StyleSystemTest.DecorationThicknessComputesEmBeforeExplicitInheritance (donner/svg/components/style/tests/StyleSystem_tests.cc:901); StyleSystemTest.InsetLengthsComputeBeforeInheritanceAndKeepPercentages (donner/svg/components/style/tests/StyleSystem_tests.cc:1122); PropertyRegistry.FontSizeRelativeKeywordsAndResolution (donner/svg/properties/tests/PropertyRegistry_tests.cc:1126) | low | M | Inherited length properties such as stroke-width, stroke-dashoffset, letter-spacing and word-spacing keep font-relative units, so a child with a different font-size resolves an inherited 1em against its own font instead of the parent's (by code reading). |
| feat:css-cascade-4/value-stage-used-and-actual | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#used | Used values finish resolution with layout information; actual values apply device constraints. | none (no distinct stage) | donner/svg/components/style/StyleSystem.cc:868-883 stores one PropertyRegistry per element; percentage, auto and unit resolution happens inside each consumer | none at the stage level | low | L | The property model collapses declared, cascaded and specified into one stored value, computes a handful of properties, and leaves used and actual values to shape, text and render code. There is no API that distinguishes computed from used. |
| feat:css-cascade-4/applicable-properties | conformant-untested | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#applies-to | A property set on an element it does not apply to still has a computed value and still inherits. | donner/svg/properties/PropertyRegistry.cc:3555-3592 | donner/svg/components/style/StyleSystem.cc:1063-1074 (styles computed for every tree entity regardless of element type) | none | - | - | No per-element filtering of properties. |
| feat:css-cascade-4/filtering | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#filtering | A declaration applies when its sheet applies to the document, it is not inside a false conditional rule, its selector matches, and it is valid. | donner/css/parser/StylesheetParser.cc:519-530 (@media and @supports blocks are discarded unconditionally) | donner/svg/components/style/StyleSystem.cc:62-79, 690-704 | StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules (donner/css/parser/tests/StylesheetParser_tests.cc:94) | high | M | Selector and validity filtering work. Conditional rules are never true, including @media all and @media screen; the detail belongs to the conditional-rules ledger. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-4/cascade-sort-origin-and-importance | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascade-sort | Origin and importance sort first: normal user agent, normal user, normal author, animation, important author, important user, important user agent, transition. | donner/css/Specificity.h:57-66; donner/svg/properties/PropertyParsing.cc:45-46 | donner/css/Specificity.h:207-213; donner/svg/properties/PropertyParsing.h:101-104; donner/svg/components/style/StyleSystem.cc:681-685 | Specificity.CascadePriorityOverrideAndNormalOriginsRemainOrdered (donner/css/tests/Specificity_tests.cc:16); Specificity.AnimationRankStaysBelowAllImportantOrigins (:24); SVGStyleCascadeTests.ImportantOverridesHigherSpecificity (donner/svg/tests/SVGStyleCascade_tests.cc:97); resvg structure/style/important.svg (active) | - | - | Ranks implemented: user agent, author, style attribute, animation, important author, important style attribute, important user agent, plus an API override rank. |
| feat:css-cascade-4/cascade-sort-context | not-applicable | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#cascade-sort | Declarations from different encapsulation contexts are ordered outer-wins for normal and inner-wins for important. | none | donner/svg/components/style/StyleSystem.cc:690-704 (one document-wide list of sheets serves light and shadow trees) | none | - | - | SVG 2 gives a same-document use shadow tree the same style sheets as its document, so there is only one context to compare. |
| feat:css-cascade-4/cascade-sort-element-attached-styles | conformant | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#cascade-sort | Within one origin and importance, declarations attached to the element (the style attribute) beat declarations from style rules. | donner/svg/properties/PropertyRegistry.cc:3510-3533 (StyleAttribute rank) | donner/css/Specificity.h:60, 63, 183-193 | SVGStyleCascadeTests.InlineStyleOverridesAttribute (donner/svg/tests/SVGStyleCascade_tests.cc:23); Specificity.CascadePriorityInlineOriginAndImportantDiagnosticsRemainDistinct (donner/css/tests/Specificity_tests.cc:65); resvg structure/style/resolve-order.svg (active) | - | - | Normal style attribute beats every normal selector; important style attribute beats every important selector; important selectors beat a normal style attribute. |
| feat:css-cascade-4/cascade-sort-specificity | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascade-sort | Within the same origin, importance and layer, higher selector specificity wins. | donner/css/selectors/ComplexSelector.cc:19-54 | donner/css/Specificity.h:207-213; donner/svg/properties/PropertyParsing.h:101-104 | SVGStyleCascadeTests.SpecificityIdBeatsClass (donner/svg/tests/SVGStyleCascade_tests.cc:76); resvg structure/style/rule-specificity.svg (active) | - | - | Selector-list precedence is tracked separately. |
| feat:css-cascade-4/cascade-sort-order-of-appearance | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascade-sort | At equal priority the last declaration in document order wins. | donner/svg/components/style/StyleSystem.cc:673-686 | donner/svg/properties/PropertyParsing.h:101-104 (an equal-priority declaration replaces the earlier one) | SVGStyleCascadeTests.LaterRuleWinsEqualSpecificity (donner/svg/tests/SVGStyleCascade_tests.cc:175) | - | - | Holds inside one style sheet and inside one declaration block. |
| feat:css-cascade-4/order-of-appearance-multiple-style-elements | divergent | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascade-sort | Style sheets are ordered by their position in the document, so a later style element beats an earlier one at equal priority. | donner/svg/parser/SVGParser.cc:291-295 and donner/svg/SVGDocument.cc:320-324 attach a StylesheetComponent to each style element in document order | donner/svg/components/style/StyleSystem.cc:690-704 iterates registry.view<StylesheetComponent>(); an EnTT storage iterates from the most recently added entity to the oldest (third_party/entt/src/entt/entity/sparse_set.hpp:650-653, 75-76, 91-92), so sheets are applied last-to-first and the earliest sheet is applied last | none (no unit test and no resvg case contains two style elements) | medium | S | With <style>rect{fill:red}</style><style>rect{fill:green}</style> the rect is red by code reading (could not be executed). Storage uses swap-and-pop removal, so removing and re-adding a style element changes the order again. The earliest style element therefore wins ties. No sort of the storage exists (grep for sort< finds only RenderingInstanceComponent). The same defect is recorded in structure.md (feat:svg2/style-multiple-sheets-order) and styling_properties.md (feat:svg2/styling-style-element-multiple-sheet-order). |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-4/origin-user-agent | partial | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascading-origins | The user agent's default style sheet forms the lowest-priority origin; SVG 2 section 6.8 fixes its content. | donner/svg/core/UserAgentStylesheet.h:10-27; donner/svg/SVGSVGElement.cc:19-23 | donner/svg/components/style/StyleSystem.cc:68-79, 681-684; donner/css/Specificity.h:233-239 | StyleSystemTest.UserAgentNamespaceMatchesComputedAndDiagnosticStyles (donner/svg/components/style/tests/StyleSystem_tests.cc:1273); StyleSystemTest.UserAgentDisplayRulesResolveSvgNamespaceAliases (donner/svg/components/style/tests/StyleSystem_tests.cc:1299) | low | S | Origin ranking is correct. Of the sheet's own text, the two @namespace rules are ignored and the :link, :visited rule is dropped by the selector parser; the CR's *[xml\|space=preserve] rule is absent (cross-reference: styling chapter ledger). |
| feat:css-cascade-4/origin-user | missing | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascading-origins | A user style sheet origin sits between the user agent and author origins, with important user declarations above important author ones. | none (grep for user stylesheet, UserStylesheet and user origin in donner headers finds nothing; donner/css/Specificity.h:57-66 has no user rank) | none | none | low | M | No way to supply user styles. Mostly relevant to embedders that want theming without editing the document. |
| feat:css-cascade-4/origin-author | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascading-origins | Style elements, imported sheets and style attributes form the author origin. | donner/css/parser/StylesheetParser.cc:742-765; donner/svg/properties/PropertyRegistry.cc:3510-3533 | donner/svg/components/style/StyleSystem.cc:690-704; donner/css/Specificity.h:59-60 | StyleSystemTest.StylesheetRulesApplied (donner/svg/components/style/tests/StyleSystem_tests.cc:357); SVGStyleCascadeTests.CSSClassSelector (donner/svg/tests/SVGStyleCascade_tests.cc:42) | - | - | External sheets via xml-stylesheet are tracked in another ledger. |
| feat:css-cascade-4/origin-animation | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascading-origins | Animation-origin declarations override all normal declarations and lose to all important ones. | donner/svg/components/style/StyleSystem.cc:209-219 (animated values applied at the Animation rank) | donner/css/Specificity.h:61, 207-213 | Specificity.AnimationRankStaysBelowAllImportantOrigins (donner/css/tests/Specificity_tests.cc:24) | - | - | Only SVG declarative animation feeds this origin; CSS animations (@keyframes) are not implemented and are outside this ledger. |
| feat:css-cascade-4/origin-transition | not-applicable | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascading-origins | Transition declarations override everything else. | none (grep for transition under donner/css finds only the at-rule name view-transition in the import-section list) | none | none | - | - | CSS Transitions are not required by SVG 2 sections 6.7 or 6.9 and are not implemented. |
| feat:css-cascade-4/important-annotation | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#importance | !important at the end of a declaration marks it important; the keyword is case-insensitive. | donner/css/parser/details/Subparsers.h:165-191 | donner/svg/properties/PropertyParsing.cc:45-46; donner/css/Specificity.h:183-193 | SVGStyleCascadeTests.ImportantOverridesHigherSpecificity (donner/svg/tests/SVGStyleCascade_tests.cc:97); PropertyRegistry.CascadePriorityImportantInlineClearsWithoutClearingExplicitOverrides (donner/svg/properties/tests/PropertyRegistry_tests.cc:2657); resvg structure/style/important.svg (active) | - | - | Works in sheets and in the style attribute. |
| feat:css-cascade-4/important-origin-reversal | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#importance | Importance reverses origin order: important user agent declarations beat important author declarations. | donner/css/Specificity.h:62-64, 183-193 | donner/css/Specificity.h:207-213 | StyleSystemTest.UserAgentDisplayRulesResolveSvgNamespaceAliases (donner/svg/components/style/tests/StyleSystem_tests.cc:1299) asserts the built-in display: none !important beats an important inline style | - | - | User-origin reversal is moot because there is no user origin. |
| feat:css-cascade-4/presentation-attributes | conformant | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#preshint | SVG presentation attributes enter the author origin as presentational hints that every other author declaration overrides (specificity 0); !important inside one makes it invalid. | donner/svg/properties/PropertyParsing.cc:10-11, 51-66; donner/svg/properties/PropertyRegistry.cc:3555-3592 | donner/svg/properties/PropertyParsing.h:101-104 with donner/svg/components/style/StyleSystem.cc:841-848 (sheet rules are applied after the attributes, so an equal zero-specificity rule still wins) | SVGStyleCascadeTests.StylesheetOverridesPresentationAttribute (donner/svg/tests/SVGStyleCascade_tests.cc:311); SVGStyleCascadeTests.PresentationAttribute (donner/svg/tests/SVGStyleCascade_tests.cc:197); resvg structure/style/universal-selector.svg (active) | - | - | Modeled as author rank with specificity (0,0,0) rather than a separate origin; the observable order is the same. An !important suffix fails the value parser (by code reading, no test). |
| feat:css-cascade-4/style-attribute | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#cascade-sort | The style attribute is an author-origin declaration block attached to the element. | donner/svg/properties/PropertyRegistry.cc:3510-3533 | donner/css/Specificity.h:60, 63; donner/svg/properties/PropertyRegistry.cc:3535-3553 | SVGStyleCascadeTests.InlineStyleOverridesAttribute (donner/svg/tests/SVGStyleCascade_tests.cc:23); StyleSystemTest.InlineStyleApplied (donner/svg/components/style/tests/StyleSystem_tests.cc:341); resvg structure/style-attribute/simple-case.svg (active) | - | - | Same evidence as element-attached styles. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-4/initial-values | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#initial-values | A property with no cascaded value and no inheritance takes its initial value. | donner/svg/properties/PropertyRegistry.h:158-540 (each property carries its initial-value function) | donner/svg/properties/Property.h:100 | SVGStyleCascadeTests.NonInheritedPropertyDoesNotInherit (donner/svg/tests/SVGStyleCascade_tests.cc:155) | - | - | Per-property initial values belong to the property ledgers. |
| feat:css-cascade-4/inheritance | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inheriting | An inherited property with no cascaded value takes the parent's computed value; a non-inherited one does not. | donner/svg/properties/PropertyRegistry.h:158-540 (cascade mode per property) | donner/svg/properties/Property.h:193-207, 215-222; donner/svg/properties/PropertyRegistry.cc:3326-3344; donner/svg/components/style/StyleSystem.cc:784-796 | SVGStyleCascadeTests.InheritedPropertyFromParent (donner/svg/tests/SVGStyleCascade_tests.cc:118); SVGStyleCascadeTests.InheritedVisibility (donner/svg/tests/SVGStyleCascade_tests.cc:330); StyleSystemTest.StyleInheritedFromParent (donner/svg/components/style/tests/StyleSystem_tests.cc:524); resvg structure/defs/style-inheritance.svg (active) | - | - | Correct when the child has no declaration of its own. |
| feat:css-cascade-4/inheritance-parent-priority-overrides-child | divergent | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inheriting | Inheritance is used only when the cascade yields no value for the element. Cascade priority orders declarations that target the same element and is never compared between a parent and a child. | donner/svg/properties/Property.h:208-213: when the child has its own value and parent.specificity > specificity, the child takes the parent's value and priority | donner/svg/properties/PropertyRegistry.cc:3335-3341 applies this to every property. Afterwards donner/svg/components/style/StyleSystem.cc:797-806 restores the child's own value for nine inherited properties: font-size, text-indent, color, fill, stroke, color-interpolation, fill-opacity, stroke-opacity, stroke-miterlimit. The same code also names opacity, but opacity is not an inherited property (donner/svg/properties/PropertyRegistry.h:184), so it is never overridden and that restore has no effect: nine is the effective count. | Property.InheritFromCoversStateAndSpecificityBranches (donner/svg/properties/tests/PropertyRegistry_tests.cc:176-213) asserts the divergent result (child (0,1,0) value 1, parent (0,2,0) value 10, expects 10) | high | S | By code reading. A child's own declaration of an inherited property is replaced by the parent's value. Exact trigger, three conditions together: (1) the property uses an inheriting cascade (every inherited property, fill and stroke included); (2) the child's own cascaded state is a value or initial; (3) the direct parent's computed property is specified and carries a specificity strictly greater than that of the child's winning declaration. The parent's computed specificity is that of its own winning declaration (a parent inherit or unset declaration counts: it keeps its own specificity while holding the grandparent's value), or that of an ancestor's declaration that already overrode the parent through this same branch, because the branch copies the specificity together with the value; the override is therefore transitive down a chain of weaker declarations. A parent that only inherits the property keeps the default specificity and never triggers it, so one non-declaring element between the two hides the defect. Specificity order, lowest first (donner/css/Specificity.h:57-66): presentation attribute, author selectors by (a,b,c), style attribute, animation, !important, !important style attribute. The defect therefore appears for a parent style attribute against a child presentation attribute or any selector, a parent class or id rule against a child presentation attribute or type rule, and a parent !important declaration against any normal child declaration; equal specificity (attribute against attribute, rules of the same rank) does not trigger it. The other 35 inherited properties are not repaired: visibility, fill-rule, stroke-width, stroke-linecap, stroke-linejoin, stroke-dasharray, stroke-dashoffset, clip-rule, color-interpolation-filters, pointer-events, cursor, marker-start, marker-mid, marker-end, font-family, font-weight, font-style, font-stretch, font-variant, font-synthesis-small-caps, font-synthesis-style, font-kerning, font-size-adjust, overflow-wrap, text-transform, white-space, direction, text-anchor, dominant-baseline, letter-spacing, word-spacing, writing-mode, text-orientation, image-rendering, paint-order. Example: <g style="stroke-width:10"><rect stroke="black" stroke-width="2"/></g> strokes the rect 10 wide where CSS requires 2, because style-attribute priority outranks the presentation attribute's (0,0,0). The same defect is recorded in painting_properties.md (feat:svg2/painting-inherited-value-vs-declared-value) and styling_properties.md (feat:css-cascade-4/inheritance-ignores-specificity). |
| feat:css-cascade-4/inheritance-root-element | conformant-untested | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inheriting | The root element's inherited value is the property's initial value. | donner/svg/properties/Property.h:100 | donner/svg/components/style/StyleSystem.cc:787-789 (no parent: properties returned unchanged, so unresolved keywords read as initial) | none | - | - | inherit and unset on the root fall back to initial through Property::get(). |
| feat:css-cascade-4/inheritance-through-use-shadow-tree | conformant | https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance | Elements in a use shadow tree inherit from the host use element (CSS inheritance follows the flat tree). | donner/svg/components/shadow/ShadowTreeSystem.cc:321-332 (instance root is attached under the host) | donner/svg/components/style/StyleSystem.cc:837-838, 850-855 | resvg structure/use/style-inheritance-1.svg, style-inheritance-2.svg, style-inheritance-3.svg, fill-opacity-inheritance.svg, stroke-opacity-inheritance.svg (active) | - | - | Subject to the parent-priority defect when the host and the referenced element both declare a property. |
| feat:css-cascade-4/inheritance-through-non-rendered-parent | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inheriting | Inheritance follows the element tree regardless of whether the parent is rendered (display: none, defs, resource containers). | none needed | donner/svg/components/style/StyleSystem.cc:1063-1074 (a computed style is built for every tree entity; display is not consulted) | resvg structure/defs/style-inheritance.svg, structure/defs/style-inheritance-on-text.svg, structure/use/display-inheritance.svg (active) | - | - | Except for the pattern case in the next row. |
| feat:css-cascade-4/inheritance-through-pattern-element | divergent | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inheriting | Children of a pattern element inherit every inherited property, including fill and stroke, from the pattern element and its ancestors. | donner/svg/SVGPatternElement.cc:37 tags every pattern element | donner/svg/components/style/StyleSystem.cc:792-796 and donner/svg/properties/Property.h:197-201: direct children of a tagged parent do not inherit fill or stroke | PropertyRegistry.InheritFromNoPaintSkipsPaintServers (donner/svg/properties/tests/PropertyRegistry_tests.cc:1246) covers the registry option only | low | S | <pattern fill="green"><rect/></pattern> paints the rect with the initial black fill by code reading (not executed). The block exists to stop paint recursion; cross-reference the paint-server ledger. |
| feat:css-cascade-4/keyword-initial | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#initial | initial sets the property to its initial value. | donner/svg/properties/PropertyParsing.cc:36-37, 58-59 | donner/svg/properties/PropertyParsing.h:108-110; donner/svg/properties/Property.h:100 | PropertyRegistry.BuiltinKeywords (donner/svg/properties/tests/PropertyRegistry_tests.cc:388) | - | - | On an inherited property it can still be overridden by a higher-priority parent (parent-priority row). |
| feat:css-cascade-4/keyword-inherit | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inherit | inherit takes the parent's computed value for any property, inherited or not. | donner/svg/properties/PropertyParsing.cc:38-39, 60-61 | donner/svg/properties/Property.h:202-207, 215-222 | Property.NonInheritingPropertyOnlyInheritsExplicitInheritState (donner/svg/properties/tests/PropertyRegistry_tests.cc:234); StyleSystemTest.DecorationLonghandsDoNotInheritUnlessRequested (donner/svg/components/style/tests/StyleSystem_tests.cc:924) | - | - | Works on non-inherited properties. |
| feat:css-cascade-4/keyword-unset | conformant | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#inherit-initial | unset behaves as inherit for inherited properties and as initial otherwise. | donner/svg/properties/PropertyParsing.cc:40-41, 62-63 | donner/svg/properties/Property.h:202-207 (inherited), donner/svg/properties/Property.h:100 (non-inherited falls back to initial) | PropertyRegistry.BuiltinKeywords (donner/svg/properties/tests/PropertyRegistry_tests.cc:388); Property.InheritFromCoversStateAndSpecificityBranches (donner/svg/properties/tests/PropertyRegistry_tests.cc:176) | - | - | Both branches implemented. |
| feat:css-cascade-4/keyword-revert | missing | https://www.w3.org/TR/2022/CR-css-cascade-4-20220113/#default | revert rolls the cascade back one origin: author to user, user to user agent, user agent behaves as unset. | donner/svg/properties/PropertyParsing.cc:32-43 recognizes only initial, inherit and unset (the only other mention is a reserved font-family word at donner/svg/properties/PropertyRegistry.cc:2171) | donner/svg/properties/PropertyParsing.h:113-119: the keyword reaches the property's value parser, fails, and the declaration is ignored | none | low | M | fill: revert leaves the previous value in place. A correct implementation needs per-origin winners, which the single-slot property model does not keep. |
| Key | Class | Spec anchor | Requirement (paraphrase) | Parse evidence | Consume evidence | Tests | Impact | Size | Notes |
| feat:css-cascade-5/at-import-layer | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#at-import | @import url layer or layer(name) imports the sheet into an anonymous or named cascade layer. | donner/css/parser/StylesheetParser.cc:615-617 | donner/css/parser/StylesheetParser.cc:649-650 (the import is ignored with a warning) | StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored (donner/css/parser/tests/StylesheetParser_tests.cc:266) | low | M | The imported styles are lost entirely rather than applied at layer priority. |
| feat:css-cascade-5/layer-block | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#layer-block | @layer name { rules } assigns the contained rules to a named layer. | donner/css/parser/StylesheetParser.cc:720-733: an @layer rule is neither an import, a warned conditional rule nor @font-face, so it is discarded without a diagnostic | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | none | medium | M | @layer base { rect { fill: green } } contributes nothing, silently. Rules inside layers are common in generated CSS. |
| feat:css-cascade-5/layer-statement | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#layer-empty | @layer a, b; declares layers and fixes their order without assigning styles. | donner/css/parser/StylesheetParser.cc:669-673 (a block-less @layer does not close the import section) | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | StylesheetParser.ImportMayFollowLayerStatementsUnknownAndInvalidRules (donner/css/parser/tests/StylesheetParser_tests.cc:242) | low | M | Ignored; harmless until layers exist. Its interaction with @import placement is already correct. |
| feat:css-cascade-5/layer-anonymous | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#unnamed-layers | An @layer block without a name creates a unique anonymous layer. | donner/css/parser/StylesheetParser.cc:720-733: an @layer rule is neither an import, a warned conditional rule nor @font-face, so it is discarded without a diagnostic | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | none | low | M | Contents discarded. |
| feat:css-cascade-5/layer-naming-and-nesting | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#layer-names | Layers nest, and dotted names address nested layers. | donner/css/parser/StylesheetParser.cc:720-733: an @layer rule is neither an import, a warned conditional rule nor @font-face, so it is discarded without a diagnostic | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | none | low | M | Contents discarded. |
| feat:css-cascade-5/layer-ordering | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#layer-ordering | Layers are ordered by first appearance; unlayered declarations form an implicit final layer that beats every explicit layer for normal declarations. | donner/css/parser/StylesheetParser.cc:720-733: an @layer rule is neither an import, a warned conditional rule nor @font-face, so it is discarded without a diagnostic | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | none | medium | M | No layer step in the priority order. |
| feat:css-cascade-5/layer-important-reversal | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#cascade-sort | For important declarations layer order is reversed: the earliest layer wins and unlayered important declarations lose to layered ones. | donner/css/parser/StylesheetParser.cc:720-733: an @layer rule is neither an import, a warned conditional rule nor @font-face, so it is discarded without a diagnostic | donner/css/Specificity.h:57-66 has no layer rank, and donner/css/Rule.h and donner/css/Stylesheet.h carry no layer field on a rule | none | low | M | Not implemented. |
| feat:css-cascade-5/keyword-revert-layer | missing | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#revert-layer | revert-layer rolls the cascade back to the previous layer within the same origin. | donner/svg/properties/PropertyParsing.cc:32-43 | donner/svg/properties/PropertyParsing.h:113-119 (fails the value parser; declaration ignored) | none | low | M | Depends on layers. |
| feat:css-cascade-5/per-fragment-value-processing | not-applicable | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#fragments | Value processing may differ per box fragment (for example ::first-line). | none | none | none | - | - | SVG rendering has no box fragmentation and ::first-line is not implemented. |
| feat:css-cascade-5/layer-apis | not-applicable | https://www.w3.org/TR/2022/CR-css-cascade-5-20220113/#layer-apis | CSSOM interfaces for layer rules. | none | none | none | - | - | Scripted object model, out of scope for a user agent without script. |