Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
CSS parsing and values, and SVG basic data types

Part of the W3C specification audit. One row per element, attribute, property, value and feature in scope. Findings come from reading Donner source at revision b39a524a2 and the specification versions listed below. No code was built or executed for this ledger, so every behavioral claim is a code-reading result until a test confirms it. All paths are relative to the repository root.

Item-by-item audit of Donner's CSS tokenizer, parser and value handling, and of SVG attribute-value parsing. Every claim comes from reading source at revision b39a524a2; nothing was built or executed, so behavior statements are by code reading. All paths are relative to the Donner checkout root.

Specs read

Spec Level Maturity Dated URL read
CSS Syntax 3 Candidate Recommendation Draft, 2026-10-01 https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/
CSS Values and Units 4 Working Draft, 2024-03-12 https://www.w3.org/TR/2024/WD-css-values-4-20240312/
CSS Values and Units 3 Candidate Recommendation Draft, 2024-03-22 (status reference only) https://www.w3.org/TR/2024/CRD-css-values-3-20240322/
CSS Custom Properties for Cascading Variables 1 Candidate Recommendation Snapshot, 2022-06-16 https://www.w3.org/TR/2022/CR-css-variables-1-20220616/
CSS Conditional Rules 3 Candidate Recommendation Draft, 2024-08-15 https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/
Media Queries 4 Candidate Recommendation Draft, 2026-02-19 https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/
CSS Namespaces 3 Recommendation, 2014-03-20 https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/
CSS Nesting 1 Working Draft, 2026-01-22 https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/
CSS Style Attributes 1 Recommendation, 2013-11-07 https://www.w3.org/TR/2013/REC-css-style-attr-20131107/
SVG 2, Basic Data Types and Interfaces 2 Candidate Recommendation Snapshot, 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html

Level 3 status of Values and Units: Level 3 is the more mature level (Candidate Recommendation Draft) and is the level SVG 2 references. It already defines calc(), the em, ex, ch, rem, vw, vh, vmin, vmax and absolute units, angles, time, frequency and resolution, url(), strings, custom-ident and position. Level 4 (Working Draft) adds the root-relative and font-metric units (rex, cap, rcap, rch, ic, ric, lh, rlh), vi and vb, the small, large and dynamic viewport units, ratio, dashed-ident, src(), and every math function other than calc(). Rows for Level 4 additions say so in their notes or are grouped under the Level 4 functions. attr() and toggle() are in neither level's Technical Report (the Level 4 change log defers them to Level 5).

Out of scope for a script-less SVG user agent, and why: CSSOM and WebIDL sections of every spec (no script engine or object model binding); the SVG DOM interface sections 4.3 to 4.7 of the types chapter (same reason); Values 4 section 3 (combination procedures, which belong to animation); Values 4 URL processing model (fetch integration); time and frequency units (no consumer in a static renderer). Each still has a not-applicable row.

Inventory

Derived from each spec's table of contents, definition anchors (dfn, typedef-*, funcdef-*, valdef-*, descdef-*), tokenizer and parser algorithm sections, unit tables and at-rule definitions as found in the HTML of each specification. Every key below has exactly one matrix row. 355 keys in total.

  • CSS Syntax 3: input byte stream and preprocessing (8): feat:css-syntax-3/encoding-protocol-label, feat:css-syntax-3/encoding-bom, feat:css-syntax-3/encoding-charset-rule, feat:css-syntax-3/encoding-environment, feat:css-syntax-3/encoding-default-utf8, feat:css-syntax-3/preprocess-cr-ff-crlf, feat:css-syntax-3/preprocess-nul, feat:css-syntax-3/preprocess-surrogates
  • CSS Syntax 3: tokenizer (35): feat:css-syntax-3/token-comment, feat:css-syntax-3/token-whitespace, feat:css-syntax-3/token-string, feat:css-syntax-3/token-bad-string, feat:css-syntax-3/token-hash, feat:css-syntax-3/token-delim, feat:css-syntax-3/token-number, feat:css-syntax-3/number-sign, feat:css-syntax-3/number-fraction, feat:css-syntax-3/number-exponent, feat:css-syntax-3/token-percentage, feat:css-syntax-3/token-dimension, feat:css-syntax-3/token-ident, feat:css-syntax-3/ident-escapes, feat:css-syntax-3/ident-non-ascii-code-points, feat:css-syntax-3/token-function, feat:css-syntax-3/token-url, feat:css-syntax-3/token-url-quoted-is-function, feat:css-syntax-3/token-bad-url, feat:css-syntax-3/url-invalid-escape, feat:css-syntax-3/token-at-keyword, feat:css-syntax-3/token-cdo, feat:css-syntax-3/token-cdc, feat:css-syntax-3/token-colon, feat:css-syntax-3/token-semicolon, feat:css-syntax-3/token-comma, feat:css-syntax-3/token-brackets, feat:css-syntax-3/token-unicode-range, feat:css-syntax-3/token-eof, feat:css-syntax-3/escape-code-point, feat:css-syntax-3/escape-trailing-whitespace, feat:css-syntax-3/escape-at-eof, feat:css-syntax-3/would-start-identifier, feat:css-syntax-3/would-start-number, feat:css-syntax-3/consume-name
  • CSS Syntax 3: parser entry points (9): feat:css-syntax-3/parse-stylesheet, feat:css-syntax-3/parse-stylesheet-contents, feat:css-syntax-3/parse-block-contents, feat:css-syntax-3/parse-rule, feat:css-syntax-3/parse-declaration, feat:css-syntax-3/parse-component-value, feat:css-syntax-3/parse-list-of-component-values, feat:css-syntax-3/parse-comma-separated-list, feat:css-syntax-3/parse-grammar
  • CSS Syntax 3: parser algorithms (15): feat:css-syntax-3/consume-stylesheet-contents, feat:css-syntax-3/consume-at-rule, feat:css-syntax-3/consume-qualified-rule, feat:css-syntax-3/consume-block, feat:css-syntax-3/consume-block-contents, feat:css-syntax-3/consume-declaration, feat:css-syntax-3/declaration-important, feat:css-syntax-3/declaration-brace-block-restriction, feat:css-syntax-3/declaration-custom-property-original-text, feat:css-syntax-3/consume-bad-declaration-remnants, feat:css-syntax-3/consume-list-of-component-values, feat:css-syntax-3/consume-component-value, feat:css-syntax-3/consume-simple-block, feat:css-syntax-3/consume-function, feat:css-syntax-3/consume-unicode-range-value
  • CSS Syntax 3: error recovery and rule definitions (12): feat:css-syntax-3/recover-unclosed-blocks-eof, feat:css-syntax-3/recover-eof-in-qualified-rule-prelude, feat:css-syntax-3/recover-invalid-declaration, feat:css-syntax-3/recover-unknown-property-or-value, feat:css-syntax-3/declaration-name-case-insensitive, feat:css-syntax-3/recover-unknown-at-rule, feat:css-syntax-3/recover-invalid-selector, feat:css-syntax-3/recover-stray-close-tokens, feat:css-syntax-3/block-contents-productions, feat:css-syntax-3/any-value-declaration-value, feat:css-syntax-3/style-rule-definition, feat:css-syntax-3/charset-rule-not-a-rule
  • CSS Syntax 3: An+B microsyntax (21): feat:css-syntax-3/anb-odd-even, feat:css-syntax-3/anb-integer, feat:css-syntax-3/anb-n-dimension, feat:css-syntax-3/anb-plus-n, feat:css-syntax-3/anb-minus-n, feat:css-syntax-3/anb-ndashdigit-dimension, feat:css-syntax-3/anb-ndashdigit-ident, feat:css-syntax-3/anb-dashndashdigit-ident, feat:css-syntax-3/anb-n-dimension-signed-integer, feat:css-syntax-3/anb-plus-n-signed-integer, feat:css-syntax-3/anb-minus-n-signed-integer, feat:css-syntax-3/anb-ndash-dimension-signless-integer, feat:css-syntax-3/anb-plus-ndash-signless-integer, feat:css-syntax-3/anb-minus-ndash-signless-integer, feat:css-syntax-3/anb-n-dimension-sign-signless-integer, feat:css-syntax-3/anb-plus-n-sign-signless-integer, feat:css-syntax-3/anb-minus-n-sign-signless-integer, feat:css-syntax-3/anb-whitespace-rules, feat:css-syntax-3/anb-integer-range, feat:css-syntax-3/anb-serialization, feat:css-syntax-3/anb-upstream-suite
  • CSS Syntax 3: serialization (1): feat:css-syntax-3/serialization-round-trip
  • CSS Values 4: length units (43): feat:css-values-4/unit-cm, feat:css-values-4/unit-mm, feat:css-values-4/unit-Q, feat:css-values-4/unit-in, feat:css-values-4/unit-pt, feat:css-values-4/unit-pc, feat:css-values-4/unit-px, feat:css-values-4/unit-em, feat:css-values-4/unit-rem, feat:css-values-4/unit-ex, feat:css-values-4/unit-ch, feat:css-values-4/unit-rex, feat:css-values-4/unit-cap, feat:css-values-4/unit-rcap, feat:css-values-4/unit-rch, feat:css-values-4/unit-ic, feat:css-values-4/unit-ric, feat:css-values-4/unit-lh, feat:css-values-4/unit-rlh, feat:css-values-4/unit-vw, feat:css-values-4/unit-vh, feat:css-values-4/unit-vmin, feat:css-values-4/unit-vmax, feat:css-values-4/unit-vi, feat:css-values-4/unit-vb, feat:css-values-4/unit-svw, feat:css-values-4/unit-svh, feat:css-values-4/unit-svi, feat:css-values-4/unit-svb, feat:css-values-4/unit-svmin, feat:css-values-4/unit-svmax, feat:css-values-4/unit-lvw, feat:css-values-4/unit-lvh, feat:css-values-4/unit-lvi, feat:css-values-4/unit-lvb, feat:css-values-4/unit-lvmin, feat:css-values-4/unit-lvmax, feat:css-values-4/unit-dvw, feat:css-values-4/unit-dvh, feat:css-values-4/unit-dvi, feat:css-values-4/unit-dvb, feat:css-values-4/unit-dvmin, feat:css-values-4/unit-dvmax
  • CSS Values 4: other units (12): feat:css-values-4/unit-deg, feat:css-values-4/unit-grad, feat:css-values-4/unit-rad, feat:css-values-4/unit-turn, feat:css-values-4/unit-s, feat:css-values-4/unit-ms, feat:css-values-4/unit-Hz, feat:css-values-4/unit-kHz, feat:css-values-4/unit-dpi, feat:css-values-4/unit-dpcm, feat:css-values-4/unit-dppx, feat:css-values-4/unit-x
  • CSS Values 4: value types (42): feat:css-values-4/value-definition-syntax, feat:css-values-4/combining-values, feat:css-values-4/css-wide-keyword-initial, feat:css-values-4/css-wide-keyword-inherit, feat:css-values-4/css-wide-keyword-unset, feat:css-values-4/css-wide-keyword-revert, feat:css-values-4/custom-ident, feat:css-values-4/dashed-ident, feat:css-values-4/string, feat:css-values-4/url-unquoted, feat:css-values-4/url-quoted, feat:css-values-4/url-src-function, feat:css-values-4/url-modifiers, feat:css-values-4/url-fragment-only, feat:css-values-4/url-relative-resolution, feat:css-values-4/url-empty, feat:css-values-4/url-processing-model, feat:css-values-4/integer, feat:css-values-4/number, feat:css-values-4/percentage, feat:css-values-4/length-percentage, feat:css-values-4/angle-percentage, feat:css-values-4/time-percentage, feat:css-values-4/frequency-percentage, feat:css-values-4/number-or-percentage-mixes, feat:css-values-4/ratio, feat:css-values-4/dimension-unknown-unit, feat:css-values-4/unitless-zero-length, feat:css-values-4/unitless-nonzero-length-in-css, feat:css-values-4/unitless-zero-angle, feat:css-values-4/range-restrictions, feat:css-values-4/computed-value-rounding, feat:css-values-4/position-one-value, feat:css-values-4/position-two-value, feat:css-values-4/position-four-value, feat:css-values-4/position-three-value-rejected, feat:css-values-4/position-transform-origin, feat:css-values-4/color-and-image-types, feat:css-values-4/attr-function, feat:css-values-4/toggle-function, feat:css-values-4/list-valued-coordination, feat:css-values-4/quirky-length
  • CSS Values 4: mathematical expressions (37): feat:css-values-4/math-calc, feat:css-values-4/math-calc-addition, feat:css-values-4/math-calc-multiplication, feat:css-values-4/math-calc-division, feat:css-values-4/math-calc-parentheses, feat:css-values-4/math-type-checking, feat:css-values-4/math-percentage-resolution, feat:css-values-4/math-ieee-infinity-nan, feat:css-values-4/math-simplification, feat:css-values-4/math-computed-value, feat:css-values-4/math-range-clamping, feat:css-values-4/math-serialization, feat:css-values-4/math-min, feat:css-values-4/math-max, feat:css-values-4/math-clamp, feat:css-values-4/math-round, feat:css-values-4/math-mod, feat:css-values-4/math-rem, feat:css-values-4/math-sin, feat:css-values-4/math-cos, feat:css-values-4/math-tan, feat:css-values-4/math-asin, feat:css-values-4/math-acos, feat:css-values-4/math-atan, feat:css-values-4/math-atan2, feat:css-values-4/math-pow, feat:css-values-4/math-sqrt, feat:css-values-4/math-hypot, feat:css-values-4/math-log, feat:css-values-4/math-exp, feat:css-values-4/math-abs, feat:css-values-4/math-sign, feat:css-values-4/math-constant-e, feat:css-values-4/math-constant-pi, feat:css-values-4/math-constant-infinity, feat:css-values-4/math-constant-minus-infinity, feat:css-values-4/math-constant-nan
  • CSS Custom Properties for Cascading Variables 1 (15): feat:css-variables-1/custom-property-declaration, feat:css-variables-1/custom-property-value-syntax, feat:css-variables-1/custom-property-case-sensitivity, feat:css-variables-1/custom-property-inheritance, feat:css-variables-1/custom-property-cascade, feat:css-variables-1/guaranteed-invalid-value, feat:css-variables-1/dependency-cycles, feat:css-variables-1/var-function, feat:css-variables-1/var-fallback, feat:css-variables-1/var-substitution-time, feat:css-variables-1/invalid-at-computed-value-time, feat:css-variables-1/variables-in-shorthands, feat:css-variables-1/long-variables, feat:css-variables-1/var-not-in-names-or-selectors, feat:css-variables-1/serialization-and-apis
  • CSS Conditional Rules 3 (13): feat:css-conditional-3/conditional-group-processing, feat:css-conditional-3/contents-of-conditional-rules, feat:css-conditional-3/placement-and-nesting, feat:css-conditional-3/at-media, feat:css-conditional-3/at-supports, feat:css-conditional-3/supports-declaration, feat:css-conditional-3/supports-not, feat:css-conditional-3/supports-and, feat:css-conditional-3/supports-or, feat:css-conditional-3/supports-nested-parentheses, feat:css-conditional-3/supports-general-enclosed, feat:css-conditional-3/supports-definition-of-support, feat:css-conditional-3/cssom-interfaces
  • Media Queries 4 (44): feat:mediaqueries-4/media-query-list, feat:mediaqueries-4/modifier-not, feat:mediaqueries-4/modifier-only, feat:mediaqueries-4/media-type-all, feat:mediaqueries-4/media-type-screen, feat:mediaqueries-4/media-type-print, feat:mediaqueries-4/media-type-deprecated, feat:mediaqueries-4/media-type-unknown, feat:mediaqueries-4/feature-plain, feat:mediaqueries-4/feature-boolean-context, feat:mediaqueries-4/feature-range-context, feat:mediaqueries-4/feature-min-max-prefixes, feat:mediaqueries-4/condition-and, feat:mediaqueries-4/condition-or, feat:mediaqueries-4/condition-not, feat:mediaqueries-4/condition-parentheses, feat:mediaqueries-4/general-enclosed, feat:mediaqueries-4/three-valued-evaluation, feat:mediaqueries-4/error-handling, feat:mediaqueries-4/units-in-queries, feat:mediaqueries-4/feature-width, feat:mediaqueries-4/feature-height, feat:mediaqueries-4/feature-aspect-ratio, feat:mediaqueries-4/feature-orientation, feat:mediaqueries-4/feature-resolution, feat:mediaqueries-4/feature-scan, feat:mediaqueries-4/feature-grid, feat:mediaqueries-4/feature-update, feat:mediaqueries-4/feature-overflow-block, feat:mediaqueries-4/feature-overflow-inline, feat:mediaqueries-4/feature-color, feat:mediaqueries-4/feature-color-index, feat:mediaqueries-4/feature-monochrome, feat:mediaqueries-4/feature-color-gamut, feat:mediaqueries-4/feature-pointer, feat:mediaqueries-4/feature-hover, feat:mediaqueries-4/feature-any-pointer, feat:mediaqueries-4/feature-any-hover, feat:mediaqueries-4/feature-device-width, feat:mediaqueries-4/feature-device-height, feat:mediaqueries-4/feature-device-aspect-ratio, feat:mediaqueries-4/viewport-for-svg, feat:mediaqueries-4/style-element-media-attribute, feat:mediaqueries-4/import-media-condition
  • CSS Namespaces 3 (7): feat:css-namespaces-3/at-namespace-syntax, feat:css-namespaces-3/at-namespace-placement, feat:css-namespaces-3/namespace-scope, feat:css-namespaces-3/prefix-declaration, feat:css-namespaces-3/default-namespace, feat:css-namespaces-3/qualified-name-in-type-selector, feat:css-namespaces-3/qualified-name-in-attribute-selector
  • CSS Nesting 1 (8): feat:css-nesting-1/nested-style-rules, feat:css-nesting-1/nested-relative-selectors, feat:css-nesting-1/nesting-selector, feat:css-nesting-1/nested-group-rules, feat:css-nesting-1/nested-scope-rules, feat:css-nesting-1/mixing-declarations-and-rules, feat:css-nesting-1/nested-declarations-rule, feat:css-nesting-1/cssom
  • CSS Style Attributes (7): feat:css-style-attr/declaration-list-syntax, feat:css-style-attr/forward-compatible-parsing, feat:css-style-attr/close-brace-is-invalid-token, feat:css-style-attr/no-rules-in-attribute, feat:css-style-attr/cascading-and-specificity, feat:css-style-attr/property-name-case, feat:css-style-attr/relative-url-base
  • SVG 2 types chapter: attribute syntax and basic data types (26): feat:svg2-types/initial-value-definition, feat:svg2-types/invalid-value-definition, feat:svg2-types/presentation-attr-unitless-length, feat:svg2-types/presentation-attr-unitless-length-percentage, feat:svg2-types/presentation-attr-unitless-angle, feat:svg2-types/css-declaration-no-unitless, feat:svg2-types/presentation-attr-css-comments-escapes, feat:svg2-types/other-attr-css-grammar-parsing, feat:svg2-types/url-attribute-parsing, feat:svg2-types/attr-parse-failure-initial, feat:svg2-types/invalid-presentation-attr-as-initial, feat:svg2-types/case-insensitive-attribute-values, feat:svg2-types/real-number-precision, feat:svg2-types/number-with-exponent, feat:svg2-types/range-clamping-deferred, feat:svg2-types/list-comma-whitespace, feat:svg2-types/percentage-in-attributes, feat:svg2-types/angle-default-unit, feat:svg2-types/number-optional-number, feat:svg2-types/iri-versus-url-function, feat:svg2-types/dom-overview, feat:svg2-types/dom-element-interfaces, feat:svg2-types/dom-basic-type-interfaces, feat:svg2-types/dom-list-interfaces, feat:svg2-types/dom-animated-interfaces, feat:svg2-types/dom-other-mixins

Matrix

CSS Syntax 3: input byte stream and preprocessing

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/encoding-protocol-label missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#determine-the-fallback-encoding An encoding label supplied by HTTP or an equivalent protocol takes precedence over every other hint except a BOM. donner/svg/components/resources/StylesheetImportLoader.cc:80-102 checks only the MIME type of a fetched sheet; no charset parameter is read none (the bytes are always treated as UTF-8) none low S Only reachable through @import. Inline style content arrives already decoded by the XML parser.
feat:css-syntax-3/encoding-bom partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#css-decode-bytes Decoding gives precedence to a byte order mark; UTF-8 and UTF-16 BOMs select the encoding and are removed. donner/svg/components/resources/StylesheetImportLoader.cc:98-100 strips a UTF-8 BOM from an imported sheet donner/css/parser/StylesheetParser.cc:739-741 parses the remaining text none low S UTF-16 BOMs are not recognized: the sheet fails the UTF-8 validity check (donner/svg/components/resources/StylesheetImportLoader.cc:94-97) and the import is dropped. No test feeds a BOM-prefixed import.
feat:css-syntax-3/encoding-charset-rule partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#determine-the-fallback-encoding If the first 1024 bytes start with the exact byte pattern for @charset "label"; the label selects the fallback encoding (utf-16 labels map to utf-8). donner/css/parser/RuleParser.cc:84-102 (maybeRemoveCharset) recognizes the exact byte pattern within 1024 bytes and removes it donner/css/parser/RuleParser.cc:218-222; the label itself is discarded RuleParser.Charset (donner/css/parser/tests/RuleParser_tests.cc); StylesheetParser.ImportOffsetIncludesRemovedCharsetPrefix low S Pattern matching is conformant; the encoding named by the label is never applied, so a non-UTF-8 sheet is rejected or mis-decoded. Vendored stylesheet_bytes.json is not wired into the test harness.
feat:css-syntax-3/encoding-environment partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#environment-encoding When no other hint exists, the referring document or importing sheet supplies an environment encoding, otherwise UTF-8. donner/svg/components/resources/StylesheetImportLoader.cc:92-101 always assumes UTF-8 same none low S Equivalent to the spec whenever the importing document is UTF-8, which is the only document encoding the UTF-8 path handles.
feat:css-syntax-3/encoding-default-utf8 partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#determine-the-fallback-encoding The final fallback is UTF-8; decoding replaces malformed sequences with U+FFFD rather than failing. donner/svg/components/resources/StylesheetImportLoader.cc:94-97 rejects an imported sheet that is not valid UTF-8 donner/svg/components/resources/StylesheetImportLoader.cc:149-150 none low S Divergence is only for malformed input: the whole import is dropped instead of being decoded with replacement characters.
feat:css-syntax-3/preprocess-cr-ff-crlf conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#input-preprocessing CR, FF and CRLF are each replaced by a single LF before tokenizing. donner/css/parser/details/Tokenizer.cc:13-27 treats CR, FF, LF and CRLF as newline or whitespace inside the tokenizer instead of preprocessing donner/css/parser/details/Tokenizer.cc:425-438 (strings), :83-94 (escapes), :536-559 (url) Tokenizer.Whitespace, Tokenizer.String (escaped CR, CRLF and FF cases), Tokenizer.Escapes (donner/css/parser/tests/Tokenizer_tests.cc) - - Whitespace tokens keep the raw characters, which no consumer observes. The one observable difference is recorded under escape-trailing-whitespace.
feat:css-syntax-3/preprocess-nul conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#input-preprocessing U+0000 is replaced by U+FFFD. donner/css/parser/details/Tokenizer.cc:36-41 (NUL counts as a name-start code point), :187-195, :224-228, :446-447, :560-562 emit U+FFFD token values consumed unchanged by donner/css/parser/details/ComponentValueParser.h:109-128 CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) (url with a NUL byte) - -
feat:css-syntax-3/preprocess-surrogates not-applicable https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#input-preprocessing Surrogate code points in the input are replaced by U+FFFD. none none none - - Input is UTF-8 bytes, where a surrogate cannot be encoded validly; the spec notes this only arises through DOM strings. Escaped surrogates are covered by escape-code-point.

CSS Syntax 3: tokenizer

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/token-comment conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-comment Comments are consumed and produce no token; an unterminated comment is a parse error that consumes to EOF. donner/css/parser/details/Tokenizer.cc:381-399 donner/css/parser/details/Tokenizer.cc:258-260 Tokenizer.Comment, Tokenizer.CommentAndWhitespace; ValueParser.SupportsComments; resvg structure/style-attribute/comments.svg (enabled) - - An unterminated comment yields an internal error token, which parsers skip.
feat:css-syntax-3/token-whitespace conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#whitespace A run of whitespace (LF, tab, space after preprocessing) becomes one whitespace token. donner/css/parser/details/Tokenizer.cc:270-274, :401-411 donner/css/parser/details/ComponentValueParser.h:140-158; donner/css/parser/details/Subparsers.h:144-153 Tokenizer.Whitespace - -
feat:css-syntax-3/token-string conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-string-token A quoted run up to the matching quote is a string token; an escaped newline is dropped; EOF ends the string with a parse error. donner/css/parser/details/Tokenizer.cc:414-457 font-family and url() consumers, for example donner/svg/properties/PropertyRegistry.cc:931-958 Tokenizer.String, Tokenizer.StringEscapedCodepoint - -
feat:css-syntax-3/token-bad-string conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-string-token An unescaped newline inside a string is a parse error: emit bad-string and reconsume the newline. donner/css/parser/details/Tokenizer.cc:425-428 Token::isParseError at donner/css/Token.cc:23-32; declarations containing it fail their property grammar Tokenizer.String (donner/css/parser/tests/Tokenizer_tests.cc:95-106) - -
feat:css-syntax-3/token-hash conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token # followed by an ident code point or valid escape is a hash token; its type flag is id when the name would start an identifier, else unrestricted. donner/css/parser/details/Tokenizer.cc:279-292 donner/css/parser/ColorParser.cc (hex colors) and donner/css/parser/SelectorParser.cc (ID selectors) Tokenizer.Hash - - The selector parser accepts unrestricted hashes as IDs; that belongs to selectors_cascade.md.
feat:css-syntax-3/token-delim conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token Any code point that starts no other token becomes a delim token. donner/css/parser/details/Tokenizer.cc:290, :299, :311, :323, :335, :347, :365 selector combinators and An+B signs, donner/css/parser/AnbMicrosyntaxParser.cc:336-344 Tokenizer.Delim - -
feat:css-syntax-3/token-number conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-number Digits with optional sign, fraction and exponent form a number token carrying value, integer or number type flag and sign. donner/css/parser/details/Tokenizer.cc:460-492; donner/base/parser/NumberParser.cc:195-369 donner/svg/parser/LengthPercentageParser.cc:18-23 Tokenizer.Number, Tokenizer.NumberSigns, Tokenizer.NumberDecimal, Tokenizer.NumberExponent; NumberParser.* (donner/base/parser/tests/NumberParser_tests.cc) - - Values beyond double range become infinity, which the spec leaves to the implementation.
feat:css-syntax-3/number-sign conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#starts-with-a-number A leading + or - belongs to the number only when followed by a digit or by . and a digit. donner/css/parser/details/Tokenizer.cc:123-152, :294-313 donner/css/parser/AnbMicrosyntaxParser.cc:421-436 (signed versus signless integers) Tokenizer.NumberSigns - -
feat:css-syntax-3/number-fraction conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-number A . is consumed only when a digit follows it; a trailing dot is not part of the number. donner/base/parser/NumberParser.cc:273-288 donner/css/parser/details/Tokenizer.cc:473-479 sets the number type flag Tokenizer.NumberDecimal; NumberParser.Decimal - -
feat:css-syntax-3/number-exponent conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-number e or E, an optional sign and at least one digit form an exponent; otherwise the e starts a unit. donner/base/parser/NumberParser.cc:303-338 donner/css/parser/details/Tokenizer.cc:481-485 (a bare e becomes a dimension unit) Tokenizer.NumberExponent; NumberParser.Exponent - -
feat:css-syntax-3/token-percentage conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-numeric-token A number immediately followed by % is a percentage token. donner/css/parser/details/Tokenizer.cc:486-488 donner/svg/parser/LengthPercentageParser.cc:16-17 CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - -
feat:css-syntax-3/token-dimension conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-numeric-token A number immediately followed by an identifier is a dimension token with that unit. donner/css/parser/details/Tokenizer.cc:482-485 donner/svg/parser/LengthPercentageParser.cc:7-15; donner/svg/parser/AngleParser.cc:6-20 CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json); Tokenizer.Number - -
feat:css-syntax-3/token-ident conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-ident-like-token A name not followed by ( is an ident token; names may start with – or a single - followed by a name-start code point. donner/css/parser/details/Tokenizer.cc:98-119, :202-243, :495-530 property keyword matching throughout donner/svg/properties/PropertyRegistry.cc Tokenizer.IdentLikeToken - -
feat:css-syntax-3/ident-escapes conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-name Escapes are valid anywhere in a name and contribute the escaped code point. donner/css/parser/details/Tokenizer.cc:219-240 same Tokenizer.Escapes; CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - -
feat:css-syntax-3/ident-non-ascii-code-points divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#non-ascii-ident-code-point Only the listed non-ASCII ranges are ident code points (for example U+00B7, U+00C0 to U+00D6, U+200C, U+200D, U+10000 and up); other non-ASCII code points such as U+00A0 or U+2028 are delims. donner/css/parser/details/Tokenizer.cc:35-41 accepts every byte at or above 0x80 as a name-start code point same none low S The vendored css-parsing-tests (copy vendored in 2021) predate this restriction, so the passing harness does not cover it. New finding.
feat:css-syntax-3/token-function conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-ident-like-token A name followed by ( is a function token. donner/css/parser/details/Tokenizer.cc:522-525 donner/css/parser/details/ComponentValueParser.h:196-226 Tokenizer.IdentLikeToken - -
feat:css-syntax-3/token-url conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-url-token url( followed by an unquoted value up to ) is a url token; surrounding whitespace is trimmed and escapes are decoded. EOF returns the token with a parse error. donner/css/parser/details/Tokenizer.cc:503-521, :533-584 donner/svg/properties/PropertyRegistry.cc:931-936, :1354-1356, :1766-1770 Tokenizer.Url - -
feat:css-syntax-3/token-url-quoted-is-function conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-ident-like-token url( followed by optional whitespace and a quote is tokenized as a function token containing a string. donner/css/parser/details/Tokenizer.cc:507-518 donner/svg/properties/PropertyRegistry.cc:938-958 and donner/css/parser/StylesheetParser.cc:558-573 Tokenizer.Url; CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - - Not every property consumer accepts the function form; see feat:css-values-4/url-quoted.
feat:css-syntax-3/token-bad-url conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-remnants-of-bad-url A quote, (, non-printable code point or interior whitespace inside an unquoted url is a parse error producing bad-url, consuming through the closing ). donner/css/parser/details/Tokenizer.cc:546-566, :588-610 donner/css/Token.cc:23-32 Tokenizer.Url (donner/css/parser/tests/Tokenizer_tests.cc:419-435) - -
feat:css-syntax-3/url-invalid-escape divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-url-token Inside an unquoted url a backslash that does not start a valid escape (backslash then newline) is a parse error producing bad-url. donner/css/parser/details/Tokenizer.cc:567-577: the backslash falls through to the anything-else branch and is appended same none low S Observable only when the newline is followed by optional whitespace and ), for example url(a<LF>): Donner yields url token a\ where the spec yields bad-url. With other trailing content the whitespace rule already produces bad-url.
feat:css-syntax-3/token-at-keyword conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token @ followed by an identifier is an at-keyword token; otherwise @ is a delim. donner/css/parser/details/Tokenizer.cc:326-336 donner/css/parser/RuleParser.cc:135-145 Tokenizer.AtKeyword - -
feat:css-syntax-3/token-cdo conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token The four characters form a CDC token, checked after the number test and before the identifier test. donner/css/parser/details/Tokenizer.cc:303-313 donner/css/parser/RuleParser.cc:121-134 Tokenizer.CDCAndCDO - -
feat:css-syntax-3/token-colon conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token The colon character produces its own token. donner/css/parser/details/Tokenizer.cc:357 donner/css/parser/details/Subparsers.h:109-127 and donner/css/parser/DeclarationListParser.cc:162 Tokenizer.CharTokens - -
feat:css-syntax-3/token-semicolon conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token The semicolon character produces its own token. donner/css/parser/details/Tokenizer.cc:358 donner/css/parser/details/Subparsers.h:109-127 and donner/css/parser/DeclarationListParser.cc:162 Tokenizer.CharTokens - -
feat:css-syntax-3/token-comma conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token The comma character produces its own token. donner/css/parser/details/Tokenizer.cc:356 donner/css/parser/StylesheetParser.cc:315-328 (src lists) and selector lists Tokenizer.CharTokens - -
feat:css-syntax-3/token-brackets conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-token ( ) [ ] { } each produce their own token. donner/css/parser/details/Tokenizer.cc:350-355 donner/css/parser/details/ComponentValueParser.h:88-98, :164-193 Tokenizer.CharTokens - -
feat:css-syntax-3/token-unicode-range missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-unicode-range-token A unicode-range token is produced only while consuming the value of a unicode-range descriptor (U+ followed by hex digits, ? wildcards or a range). none: grep -rn 'unicode-range' donner/css donner/svg finds no implementation none (donner/css/parser/StylesheetParser.cc:457-479 ignores the descriptor) none low S Vendored urange.json is not wired into the harness.
feat:css-syntax-3/token-eof conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#typedef-eof-token End of input is represented by an EOF token. donner/css/parser/details/Tokenizer.cc:262-264, :373-375 donner/css/parser/RuleParser.cc:118, :179-181 Tokenizer.Empty - -
feat:css-syntax-3/escape-code-point conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-escaped-code-point An escape is 1 to 6 hex digits or any single non-newline code point; zero, surrogate and out-of-range values give U+FFFD. donner/css/parser/details/Tokenizer.cc:158-197 donner/css/parser/details/Tokenizer.cc:233, :442, :570 Tokenizer.StringEscapedCodepoint; Tokenizer.Escapes; CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - -
feat:css-syntax-3/escape-trailing-whitespace divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-escaped-code-point After the hex digits of an escape, exactly one whitespace code point (CRLF counting as one) is consumed. donner/css/parser/details/Tokenizer.cc:173-176 loops and consumes every following whitespace character same Tokenizer.StringEscapedCodepoint (donner/css/parser/tests/Tokenizer_tests.cc:158-160) asserts the divergent result for a CR followed by a space low S Example: a string holding \41 followed by two spaces and B yields AB instead of A, space, B; the selector .\31 followed by two spaces and x loses its descendant combinator.
feat:css-syntax-3/escape-at-eof divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#starts-with-a-valid-escape A backslash followed by EOF is a valid escape (only a following newline makes it invalid); it produces U+FFFD inside an ident-like token. donner/css/parser/details/Tokenizer.cc:338-348 and :98-119 require a following character, so a lone trailing backslash becomes a delim same Tokenizer.Escapes (donner/css/parser/tests/Tokenizer_tests.cc:371) asserts the delim result low S Inside a name, string or url the EOF escape is handled correctly (donner/css/parser/details/Tokenizer.cc:91-94, :159-161). New finding.
feat:css-syntax-3/would-start-identifier conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#would-start-an-identifier Three-code-point lookahead decides whether an identifier starts: -, name-start code point, or a valid escape. donner/css/parser/details/Tokenizer.cc:98-119 donner/css/parser/details/Tokenizer.cc:283, :308, :329, :482 Tokenizer.IdentLikeToken; Tokenizer.Hash - - EOF edge case recorded under escape-at-eof.
feat:css-syntax-3/would-start-number conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#starts-with-a-number Three-code-point lookahead decides whether a number starts. donner/css/parser/details/Tokenizer.cc:123-152 donner/css/parser/details/Tokenizer.cc:296, :304, :360 Tokenizer.NumberSigns - -
feat:css-syntax-3/consume-name conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-name Consume ident code points and escapes until something else is seen. donner/css/parser/details/Tokenizer.cc:202-243 donner/css/parser/details/Tokenizer.cc:287, :330, :483, :496 Tokenizer.IdentLikeToken; Tokenizer.Escapes - -

CSS Syntax 3: parser entry points

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/parse-stylesheet conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-stylesheet Parse a stylesheet: decode if needed, consume the stylesheet contents and return the rules. donner/css/parser/RuleParser.cc:218-222 donner/css/parser/StylesheetParser.cc:739-765 CssParsingTests.Stylesheet; RuleParser.ParseStylesheet; StylesheetParser.WithRules - - Tested against the css-parsing-tests copy vendored in 2021.
feat:css-syntax-3/parse-stylesheet-contents conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-stylesheet-contents Parse a stylesheet's contents from a token stream, discarding top-level CDO and CDC. donner/css/parser/RuleParser.cc:105-169 with the TopLevel flag donner/css/parser/StylesheetParser.cc:747-761 CssParsingTests.Stylesheet - -
feat:css-syntax-3/parse-block-contents divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-block-contents Parse a block's contents into an ordered mix of declaration lists, at-rules and nested qualified rules. donner/css/parser/DeclarationListParser.cc:268-305 (ParseRuleDeclarations) returns declarations only donner/css/parser/StylesheetParser.cc:491-493 CssParsingTests.DeclarationList (older declaration-list algorithm) medium M See consume-block-contents.
feat:css-syntax-3/parse-rule conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-rule Parse exactly one rule; leading and trailing whitespace allowed, anything else is a syntax error. donner/css/parser/RuleParser.cc:28-80 API only (RuleParser::ParseRule) CssParsingTests.OneRule; RuleParser.ParseRule; RuleParser.ParseRuleAtRule - -
feat:css-syntax-3/parse-declaration conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-declaration Parse one declaration from a token stream; failure is a syntax error. donner/css/parser/details/Subparsers.h:102-208 API and test harness CssParsingTests.OneDeclaration - -
feat:css-syntax-3/parse-component-value conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-component-value Parse exactly one component value, with surrounding whitespace allowed. donner/css/parser/details/ComponentValueParser.h:109-128 test harness (donner/css/parser/tests/css_parsing_tests.cc:233-253) CssParsingTests.ComponentValue - -
feat:css-syntax-3/parse-list-of-component-values conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-list-of-component-values Parse a list of component values until EOF. donner/css/parser/details/ComponentValueParser.h:132-161; donner/css/parser/ValueParser.cc:8-12 donner/svg/properties/PropertyParsing.cc:68-78 (presentation attribute values) CssParsingTests.ComponentValueList; ValueParser.Basic - -
feat:css-syntax-3/parse-comma-separated-list conformant-untested https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-comma-separated-list-of-component-values Split a token stream into comma-separated lists of component values. no generic entry point; callers split on comma tokens themselves, for example donner/css/parser/StylesheetParser.cc:315-328 and donner/css/parser/SelectorParser.cc same none for a generic entry point (StylesheetParser.FontFaceMultipleSourcesAndHints covers the src case) low S Equivalent behavior at each call site; unverified for every caller.
feat:css-syntax-3/parse-grammar not-applicable https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#parse-grammar Parse something according to a CSS grammar, and its comma-list variant: generic hooks for other specifications. none none none - - Donner has hand-written per-property parsers instead of a grammar engine; the observable requirement is carried by each property row in other scopes.

CSS Syntax 3: parser algorithms

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/consume-stylesheet-contents conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-stylesheet-contents At top level skip whitespace, CDO and CDC; an at-keyword starts an at-rule; anything else starts a qualified rule. donner/css/parser/RuleParser.cc:105-169 donner/css/parser/StylesheetParser.cc:747-761 CssParsingTests.Stylesheet; CssParsingTests.RuleList - -
feat:css-syntax-3/consume-at-rule partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-at-rule Collect the prelude until ; or a {} block; EOF ends the rule. In nested context a } ends the rule without being consumed. donner/css/parser/details/ComponentValueParser.h:229-259 donner/css/parser/StylesheetParser.cc:720-735 CssParsingTests.RuleList; RuleParser.ParseRuleAtRule; DeclarationListParser.AtRule low S The top-level form is conformant. The nested form is not implemented: inside a rule block an at-rule is skipped through the next semicolon (donner/css/parser/DeclarationListParser.cc:292-297 and :104-132), which also swallows the declaration that follows a nested at-rule block.
feat:css-syntax-3/consume-qualified-rule partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-qualified-rule Collect the prelude until a {} block; EOF returns nothing. A prelude that looks like a custom property (–name:) makes the rule invalid, and nested rules stop at an unmatched } or the stop token. donner/css/parser/RuleParser.cc:171-200 donner/css/parser/StylesheetParser.cc:481-503 CssParsingTests.OneRule; CssParsingTests.RuleList; RuleParser.ParseRule low S Top-level collection and EOF handling are conformant. Missing: the custom-property-shaped prelude check and the nested and stop-token variants. An invalid selector still drops such a rule, so the visible effect is limited.
feat:css-syntax-3/consume-block conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-block Consume a {} block and hand its contents to the block-contents algorithm. donner/css/parser/details/ComponentValueParser.h:164-193 stores the block as a simple block donner/css/parser/DeclarationListParser.cc:268-305 CssParsingTests.RuleList - -
feat:css-syntax-3/consume-block-contents divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-block-contents Inside a block, try each item as a declaration; if that fails, rewind and parse it as a nested qualified rule ending at its {} block or at a semicolon. Nested at-rules are consumed as rules. Later declarations still apply. donner/css/parser/DeclarationListParser.cc:268-305 and :86-134 implement the older declaration-list algorithm: a failed declaration discards everything through the next semicolon donner/css/parser/StylesheetParser.cc:491-493 DeclarationListParser.InvalidTokens encodes the older recovery; none for the new algorithm medium M Example: a { b { fill: red } stroke: blue; } loses stroke: blue, because the nested rule and the following declaration are discarded together. The divergence is from the css-syntax-3 Candidate Recommendation Draft of 1 October 2026 (the dated URL of this row), whose block-contents algorithm retries a failed declaration as a nested qualified rule; under the declaration-list algorithm of the 2021 Candidate Recommendation text Donner's recovery was conformant.
feat:css-syntax-3/consume-declaration conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-declaration A declaration is an ident, optional whitespace, a colon, then component values up to the semicolon; leading and trailing whitespace is trimmed from the value. donner/css/parser/details/Subparsers.h:102-208; donner/css/parser/DeclarationListParser.cc:86-103 donner/svg/properties/PropertyRegistry.cc:3434-3467 DeclarationListParser.Simple; CssParsingTests.DeclarationList; CssParsingTests.OneDeclaration - -
feat:css-syntax-3/declaration-important conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-declaration If the last two non-whitespace values are ! and the identifier important (case-insensitive), remove them and set the important flag; whitespace between them is allowed. donner/css/parser/details/Subparsers.h:131-200 donner/svg/properties/PropertyParsing.cc:45-46 raises specificity DeclarationListParser.Important; resvg structure/style/important.svg (enabled) - -
feat:css-syntax-3/declaration-brace-block-restriction missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-declaration For a non-custom property, a top-level {} block is allowed only as the entire value; otherwise the declaration is invalid. none: donner/css/parser/details/Subparsers.h:141-189 appends any component value property grammars reject the block later, so the declaration is still dropped none low S Same visible outcome for every supported property; matters only for the rule-versus-declaration disambiguation.
feat:css-syntax-3/declaration-custom-property-original-text missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-declaration For a custom property, record the original source text of the value. none none (donner/svg/properties/PropertyRegistry.cc:3455-3464 drops –* names as unknown properties) none low S Depends on custom property support; see feat:css-variables-1/custom-property-declaration.
feat:css-syntax-3/consume-bad-declaration-remnants partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-the-remnants-of-a-bad-declaration After a failed declaration, discard component values through the next semicolon; in nested context stop before an unmatched }. donner/css/parser/DeclarationListParser.cc:104-132 and the ParseUntilSemicolonOrEOF destructor at :57-61 same DeclarationListParser.InvalidTokens low S Semicolon recovery is conformant; the nested } stop does not apply because rule blocks are pre-parsed as simple blocks (equivalent result).
feat:css-syntax-3/consume-list-of-component-values conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-list-of-components Collect component values until EOF or a stop token. donner/css/parser/details/ComponentValueParser.h:132-161; donner/css/parser/DeclarationListParser.cc:49-84 donner/css/parser/details/Subparsers.h:141-189 CssParsingTests.ComponentValueList - -
feat:css-syntax-3/consume-component-value conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-component-value A {, [ or ( starts a simple block; a function token starts a function; anything else is a single token. donner/css/parser/details/ComponentValueParser.h:109-128 same CssParsingTests.ComponentValue - - Implementation limits: nesting deeper than 64 levels returns early (donner/css/parser/details/ComponentValueParser.h:61, :175-180) and a 16K per-construct, 64K aggregate value budget rejects the sheet.
feat:css-syntax-3/consume-simple-block conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-simple-block Consume values until the mirror closing token or EOF. donner/css/parser/details/ComponentValueParser.h:164-193 same CssParsingTests.ComponentValue; CssParsingTests.ComponentValueList - -
feat:css-syntax-3/consume-function conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-function Consume values until ) or EOF. donner/css/parser/details/ComponentValueParser.h:196-226 same CssParsingTests.ComponentValue - -
feat:css-syntax-3/consume-unicode-range-value missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-unicode-range-value Re-tokenize the source text of a unicode-range descriptor with unicode-range tokens enabled. none none none low S See token-unicode-range.

CSS Syntax 3: error recovery and rule definitions

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/recover-unclosed-blocks-eof conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#error-handling At EOF every open block, function, string and url is closed implicitly and the construct is kept. donner/css/parser/details/ComponentValueParser.h:191-192, :224-225, :257-258; donner/css/parser/details/Tokenizer.cc:454-456, :580-583 donner/css/parser/StylesheetParser.cc:481-503 StylesheetParser.SelectorRuleSourceRangeUsesStylesheetEndForUnclosedRule; StylesheetParser.ImportAtEofWithoutSemicolonIsRetained; CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - -
feat:css-syntax-3/recover-eof-in-qualified-rule-prelude conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-qualified-rule EOF before the {} block of a qualified rule is a parse error and the rule is dropped. donner/css/parser/RuleParser.cc:179-181 donner/css/parser/RuleParser.cc:149-154 CssParsingTests.RuleList - -
feat:css-syntax-3/recover-invalid-declaration conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#error-handling A malformed declaration is dropped and parsing resumes after the next semicolon. donner/css/parser/DeclarationListParser.cc:104-132 donner/css/parser/DeclarationListParser.cc:213-217 DeclarationListParser.InvalidTokens; CssParsingTests.DeclarationList - -
feat:css-syntax-3/recover-unknown-property-or-value conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#style-rules A declaration with an unknown property or a value that fails the property grammar is ignored; the rest of the rule applies. donner/svg/properties/PropertyRegistry.cc:3455-3464 (unknown property), donner/svg/properties/PropertyParsing.h (Parse helper leaves the property untouched on error) donner/svg/components/style/StyleSystem.cc:556 PropertyRegistry.InvalidClipDeclarationsPreserveTheEarlierValue; donner_svg2_corpus geometry/css-length-values/rect-stylesheet-unitless-invalid - - Property names are matched case-sensitively; see declaration-name-case-insensitive.
feat:css-syntax-3/declaration-name-case-insensitive divergent https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-declaration Property names are matched ASCII case-insensitively when validating a declaration. donner/svg/properties/PropertyRegistry.cc:3436-3446 looks the name up verbatim in a compile-time map built with std::hash and std::equal_to (donner/base/CompileTimeMap.h:272-275) same none low S FILL: red in a stylesheet or style attribute is dropped as an unknown property. @font-face descriptors are compared case-insensitively (donner/css/parser/StylesheetParser.cc:436-470).
feat:css-syntax-3/recover-unknown-at-rule conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#at-rules An unrecognized at-rule is ignored as a whole, including its block. donner/css/parser/StylesheetParser.cc:720-735 acts only on import and font-face same StylesheetParser.ImportMayFollowLayerStatementsUnknownAndInvalidRules; CssParsingTests.Stylesheet - - Known-but-unsupported conditional rules are also dropped; see the Conditional rows.
feat:css-syntax-3/recover-invalid-selector conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#style-rules A style rule whose prelude is not a valid selector list is dropped entirely. donner/css/parser/StylesheetParser.cc:485-489 donner/css/parser/StylesheetParser.cc:749-754 StylesheetParser.InvalidSelectorWarnsAndSkipsRule; StylesheetParser.ImportMayFollowLayerStatementsUnknownAndInvalidRules - - Whether every unsupported selector is treated as invalid belongs to selectors_cascade.md.
feat:css-syntax-3/recover-stray-close-tokens conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-qualified-rule At top level an unmatched ), ] or } is a parse error but is kept as an ordinary prelude token. donner/css/parser/details/ComponentValueParser.h:125-127 donner/css/parser/RuleParser.cc:188-196 CssParsingTests.ComponentValueList (donner/css/parser/tests/css_parsing_tests.cc, vendored css-parsing-tests component_value_list.json) - -
feat:css-syntax-3/block-contents-productions partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#block-contents The productions declaration-list, qualified-rule-list, at-rule-list, declaration-rule-list and rule-list define what each block may contain. donner/css/parser/DeclarationListParser.cc:142-232 (declaration list with at-rules), donner/css/parser/RuleParser.cc:105-169 (rule list) donner/css/parser/StylesheetParser.cc:505-517 (@font-face uses a declaration list) DeclarationListParser.AtRule; DeclarationListParser.OnlyDeclarations; CssParsingTests.RuleList low M declaration-list and rule-list exist; a mixed declaration-rule-list (needed for nesting and for conditional group rules) does not.
feat:css-syntax-3/any-value-declaration-value missing https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#any-value declaration-value and any-value match arbitrary balanced token sequences without bad tokens or unmatched closers. none: no consumer needs them because var() and @supports are absent none none low S Prerequisite for custom properties and @supports.
feat:css-syntax-3/style-rule-definition conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#style-rules A qualified rule at top level is a style rule: prelude parsed as a selector list, block as declarations. donner/css/parser/StylesheetParser.cc:481-503 donner/svg/components/style/StyleSystem.cc:556 StylesheetParser.WithRules; resvg structure/style/type-selector.svg and rule-specificity.svg - -
feat:css-syntax-3/charset-rule-not-a-rule conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#charset-rule @charset is only a byte-level encoding declaration; an @charset at-rule seen by the parser is invalid and ignored. donner/css/parser/RuleParser.cc:141-145 and :45-50 turn it into an invalid rule same RuleParser.Charset - -

CSS Syntax 3: An+B microsyntax

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/anb-odd-even conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax odd means 2n+1 and even means 2n; both are case-insensitive. donner/css/parser/AnbMicrosyntaxParser.cc:152-157, :379-383 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.Simple - -
feat:css-syntax-3/anb-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax A lone integer sets A to 0 and B to its value. donner/css/parser/AnbMicrosyntaxParser.cc:158-162 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.ExamplesFromSpec (+6) - -
feat:css-syntax-3/anb-n-dimension conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax An integer dimension with unit n sets A; B is 0. donner/css/parser/AnbMicrosyntaxParser.cc:164-168, :345-353 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.ExamplesFromSpec (2n) - -
feat:css-syntax-3/anb-plus-n conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n or +n means A = 1. donner/css/parser/AnbMicrosyntaxParser.cc:250-254, :385-386 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.ExamplesFromSpec (n); AnbMicrosyntaxParser.SpecialTokens - -
feat:css-syntax-3/anb-minus-n conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax -n means A = -1. donner/css/parser/AnbMicrosyntaxParser.cc:191-194, :387-388 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (-n) - -
feat:css-syntax-3/anb-ndashdigit-dimension conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax A dimension whose unit is n-<digits> gives A and a negative B. donner/css/parser/AnbMicrosyntaxParser.cc:223-226, :354-367 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.DimensionTokens (123n-1); AnbMicrosyntaxParser.DigitParsing - -
feat:css-syntax-3/anb-ndashdigit-ident partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax An ident n-<digits>, optionally preceded by +, gives A = 1 and a negative B; matched ASCII case-insensitively. donner/css/parser/AnbMicrosyntaxParser.cc:247-249, :397-404 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (n-2, +n-2) low S The prefix test at donner/css/parser/AnbMicrosyntaxParser.cc:397 uses a case-sensitive StartsWith (default comparison in donner/base/StringUtils.h:201), so N-2 is rejected. New finding; no upper-case test.
feat:css-syntax-3/anb-dashndashdigit-ident partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax An ident -n-<digits> gives A = -1 and a negative B; matched ASCII case-insensitively. donner/css/parser/AnbMicrosyntaxParser.cc:227-230, :408-415 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (-n-2) low S Same case-sensitive prefix test at donner/css/parser/AnbMicrosyntaxParser.cc:408; -N-2 is rejected.
feat:css-syntax-3/anb-n-dimension-signed-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n-dimension followed by a signed integer. donner/css/parser/AnbMicrosyntaxParser.cc:169-172 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.DimensionTokens (123n -2, 123n +2) - -
feat:css-syntax-3/anb-plus-n-signed-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n or +n followed by a signed integer. donner/css/parser/AnbMicrosyntaxParser.cc:256-260 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.ExamplesFromSpec (n+0) - -
feat:css-syntax-3/anb-minus-n-signed-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax -n followed by a signed integer. donner/css/parser/AnbMicrosyntaxParser.cc:196-200 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (-n+2) - -
feat:css-syntax-3/anb-ndash-dimension-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax A dimension with unit n- followed by a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:232-236, :368-373 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.DimensionTokens (123n- 1) - -
feat:css-syntax-3/anb-plus-ndash-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n- or +n- followed by a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:278-282, :391-392 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (n- 2, +n- 2) - -
feat:css-syntax-3/anb-minus-ndash-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax -n- followed by a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:237-241, :389-390 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (-n- 2) - -
feat:css-syntax-3/anb-n-dimension-sign-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n-dimension, a + or - delim, then a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:173-189 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.DimensionTokens (123n - 3, 123n + 3); ExamplesFromSpec (3n + 1) - -
feat:css-syntax-3/anb-plus-n-sign-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax n or +n, a + or - delim, then a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:261-276 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (n + 123, +n - 123) - -
feat:css-syntax-3/anb-minus-n-sign-signless-integer conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax -n, a + or - delim, then a signless integer. donner/css/parser/AnbMicrosyntaxParser.cc:201-219 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.SpecialTokens (-n + 3, -n - 3) - -
feat:css-syntax-3/anb-whitespace-rules conformant https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax No whitespace is allowed between a leading + and n; whitespace is allowed between other tokens. donner/css/parser/AnbMicrosyntaxParser.cc:135-148, :306-309 donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.ExamplesFromSpec (+ 2n and 3 n rejected) - -
feat:css-syntax-3/anb-integer-range conformant-untested https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax A and B are integers; the spec sets no range, so clamping or rejection of huge values is implementation-defined. donner/css/parser/AnbMicrosyntaxParser.cc:467-505 rejects values outside int range donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes AnbMicrosyntaxParser.RejectsIntegersOutsideRepresentableRange asserts Donner's choice low S Not a conformance issue; recorded because a rejected An+B drops the whole style rule.
feat:css-syntax-3/anb-serialization not-applicable https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax An+B values serialize in a canonical form for the CSSOM. none donner/css/parser/SelectorParser.cc:536 feeds :nth-child and related pseudo-classes none - - No CSSOM; selectors are never serialized back to text from parsed An+B values.
feat:css-syntax-3/anb-upstream-suite conformant-untested https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#anb-microsyntax The vendored An+B.json conformance file lists accepted and rejected inputs. third_party/css-parsing-tests/An+B.json is present not referenced by donner/css/parser/tests/css_parsing_tests.cc (grep for An+B finds nothing) none low S Test-infrastructure gap; wiring it would have caught the case-sensitivity defect.

CSS Syntax 3: serialization

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-syntax-3/serialization-round-trip partial https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#serialization Serialized CSS must re-parse to the same structures: identifiers and strings are escaped as needed, a backslash delim is followed by a newline, and a comment is inserted between token pairs that would otherwise merge. donner/css/Token.cc:34-87 and donner/css/ComponentValue.cc:46-107 emit raw token values donner/css/Declaration.cc:16-30, :55-95 (style attribute merging for editing) TokenToCssText.*, DeclarationRoundTrip.* (donner/css/tests/Declaration_tests.cc) cover simple values only low S No escaping: a string containing a quote or backslash, an identifier that needed escapes, or adjacent tokens such as ident ident parsed from a comment-separated source do not round-trip. Affects only the editing and merge APIs, not rendering. New finding.

CSS Values 4: length units

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-values-4/unit-cm conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#cm Absolute length: 1cm is 96/2.54 px; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:24 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:176 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-mm conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#mm Absolute length: 1mm is 1/10 cm; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:25 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:177 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-Q conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#Q Absolute length: 1Q is 1/40 cm; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:26 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:178 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-in conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#in Absolute length: 1in is 96 px; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:27 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:179 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-pt conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#pt Absolute length: 1pt is 1/72 in; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:29 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:181 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-pc conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#pc Absolute length: 1pc is 1/6 in; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:28 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:180 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-px conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#px Absolute length: 1px is the canonical unit; unit names are ASCII case-insensitive. donner/base/parser/LengthParser.cc:30 (table), :42-52 (case folding); token path donner/css/parser/details/Tokenizer.cc:482-485 donner/base/Length.h:182 LengthParser.LengthUnits, LengthParser.CaseInsensitive (donner/base/parser/tests/LengthParser_tests.cc); LengthTest.ToPixelsCoversAbsoluteUnits (donner/base/tests/Length_tests.cc) - -
feat:css-values-4/unit-em partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#em em equals the computed font-size of the element (the parent's when used in font-size itself). donner/base/parser/LengthParser.cc:31 donner/base/Length.h:184; metrics from donner/svg/components/shape/ShapeSystem.cc:88-93 LengthParser.LengthUnits; LengthTest.ToPixelsCoversFontRelativeUnits medium M Resolution is correct where per-element metrics are built (donner/svg/components/shape/ShapeSystem.cc:63-103), but many consumers call toPixels with a default-constructed FontMetrics (16px em and rem, no viewport): grep -rn 'FontMetrics()' donner/svg (non-test) finds 50 call sites, for example donner/svg/renderer/RendererDriver.cc (12) and donner/svg/components/layout/LayoutSystem.cc (8).
feat:css-values-4/unit-rem partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rem rem equals the computed font-size of the root element. donner/base/parser/LengthParser.cc:34 donner/base/Length.h:187; root size from donner/svg/components/shape/ShapeSystem.cc:75-84 LengthParser.LengthUnits; LengthTest.ToPixelsCoversFontRelativeUnits medium M Same default-metrics problem as em: consumers that pass FontMetrics() resolve rem against 16px regardless of the root font-size.
feat:css-values-4/unit-ex partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ex ex equals the x-height of the first available font; 0.5em is the fallback only when the metric cannot be determined. donner/base/parser/LengthParser.cc:32 donner/base/Length.h:185; donner/base/RelativeLengthMetrics.h:18, :27 hard-codes 0.5em LengthParser.LengthUnits; LengthTest.ToPixelsCoversFontRelativeUnits low S grep -rn 'exUnitInEm' donner (non-test) shows no writer other than the default, so the font x-height is never measured.
feat:css-values-4/unit-ch partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ch ch equals the advance of the 0 glyph in the element's font; 0.5em is the fallback. donner/base/parser/LengthParser.cc:33 donner/base/Length.h:186; measured at donner/svg/components/shape/ShapeSystem.cc:94-101 when the text engine is compiled in LengthParser.LengthUnits; LengthTest.ToPixelsCoversFontRelativeUnits low S Measured only on the shape path; consumers using default FontMetrics get 0.5em of 16px.
feat:css-values-4/unit-rex missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rex rex equals the x-height of the root element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-cap missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#cap cap equals the cap height of the element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-rcap missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rcap rcap equals the cap height of the root element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-rch missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rch rch equals the advance of 0 in the root element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-ic missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ic ic equals the advance of the CJK water ideograph in the element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-ric missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ric ric equals the advance of the CJK water ideograph in the root element's font. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low S Failing closed is the correct handling of an unsupported unit.
feat:css-values-4/unit-lh missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lh lh equals the computed line-height of the element. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low M Failing closed is the correct handling of an unsupported unit. Needs a line-height property, which Donner lacks.
feat:css-values-4/unit-rlh missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rlh rlh equals the computed line-height of the root element. none: donner/base/parser/LengthParser.cc:22-39 has no entry, so donner/css/parser/details/Tokenizer.cc:484-485 records no unit donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension, invalidating the declaration LengthPercentageParser.InvalidUnit (generic unknown-unit rejection) low M Failing closed is the correct handling of an unsupported unit. Needs a line-height property, which Donner lacks.
feat:css-values-4/unit-vw partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vw vw is 1% of the viewport width of the initial containing block (large viewport size). donner/base/parser/LengthParser.cc:35 donner/base/Length.h:188-191 LengthParser.LengthUnits; LengthTest.ToPixelsCoversViewportUnitsWithExplicitViewport, LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport low S The viewport is the canvas size when one is set (donner/svg/components/shape/ShapeSystem.cc:68-72), else the nearest viewBox passed by the caller (donner/base/Length.h:188-205). The spec ties these units to the initial containing block, which for a standalone SVG is the outermost svg viewport; using the canvas size matches that only when the canvas equals the document size.
feat:css-values-4/unit-vh partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vh vh is 1% of the viewport height of the initial containing block (large viewport size). donner/base/parser/LengthParser.cc:36 donner/base/Length.h:192-195 LengthParser.LengthUnits; LengthTest.ToPixelsCoversViewportUnitsWithExplicitViewport, LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport low S Same viewport source and default-metrics caveat as vw.
feat:css-values-4/unit-vmin partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vmin vmin is the smaller of vw and vh of the initial containing block (large viewport size). donner/base/parser/LengthParser.cc:37 donner/base/Length.h:196-200 LengthParser.LengthUnits; LengthTest.ToPixelsCoversViewportUnitsWithExplicitViewport, LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport low S Same viewport source and default-metrics caveat as vw.
feat:css-values-4/unit-vmax partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vmax vmax is the larger of vw and vh of the initial containing block (large viewport size). donner/base/parser/LengthParser.cc:38 donner/base/Length.h:201-205 LengthParser.LengthUnits; LengthTest.ToPixelsCoversViewportUnitsWithExplicitViewport, LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport low S Same viewport source and default-metrics caveat as vw.
feat:css-values-4/unit-vi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vi vi is 1% of the viewport size along the root element's inline axis. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Needs the root writing-mode to pick an axis.
feat:css-values-4/unit-vb missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#vb vb is 1% of the viewport size along the root element's block axis. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Needs the root writing-mode to pick an axis.
feat:css-values-4/unit-svw missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svw svw is the small-viewport variant of vw; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vw resolution in a renderer with no retractable UI.
feat:css-values-4/unit-svh missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svh svh is the small-viewport variant of vh; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vh resolution in a renderer with no retractable UI.
feat:css-values-4/unit-svi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svi svi is the small-viewport variant of vi; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-svb missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svb svb is the small-viewport variant of vb; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-svmin missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svmin svmin is the small-viewport variant of vmin; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmin resolution in a renderer with no retractable UI.
feat:css-values-4/unit-svmax missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#svmax svmax is the small-viewport variant of vmax; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmax resolution in a renderer with no retractable UI.
feat:css-values-4/unit-lvw missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvw lvw is the large-viewport variant of vw; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vw resolution in a renderer with no retractable UI.
feat:css-values-4/unit-lvh missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvh lvh is the large-viewport variant of vh; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vh resolution in a renderer with no retractable UI.
feat:css-values-4/unit-lvi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvi lvi is the large-viewport variant of vi; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-lvb missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvb lvb is the large-viewport variant of vb; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-lvmin missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvmin lvmin is the large-viewport variant of vmin; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmin resolution in a renderer with no retractable UI.
feat:css-values-4/unit-lvmax missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lvmax lvmax is the large-viewport variant of vmax; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmax resolution in a renderer with no retractable UI.
feat:css-values-4/unit-dvw missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvw dvw is the dynamic-viewport variant of vw; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vw resolution in a renderer with no retractable UI.
feat:css-values-4/unit-dvh missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvh dvh is the dynamic-viewport variant of vh; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vh resolution in a renderer with no retractable UI.
feat:css-values-4/unit-dvi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvi dvi is the dynamic-viewport variant of vi; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-dvb missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvb dvb is the dynamic-viewport variant of vb; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Depends on vi and vb.
feat:css-values-4/unit-dvmin missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvmin dvmin is the dynamic-viewport variant of vmin; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmin resolution in a renderer with no retractable UI.
feat:css-values-4/unit-dvmax missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dvmax dvmax is the dynamic-viewport variant of vmax; without dynamic browser chrome all three viewport sizes are equal. none: donner/base/parser/LengthParser.cc:22-39 has no entry donner/svg/parser/LengthPercentageParser.cc:7-12 rejects the dimension none low S Can alias the existing vmax resolution in a renderer with no retractable UI.

CSS Values 4: other units

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-values-4/unit-deg conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#deg Angle unit: 360 per turn; case-insensitive. donner/svg/parser/AngleParser.cc:7-8 donner/svg/parser/CssTransformParser.cc (rotate and skew functions) and donner/svg/properties/PropertyRegistry.cc:1390-1402 (filter hue-rotate) AngleParser.ParseDegrees (donner/svg/parser/tests/AngleParser_tests.cc) - -
feat:css-values-4/unit-grad conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#grad Angle unit: 400 per turn; case-insensitive. donner/svg/parser/AngleParser.cc:9-10 donner/svg/parser/CssTransformParser.cc (rotate and skew functions) and donner/svg/properties/PropertyRegistry.cc:1390-1402 (filter hue-rotate) AngleParser.ParseGradians (donner/svg/parser/tests/AngleParser_tests.cc) - -
feat:css-values-4/unit-rad conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#rad Angle unit: 2 pi per turn; case-insensitive. donner/svg/parser/AngleParser.cc:11-12 donner/svg/parser/CssTransformParser.cc (rotate and skew functions) and donner/svg/properties/PropertyRegistry.cc:1390-1402 (filter hue-rotate) AngleParser.ParseRadians (donner/svg/parser/tests/AngleParser_tests.cc) - -
feat:css-values-4/unit-turn conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#turn Angle unit: 1 per turn; case-insensitive. donner/svg/parser/AngleParser.cc:13-14 donner/svg/parser/CssTransformParser.cc (rotate and skew functions) and donner/svg/properties/PropertyRegistry.cc:1390-1402 (filter hue-rotate) AngleParser.ParseTurns (donner/svg/parser/tests/AngleParser_tests.cc) - -
feat:css-values-4/unit-s not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#s Duration unit for the time type. none none none - - The CSS time type is consumed only by CSS Transitions and Animations, which SVG 2 does not require and Donner does not implement; SMIL clock values use their own grammar (donner/svg/parser/ClockValueParser.cc).
feat:css-values-4/unit-ms not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ms Duration unit for the time type. none none none - - The CSS time type is consumed only by CSS Transitions and Animations, which SVG 2 does not require and Donner does not implement; SMIL clock values use their own grammar (donner/svg/parser/ClockValueParser.cc).
feat:css-values-4/unit-Hz not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#Hz Frequency unit. none none none - - No visual property takes a frequency; the spec notes the type is unused in current CSS.
feat:css-values-4/unit-kHz not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#kHz Frequency unit. none none none - - No visual property takes a frequency; the spec notes the type is unused in current CSS.
feat:css-values-4/unit-dpi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dpi Resolution unit. none: grep -rnE 'dppx|dpcm|"dpi"' donner/css donner/svg donner/base finds nothing none none low S The only consumer in scope is the Media Queries resolution feature, which is missing with the rest of media queries.
feat:css-values-4/unit-dpcm missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dpcm Resolution unit. none: grep -rnE 'dppx|dpcm|"dpi"' donner/css donner/svg donner/base finds nothing none none low S The only consumer in scope is the Media Queries resolution feature, which is missing with the rest of media queries.
feat:css-values-4/unit-dppx missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dppx Resolution unit. none: grep -rnE 'dppx|dpcm|"dpi"' donner/css donner/svg donner/base finds nothing none none low S The only consumer in scope is the Media Queries resolution feature, which is missing with the rest of media queries.
feat:css-values-4/unit-x missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#x Resolution unit (alias of dppx). none: grep -rnE 'dppx|dpcm|"dpi"' donner/css donner/svg donner/base finds nothing none none low S The only consumer in scope is the Media Queries resolution feature, which is missing with the rest of media queries.

CSS Values 4: value types

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-values-4/value-definition-syntax not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#value-defs Notation for property grammars: component types, combinators, multipliers, whitespace and functional notation. none none none - - Notation, not behavior; each property grammar is audited with its property.
feat:css-values-4/combining-values not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#combining-values Interpolation, addition and accumulation procedures for each value type. none none none - - Consumed by animation; audited in animation.md, not here.
feat:css-values-4/css-wide-keyword-initial conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#common-keywords initial is accepted as the sole value of every property and resets it to its initial value. donner/svg/properties/PropertyParsing.cc:32-43 (declarations), :57-64 (presentation attributes) donner/svg/properties/Property.h:188-225 PropertyRegistry.BuiltinKeywords (donner/svg/properties/tests/PropertyRegistry_tests.cc) - -
feat:css-values-4/css-wide-keyword-inherit conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#common-keywords inherit is accepted as the sole value of every property. donner/svg/properties/PropertyParsing.cc:38-39, :60-61 donner/svg/properties/Property.h:188-225 PropertyRegistry.BuiltinKeywords; PropertyRegistry.FontShorthandCssWideKeywordsIncludeResetOnlyLonghands - -
feat:css-values-4/css-wide-keyword-unset conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#common-keywords unset acts as inherit for inherited properties and initial otherwise. donner/svg/properties/PropertyParsing.cc:40-41, :62-63 donner/svg/properties/Property.h:188-225 PropertyRegistry.BuiltinKeywords; PropertyRegistry.FontShorthandCssWideKeywordsIncludeResetOnlyLonghands - -
feat:css-values-4/css-wide-keyword-revert missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#common-keywords Other CSS-wide keywords defined by the cascade module (revert, revert-layer) are also valid on every property. none: donner/svg/properties/PropertyParsing.cc:32-43 recognizes only initial, inherit and unset the keyword reaches the property grammar and the declaration is dropped none low S -
feat:css-values-4/custom-ident conformant-untested https://www.w3.org/TR/2024/WD-css-values-4-20240312/#custom-idents An author-defined identifier is case-sensitive and must not be a CSS-wide keyword or default. donner/svg/properties/PropertyRegistry.cc:2168-2177 rejects inherit, initial, unset, revert, revert-layer and default as unquoted font family names donner/svg/properties/PropertyRegistry.cc:2180-2198 none found (grep for the diagnostic text and for revert in donner/svg/properties/tests finds nothing) low S Font family names are the only custom-ident consumer in scope.
feat:css-values-4/dashed-ident not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dashed-idents A dashed-ident is an identifier starting with two dashes, reserved for author-defined names. tokenized as an ordinary ident (donner/css/parser/details/Tokenizer.cc:104-109) none none - - No supported property takes a dashed-ident; custom property names are covered under CSS Variables.
feat:css-values-4/string conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#strings A string is a quoted sequence; either quote style; escapes as in CSS Syntax. donner/css/parser/details/Tokenizer.cc:414-457 donner/svg/properties/PropertyRegistry.cc:2200-2230 (font-family) and donner/css/parser/StylesheetParser.cc:551-557 (@import) Tokenizer.String; StylesheetParser.FontFaceSrcKeepsStringUrlAndIdentFormat - -
feat:css-values-4/url-unquoted conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#urls url() with an unquoted argument denotes a resource. donner/css/parser/details/Tokenizer.cc:533-584 donner/svg/properties/PropertyRegistry.cc:931-936 (paint), :1354-1356 (mask and markers), :1379 (clip-path), :1766-1770 (filter) PropertyRegistry.PaintUrlsResolveDecodedReferences; resvg painting and masking suites - -
feat:css-values-4/url-quoted partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#urls url() with a quoted string argument is equivalent to the unquoted form. donner/css/parser/details/Tokenizer.cc:507-518 produces a function token donner/svg/properties/PropertyRegistry.cc:938-958 (ParseUrlComponent, used by fill, stroke and clip-path) and :1774-1790 (filter) accept it; donner/svg/properties/PropertyRegistry.cc:1343-1361 (ParseReference, used by mask at :3145 and marker-start, marker-mid, marker-end, marker at :3208-3234) accepts only the url token PropertyRegistry.PaintUrlsResolveDecodedReferences (paint only); none for mask or markers medium S mask: url("#m") and marker-end: url('#a') are rejected as invalid, in declarations and presentation attributes alike. ParseReference also ignores trailing tokens.
feat:css-values-4/url-src-function missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-src src() is an alternative url notation whose argument may contain functions such as var(). none: grep -rn '"src"' donner/svg/properties finds no function handling none none low S Level 4 addition; no case in the vendored suites uses it.
feat:css-values-4/url-modifiers conformant-untested https://www.w3.org/TR/2024/WD-css-values-4-20240312/#url-modifiers url() may carry modifiers after the string; unknown modifiers make the value invalid. None are defined by this level. donner/svg/properties/PropertyRegistry.cc:950-957 returns no URL when anything follows the string same none low S
feat:css-values-4/url-fragment-only conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#local-urls A url whose value starts with # always refers to the current document, regardless of the stylesheet's base URL. donner/svg/graph/Reference.cc:33-50, :58-75 donner/svg/graph/Reference.cc:22-29 resolves by element id in the document resvg structure/style/external-CSS.svg and the painting suites (enabled) - -
feat:css-values-4/url-relative-resolution partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#relative-urls Relative URLs resolve against the stylesheet's URL, not the document's. donner/svg/components/resources/StylesheetImportLoader.cc:155 rebases @font-face sources of imported sheets; nested imports resolve against the importing sheet (:121-127, :157-159) same CssImport tests (donner/svg/renderer/tests/CssImport_tests.cc) low S Other url() values in imported sheets keep their raw text; unverified whether any consumer loads external resources from them.
feat:css-values-4/url-empty conformant-untested https://www.w3.org/TR/2024/WD-css-values-4-20240312/#url-empty An empty url is an invalid resource rather than a reference to the stylesheet or document. donner/css/parser/details/Tokenizer.cc:544-545 yields an empty url token donner/svg/graph/Reference.cc:33-37 (an empty href is not external and has no fragment) none low S Unverified beyond parsing.
feat:css-values-4/url-processing-model not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#url-processing Fetch algorithm hooks (request mode, credentials) for resources named by url(). none none none - - Fetch integration belongs to the resource-loading scope; Donner delegates loading to an embedder callback.
feat:css-values-4/integer partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#integers An integer is one or more digits with an optional sign and no fraction or exponent. donner/css/parser/details/Tokenizer.cc:473-479 records the integer flag donner/css/parser/AnbMicrosyntaxParser.cc:348, :423 use the flag; SVG integer attributes instead truncate a parsed real (donner/svg/parser/AttributeParser.cc:82-88, :1362-1367) Tokenizer.Number; AnbMicrosyntaxParser.DimensionTokens low S numOctaves="2.5" and the feConvolveMatrix order values are truncated instead of being rejected.
feat:css-values-4/number conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#numbers A real number with optional sign, fraction and exponent. donner/base/parser/NumberParser.cc:195-369 donner/svg/parser/LengthPercentageParser.cc:18-23; donner/svg/properties/PropertyParsing.cc:105-110 NumberParser.*; Tokenizer.Number - -
feat:css-values-4/percentage conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#percentages A number followed by %; what it is relative to is defined per property. donner/css/parser/details/Tokenizer.cc:486-488 donner/svg/parser/LengthPercentageParser.cc:16-17; donner/base/Length.h:167-175 LengthPercentageParser.ParsePercentage; LengthTest.ToPixelsCoversPercentExtents - -
feat:css-values-4/length-percentage conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#typedef-length-percentage length-percentage accepts either a length or a percentage resolved against a length. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/base/Length.h:162-209 LengthPercentageParser.* (donner/svg/parser/tests/LengthPercentageParser_tests.cc) - - Mixed calc() sums are missing with calc().
feat:css-values-4/angle-percentage not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#typedef-angle-percentage Mix of the dimension type and a percentage resolved against it. none none none - - No supported property uses this type.
feat:css-values-4/time-percentage not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#typedef-time-percentage Mix of the dimension type and a percentage resolved against it. none none none - - No supported property uses this type.
feat:css-values-4/frequency-percentage not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#typedef-frequency-percentage Mix of the dimension type and a percentage resolved against it. none none none - - No supported property uses this type.
feat:css-values-4/number-or-percentage-mixes conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#mixed-percentages Where a grammar allows number or percentage (alpha values), both forms denote the same range. donner/svg/properties/PropertyParsing.cc:101-117 donner/svg/properties/PropertyRegistry.cc opacity properties resvg painting/opacity/50percent.svg and painting/fill-opacity/50percent.svg (enabled) - -
feat:css-values-4/ratio missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#ratios A ratio is a positive number optionally followed by / and a second number. none: grep -rn 'aspect-ratio' donner/css donner/svg (non-test) finds nothing none none low S Only consumer in scope is the aspect-ratio media feature.
feat:css-values-4/dimension-unknown-unit conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#dimensions A dimension with an unrecognized unit is invalid for the property. donner/svg/parser/LengthPercentageParser.cc:7-12; donner/svg/parser/AngleParser.cc:15-19 same LengthPercentageParser.InvalidUnit; AngleParser.InvalidUnit - -
feat:css-values-4/unitless-zero-length conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lengths A length of zero may omit its unit; any other unitless number is not a length in CSS declarations. donner/svg/parser/LengthPercentageParser.cc:18-23 donner/svg/components/shape/RectComponent.cc:92 (CSS geometry on rect uses the strict mode) LengthPercentageParser.UnitlessZero, UnitlessZeroSpellings; donner_svg2_corpus geometry/css-length-values/rect-inline-unitless-zero - -
feat:css-values-4/unitless-nonzero-length-in-css divergent https://www.w3.org/TR/2024/WD-css-values-4-20240312/#lengths A non-zero unitless number is invalid where a property grammar says length (the SVG relaxation applies only to presentation attributes). donner/svg/properties/PropertyRegistry.cc:348-351 and :3446-3452 enable strict units only for filter, clip-path, text-decoration and text-decoration-thickness; every other registry property parses declarations with AllowUserUnits also donner/svg/components/layout/LayoutSystem.cc:123, donner/svg/components/shape/CircleComponent.cc:64 and EllipseComponent.cc:75; only RectComponent.cc:92 is strict donner_svg2_corpus geometry/css-length-values/rect-stylesheet-unitless-invalid and rect-inline-unitless-invalid cover rect x only low S font-size: 12, letter-spacing: 2 and circle { r: 5 } are accepted from a stylesheet. Properties whose grammar includes number (stroke-width, stroke-dasharray, stroke-dashoffset) are legitimately unitless. Rect geometry is already strict and tested.
feat:css-values-4/unitless-zero-angle conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#angles A bare 0 is not an angle except in legacy contexts that explicitly allow it. donner/svg/parser/AngleParser.cc:21-26 (AllowBareZero is opt-in per caller) donner/svg/parser/CssTransformParser.cc AngleParser.BareZero, AngleParser.BareNumber - -
feat:css-values-4/range-restrictions partial https://www.w3.org/TR/2024/WD-css-values-4-20240312/#numeric-ranges A value outside a property's stated range makes the declaration invalid at parse time (calc results are clamped instead). per property, for example donner/svg/properties/PropertyRegistry.cc:2041-2046 rejects a negative font-size donner/svg/properties/PropertyRegistry.cc:863-866 clamps a negative inline-size to 0 instead of rejecting it none specific to range rejection low S No central mechanism; each property decides. Per-property ranges are audited with the properties.
feat:css-values-4/computed-value-rounding not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#combine-integers When a calculation yields a non-integer where an integer is required, the computed value rounds to the nearest integer. none none none - - Only reachable through math functions, which are missing.
feat:css-values-4/position-one-value conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#position One-value position: a keyword or length-percentage for one axis, the other axis centered. donner/svg/properties/ClipPath.cc:97-106 donner/svg/properties/ClipPath.cc:181-200 (circle and ellipse at ...) PropertyRegistry.EllipseClipParsingAndInvalidDeclarationFallback; PropertyRegistry.InvalidClipDeclarationsPreserveTheEarlierValue - -
feat:css-values-4/position-two-value conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#position Two-value position: horizontal then vertical, with keywords allowed in either order but lengths only in x-then-y order. donner/svg/properties/ClipPath.cc:108-125 same PropertyRegistry.InvalidClipDeclarationsPreserveTheEarlierValue (circle(2px at left right) rejected) - -
feat:css-values-4/position-four-value conformant https://www.w3.org/TR/2024/WD-css-values-4-20240312/#position Four-value position: an edge keyword with an offset for each axis. donner/svg/properties/ClipPath.cc:127-160 same PropertyRegistry.EllipseClipParsingAndInvalidDeclarationFallback (at right 2px bottom 3px) - -
feat:css-values-4/position-three-value-rejected divergent https://www.w3.org/TR/2024/WD-css-values-4-20240312/#position The three-value form (one edge with an offset, the other edge without) is not part of position at this level. donner/svg/properties/ClipPath.cc:127-160 makes each offset optional, so at left 10px top is accepted same none low S New finding; harmless leniency.
feat:css-values-4/position-transform-origin conformant-untested https://www.w3.org/TR/2024/WD-css-values-4-20240312/#position Position-like keyword and length pairs outside basic shapes follow the same keyword-to-percentage mapping. donner/svg/properties/PropertyRegistry.cc:1248-1340 (transform-origin) donner/svg/components/layout/LayoutSystem.cc none verified here low S transform-origin has its own grammar in CSS Transforms; listed for completeness and audited with that property.
feat:css-values-4/color-and-image-types not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#defined-elsewhere color and image are defined by other modules. none none none - - Audited in the color and painting scopes.
feat:css-values-4/attr-function not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#changes-recent attr() is not defined by this level; the change log records it as deferred to Level 5. none: no attr handling in donner/css or donner/svg/properties none none - - -
feat:css-values-4/toggle-function not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#changes-recent toggle() is not defined by this level; deferred to Level 5. none none none - -
feat:css-values-4/list-valued-coordination not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#linked-properties Rules for coordinating several list-valued properties (as in layered backgrounds). none none none - - No supported property group is coordinated this way; mask is a single reference in Donner.
feat:css-values-4/quirky-length not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#deprecated-quirky-length Quirks-mode unitless lengths for a fixed list of HTML-era properties. none none none - - Applies only to HTML quirks mode.

CSS Values 4: mathematical expressions

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-values-4/math-calc missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-func calc() evaluates a sum or product expression wherever a numeric type is allowed. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none medium L Values Level 3, the level SVG 2 references, already requires calc(). Failing closed lets an earlier fallback declaration apply.
feat:css-values-4/math-calc-addition missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-syntax + and - require whitespace on both sides and operands of the same type. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-calc-multiplication missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-syntax * requires at least one side to be a number. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-calc-division missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-syntax / requires the right side to be a number; division by zero yields infinity or NaN handled by the IEEE rules. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-calc-parentheses missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-syntax Parentheses and nested calc() group sub-expressions. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-type-checking missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-type-checking Each expression has a resolved type; a mismatch with the expected type makes the value invalid. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-percentage-resolution missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-type-checking Percentages inside calc() resolve against the same basis as a bare percentage for that property. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-ieee-infinity-nan missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-ieee Infinities, NaN and signed zero follow IEEE-754 semantics, with NaN censored to zero at the top level. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-simplification missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-simplification Expressions are simplified to a canonical tree. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-computed-value missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-computed-value The computed value is the expression with units resolved as far as possible. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-range-clamping missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-range A top-level result outside the allowed range is clamped rather than invalid. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Part of calc().
feat:css-values-4/math-serialization not-applicable https://www.w3.org/TR/2024/WD-css-values-4-20240312/#calc-serialize Math functions serialize in a canonical sorted form. none none none - - No CSSOM serialization of computed values.
feat:css-values-4/math-min missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-min min(): Smallest of its comma-separated calculations. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-max missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-max max(): Largest of its calculations. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-clamp missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-clamp clamp(): Clamp a central value between a minimum and maximum; none is allowed for either bound. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-round missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-round round(): Round a value to a multiple of a step using nearest, up, down or to-zero. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-mod missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-mod mod(): Modulus taking the sign of the divisor. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-rem missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-rem rem(): Remainder taking the sign of the dividend. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-sin missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-sin sin(): Sine of an angle or number of radians. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-cos missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-cos cos(): Cosine. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-tan missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-tan tan(): Tangent. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-asin missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-asin asin(): Inverse sine, returning an angle. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-acos missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-acos acos(): Inverse cosine. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-atan missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-atan atan(): Inverse tangent. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-atan2 missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-atan2 atan2(): Angle of the vector given by two same-type calculations. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-pow missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-pow pow(): Raise a number to a power. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-sqrt missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-sqrt sqrt(): Square root. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-hypot missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-hypot hypot(): Square root of the sum of squares. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-log missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-log log(): Logarithm with optional base. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-exp missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-exp exp(): e raised to a power. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-abs missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-abs abs(): Absolute value, preserving type. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-sign missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#funcdef-sign sign(): Sign of a value as -1, 0 or 1. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Level 4 addition; depends on the calc() engine.
feat:css-values-4/math-constant-e missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#valdef-calc-e Numeric keyword usable only inside a math function. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Depends on the calc() engine.
feat:css-values-4/math-constant-pi missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#valdef-calc-pi Numeric keyword usable only inside a math function. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Depends on the calc() engine.
feat:css-values-4/math-constant-infinity missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#valdef-calc-infinity Numeric keyword usable only inside a math function. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Depends on the calc() engine.
feat:css-values-4/math-constant-minus-infinity missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#valdef-calc&ndash;infinity Numeric keyword usable only inside a math function. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Depends on the calc() engine.
feat:css-values-4/math-constant-nan missing https://www.w3.org/TR/2024/WD-css-values-4-20240312/#valdef-calc-nan Numeric keyword usable only inside a math function. none: grep -rniE 'calc' donner/css donner/svg/properties donner/svg/parser finds no function handling; a function component is not a dimension, percentage or number donner/svg/parser/LengthPercentageParser.cc:26-29 returns an error, so the declaration is ignored none low S Depends on the calc() engine.

CSS Custom Properties for Cascading Variables 1

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-variables-1/custom-property-declaration missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#defining-variables Any property whose name starts with two dashes is a custom property and is always a valid declaration. the tokenizer accepts the name (donner/css/parser/details/Tokenizer.cc:104-109); donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none high L Common in icon sets and design-token stylesheets. Needs storage for unparsed token lists plus computed-time substitution.
feat:css-variables-1/custom-property-value-syntax missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#syntax The value is any declaration-value (balanced, no bad tokens, no top-level !), may be empty, and is kept as tokens; a trailing !important is still honored. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S Part of custom property support.
feat:css-variables-1/custom-property-case-sensitivity missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#defining-variables Custom property names are case-sensitive, unlike other property names. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S Note the inverse defect today: ordinary property names are matched case-sensitively (feat:css-syntax-3/declaration-name-case-insensitive).
feat:css-variables-1/custom-property-inheritance missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#defining-variables Custom properties are inherited and have the guaranteed-invalid value as their initial value. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S
feat:css-variables-1/custom-property-cascade missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#defining-variables Custom properties take part in the cascade normally, accept CSS-wide keywords and !important, and are not reset by the all shorthand. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S
feat:css-variables-1/guaranteed-invalid-value missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#guaranteed-invalid The initial value of a custom property is a special value that makes any var() referencing it fail. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S
feat:css-variables-1/dependency-cycles missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#cycles Custom properties that reference each other in a cycle all compute to the guaranteed-invalid value. donner/svg/properties/PropertyRegistry.cc:3455-3464: a name starting with – is not in the property table or the presentation attribute list, so it is reported as an unknown property and dropped none none low S
feat:css-variables-1/var-function missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#using-variables var(–name) may appear anywhere in the value of any property and is replaced by the custom property's value. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling a value containing var() fails its property grammar and the declaration is ignored none high L Because the declaration is dropped at parse time, a lower-priority declaration wins, which differs from the unset behavior browsers show.
feat:css-variables-1/var-fallback missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#using-variables var(–name, fallback) uses the fallback (everything after the first comma, possibly empty or containing commas) when the property is guaranteed-invalid. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling none none medium S Part of var().
feat:css-variables-1/var-substitution-time missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#substitute-a-var Substitution happens at computed-value time and operates on tokens, not text; the result is then parsed against the property grammar. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling none none low M Part of var().
feat:css-variables-1/invalid-at-computed-value-time missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#invalid-variables A declaration whose substituted value fails its grammar behaves as unset, not as if it had been absent. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling none none medium S Part of var().
feat:css-variables-1/variables-in-shorthands missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#variables-in-shorthands A shorthand containing var() sets its longhands to a pending-substitution value resolved after substitution. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling none (shorthands such as font and marker are parsed eagerly, donner/svg/properties/PropertyRegistry.cc:3234) none low M Part of var().
feat:css-variables-1/long-variables missing https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#long-variables A UA may treat var() expansions beyond an implementation limit as invalid at computed-value time. none: grep -rnE 'var(|"var"' donner/css donner/svg (non-test, excluding shader code) finds no handling none none low S
feat:css-variables-1/var-not-in-names-or-selectors conformant-untested https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#using-variables var() cannot be used in property names, selectors or anywhere outside property values. trivially true: there is no substitution anywhere none none low S
feat:css-variables-1/serialization-and-apis not-applicable https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#apis CSSOM serialization of custom property values preserves the original text. none none none - - No CSSOM.

CSS Conditional Rules 3

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-conditional-3/conditional-group-processing missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#processing Rules inside a conditional group rule apply only while its condition is true, and re-evaluate when the condition changes. donner/css/parser/StylesheetParser.cc:519-530 (WarnUnsupportedAtRule) and :728-730: the at-rule, including every nested rule, is dropped with a warning none StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules and StylesheetParser.ConditionalBlocksDoNotRegisterNestedFontFaces assert the dropping behavior high M -
feat:css-conditional-3/contents-of-conditional-rules missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#contents-of The block of a conditional group rule is a rule list; unknown or invalid rules inside are ignored without invalidating the group. the block is kept only as an opaque simple block (donner/css/parser/details/ComponentValueParser.h:241-245) none StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules and StylesheetParser.ConditionalBlocksDoNotRegisterNestedFontFaces assert the dropping behavior low S
feat:css-conditional-3/placement-and-nesting missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#use Conditional group rules are allowed at top level and inside other conditional group rules. donner/css/parser/StylesheetParser.cc:519-530 (WarnUnsupportedAtRule) and :728-730: the at-rule, including every nested rule, is dropped with a warning none StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules and StylesheetParser.ConditionalBlocksDoNotRegisterNestedFontFaces assert the dropping behavior low S
feat:css-conditional-3/at-media missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#at-media @media applies its rules when its media query list matches. SVG 2 lists @media among the required CSS features. donner/css/parser/StylesheetParser.cc:519-530 (WarnUnsupportedAtRule) and :728-730: the at-rule, including every nested rule, is dropped with a warning none StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules and StylesheetParser.ConditionalBlocksDoNotRegisterNestedFontFaces assert the dropping behavior high M Even @media all and @media screen blocks are discarded, so content that wraps all rules in a media block renders unstyled.
feat:css-conditional-3/at-supports missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#at-supports @supports applies its rules when its supports condition is true. donner/css/parser/StylesheetParser.cc:519-530 (WarnUnsupportedAtRule) and :728-730: the at-rule, including every nested rule, is dropped with a warning none StylesheetParser.ConditionalRulesWarnAndPreserveFollowingRules and StylesheetParser.ConditionalBlocksDoNotRegisterNestedFontFaces assert the dropping behavior medium S Support tests can be answered by trial-parsing a declaration with the existing property registry.
feat:css-conditional-3/supports-declaration missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition A parenthesized declaration is true when the UA supports that property and value. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-not missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition not negates the following condition in parentheses. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-and missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition and requires all conditions; it cannot be mixed with or at the same level without parentheses. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-or missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition or requires any condition. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-nested-parentheses missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition Conditions nest through parentheses. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-general-enclosed missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#typedef-supports-condition Unknown parenthesized or functional syntax evaluates to false rather than invalidating the rule. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/supports-definition-of-support missing https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#support-definition A declaration is supported when the UA accepts it as valid; partially implemented values must not be reported as supported. none: the prelude is never inspected (donner/css/parser/StylesheetParser.cc:523-524) none none low S Part of @supports.
feat:css-conditional-3/cssom-interfaces not-applicable https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#apis CSSConditionRule, CSSMediaRule, CSSSupportsRule and CSS.supports(). none none none - - No CSSOM or script.

Media Queries 4

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:mediaqueries-4/media-query-list missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-list A comma-separated media query list is true if any query is true; an empty list is true. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none medium M No parser or evaluator exists.
feat:mediaqueries-4/modifier-not missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-not not negates a whole media query. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/modifier-only missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-only only has no effect on evaluation; it hides the query from legacy UAs. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/media-type-all missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-types Media type all matches every device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) donner/css/parser/StylesheetParser.cc:596-598 treats a lone all in @import as unconditional; every other use is dropped StylesheetParser.ImportMediaAllIsUnconditional low S The only recognized form is @import url all.
feat:mediaqueries-4/media-type-screen missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-types Media type screen matches screens. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored asserts the import is ignored low S
feat:mediaqueries-4/media-type-print missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-types Media type print matches paged and print-preview output. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored asserts the import is ignored low S
feat:mediaqueries-4/media-type-deprecated missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-types tty, tv, projection, handheld, braille, embossed, aural and speech must be recognized as valid and never match. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/media-type-unknown missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-types An unknown media type is valid syntax that evaluates to false. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-plain missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-features (feature: value) tests a feature against a value. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/feature-boolean-context missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-boolean-context (feature) is true when the feature's value is anything other than zero or none. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/feature-range-context missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-range-context Range features accept comparisons such as (width >= 600px) and (400px < width < 1000px). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/feature-min-max-prefixes missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-min-max min- and max- prefixes on range features express inclusive bounds. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/condition-and missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-conditions and combines features; all must be true. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/condition-or missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-conditions or combines features; any may be true; it cannot mix with and at the same level. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/condition-not missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-conditions not negates a single parenthesized feature or condition. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/condition-parentheses missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media-conditions Conditions nest through parentheses. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/general-enclosed missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mq-syntax Unknown parenthesized syntax parses as general-enclosed and evaluates to unknown. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/three-valued-evaluation missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#evaluating Evaluation uses true, false and unknown (Kleene logic); a top-level unknown becomes false. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/error-handling missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#error-handling A syntactically malformed query is replaced by not all; unknown features or values make only that feature false. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/units-in-queries missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#units Relative units in queries resolve against initial values, not against the element or root styles. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Part of the missing media query engine.
feat:mediaqueries-4/feature-width missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#width Width of the viewport (range, length). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Suggested static value comes from the render target (canvas size for width and height).
feat:mediaqueries-4/feature-height missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#height Height of the viewport (range, length). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S Suggested static value comes from the render target (canvas size for width and height).
feat:mediaqueries-4/feature-aspect-ratio missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#aspect-ratio Ratio of viewport width to height (range, ratio). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-orientation missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#orientation portrait when height is at least width, else landscape. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-resolution missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#resolution Pixel density of the output device (range, resolution, or infinite). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-scan missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#scan interlace or progressive scanning. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-grid missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#grid 1 for character-grid devices, else 0. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-update missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#update none, slow or fast, the ability to change rendering after layout. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-overflow-block missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mf-overflow-block none, scroll or paged handling of block-axis overflow. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-overflow-inline missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#mf-overflow-inline none or scroll handling of inline-axis overflow. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-color missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#color Bits per color component (range, integer). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-color-index missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#color-index Entries in the color lookup table (range, integer). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-monochrome missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#monochrome Bits per pixel on a monochrome device (range, integer). none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-color-gamut missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#color-gamut srgb, p3 or rec2020 approximate gamut support. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-pointer missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#pointer none, coarse or fine primary pointing device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-hover missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#hover none or hover capability of the primary pointing device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-any-pointer missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#descdef-media-any-pointer Union of pointer capabilities over all input devices. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-any-hover missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#descdef-media-any-hover Union of hover capabilities over all input devices. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-device-width missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#device-width Deprecated: width of the output device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-device-height missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#device-height Deprecated: height of the output device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/feature-device-aspect-ratio missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#device-aspect-ratio Deprecated: aspect ratio of the output device. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) none none low S
feat:mediaqueries-4/viewport-for-svg missing https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#width For media queries the viewport is the initial containing block; for a standalone SVG that is the outermost svg viewport, and for an embedded SVG the embedding box. none: grep -rniE 'media' donner/css donner/svg (non-test) finds only the unsupported-rule warning (donner/css/parser/StylesheetParser.cc:521-522), the @import classification (donner/css/parser/StylesheetParser.cc:589-601) and the unsupported note for the style element's media attribute (donner/svg/SVGStyleElement.h:75) the only viewport notion today is the canvas size used for viewport units (donner/svg/components/shape/ShapeSystem.cc:68-72) none medium S Decision needed for a renderer with no window: canvas size when set, else the document's resolved size. spec-ambiguity for static renderers is limited to which of those to use.
feat:mediaqueries-4/style-element-media-attribute divergent https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media A media query list attached to a style sheet (the style element's media attribute) gates the whole sheet. donner/svg/parser/AttributeParser.cc:1744-1764 handles only type on the style element donner/svg/SVGStyleElement.cc:28-34 parses the sheet unconditionally none medium S A sheet marked media="print" or media="not all" is applied.
feat:mediaqueries-4/import-media-condition partial https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media @import with a media query list loads and applies the sheet only when the list matches. donner/css/parser/StylesheetParser.cc:589-622 donner/css/parser/StylesheetParser.cc:702-718: only a bare all is honored; any other list, even screen, drops the import with a warning StylesheetParser.ImportMediaAllIsUnconditional; StylesheetParser.ConditionalImportsAreDiagnosedAndIgnored low S Failing closed here is inconsistent with the style element's media attribute, which fails open.

CSS Namespaces 3

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-namespaces-3/at-namespace-syntax missing https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#syntax @namespace takes an optional prefix and a namespace name given as a string or url(). donner/css/parser/StylesheetParser.cc:665-668 mentions namespace only to end the @import section; donner/css/parser/StylesheetParser.cc:720-735 then discards the rule none none low M Donner's own user-agent stylesheet contains two @namespace rules (donner/svg/core/UserAgentStylesheet.h:13-14) that are silently ignored.
feat:css-namespaces-3/at-namespace-placement missing https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#syntax @namespace rules must follow @charset and @import and precede all other rules; misplaced ones are ignored. donner/css/parser/StylesheetParser.cc:665-668 mentions namespace only to end the @import section; donner/css/parser/StylesheetParser.cc:720-735 then discards the rule none none low S
feat:css-namespaces-3/namespace-scope missing https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#scope A prefix is declared only within its own style sheet, not in importing or imported sheets. donner/css/parser/StylesheetParser.cc:665-668 mentions namespace only to end the @import section; donner/css/parser/StylesheetParser.cc:720-735 then discards the rule none none low S
feat:css-namespaces-3/prefix-declaration missing https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#prefixes Prefixes are case-sensitive; the last declaration of a prefix wins. donner/css/parser/StylesheetParser.cc:665-668 mentions namespace only to end the @import section; donner/css/parser/StylesheetParser.cc:720-735 then discards the rule none none low S
feat:css-namespaces-3/default-namespace divergent https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#prefixes Without a declared default namespace an unprefixed type selector matches the local name in any namespace; with one, only in that namespace. donner/css/parser/SelectorParser.cc:666-720 parses prefixes syntactically donner/css/selectors/TypeSelector.h:81-98 compares the selector's prefix text with the element's document prefix, so an unprefixed selector matches only unprefixed elements Selector_tests (donner/css/tests/Selector_tests.cc) encode prefix-text matching low M rect {} does not match <s:rect> in a document that binds s to the SVG namespace. By code reading.
feat:css-namespaces-3/qualified-name-in-type-selector divergent https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#css-qnames ns|E matches E in the namespace bound to ns; *|E matches any namespace; |E matches only elements in no namespace; an undeclared prefix makes the selector invalid. donner/css/parser/SelectorParser.cc:666-720 donner/css/selectors/TypeSelector.h:84-90: prefix text comparison, case-insensitive; an empty prefix matches unprefixed elements Selector_tests low M |rect matches ordinary unprefixed SVG rect elements, undeclared prefixes are accepted, and the prefix comparison ignores case although prefixes are case-sensitive.
feat:css-namespaces-3/qualified-name-in-attribute-selector divergent https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#css-qnames In attribute selectors the default namespace does not apply; ns|attr uses the declared prefix. donner/css/parser/SelectorParser.cc:796-934 donner/css/selectors/AttributeSelector.h:110-112 looks the attribute up by its literal qualified name Selector_tests low S Works for the common unprefixed case and for xlink:href written with the same prefix as the document.

CSS Nesting 1

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-nesting-1/nested-style-rules missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#nesting A style rule may contain other style rules whose selectors are relative to the parent rule. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none medium M Working Draft. Besides not applying, a nested rule also swallows the declaration that follows it; that part is a divergence from the css-syntax-3 Candidate Recommendation Draft of 1 October 2026 only (see feat:css-syntax-3/consume-block-contents), since the 2021 Candidate Recommendation algorithm discards the same tokens.
feat:css-nesting-1/nested-relative-selectors missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#syntax A nested selector without & is treated as a relative selector with an implied & and descendant combinator. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none low S
feat:css-nesting-1/nesting-selector missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#nest-selector & represents the elements matched by the parent rule, with the specificity of :is() over the parent selector list; at top level it behaves as :scope. none: grep -rnE "'&'\|Ampersand" donner/css finds nothing, so & is an unexpected delim donner/css/parser/StylesheetParser.cc:485-489 drops the rule as an invalid selector none medium S
feat:css-nesting-1/nested-group-rules missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#conditionals Conditional group rules such as @media and @supports may be nested in a style rule and may contain bare declarations. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none low M Depends on conditional rules.
feat:css-nesting-1/nested-scope-rules missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#nesting-at-scope @scope nested in a style rule scopes to the parent's elements. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none low M @scope itself is not implemented.
feat:css-nesting-1/mixing-declarations-and-rules missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#mixing Declarations may be interleaved with nested rules; later declarations are wrapped in nested declarations rules to keep source order. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none low S
feat:css-nesting-1/nested-declarations-rule missing https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#nested-declarations The nested declarations rule matches the same elements as its parent with the parent's specificity. donner/css/parser/DeclarationListParser.cc:268-305: a rule block yields declarations only; a nested rule is consumed as a malformed declaration through the next semicolon none none low S
feat:css-nesting-1/cssom not-applicable https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#cssom CSSNestedDeclarations and nested rule access through CSSStyleRule. none none none - - No CSSOM.

CSS Style Attributes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-style-attr/declaration-list-syntax conformant https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#syntax The attribute value is the contents of a declaration block without braces. donner/css/parser/DeclarationListParser.cc:190-232 via donner/css/CSS.cc:13-15 donner/svg/properties/PropertyRegistry.cc:3510-3532 DeclarationListParser.OnlyDeclarations; resvg structure/style-attribute/simple-case.svg and transform.svg (enabled) - -
feat:css-style-attr/forward-compatible-parsing conformant https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#syntax The value is parsed with the same error-recovery rules as a declaration block: bad declarations are skipped, comments allowed. donner/css/parser/DeclarationListParser.cc:86-134, :202-217 donner/svg/properties/PropertyRegistry.cc:3526-3530 ignores per-declaration errors DeclarationListParser.InvalidTokens; resvg structure/style-attribute/comments.svg - -
feat:css-style-attr/close-brace-is-invalid-token conformant-untested https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#syntax A } in the value does not end the style data; it is just an invalid token. donner/css/parser/DeclarationListParser.cc:104-132 discards through the next semicolon; inside a value it joins the value, which then fails its grammar same none low S By code reading.
feat:css-style-attr/no-rules-in-attribute conformant https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#syntax Only declarations are meaningful; at-rules and selectors have no effect. donner/css/parser/DeclarationListParser.cc:202-207 consumes and discards at-rules same DeclarationListParser.OnlyDeclarations - -
feat:css-style-attr/cascading-and-specificity conformant https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#interpret Declarations act as an author rule with no selector that outranks every selector; !important is honored. donner/css/Specificity.h:198 (StyleAttribute rank) donner/svg/properties/PropertyRegistry.cc:3529 PropertyRegistry.CascadePriorityImportantInlineClearsWithoutClearingExplicitOverrides; resvg structure/style/resolve-order.svg - -
feat:css-style-attr/property-name-case divergent https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#interpret Declarations are interpreted exactly as in a style sheet, including case-insensitive property names. donner/svg/properties/PropertyRegistry.cc:3436-3446 same none low S Same defect as feat:css-syntax-3/declaration-name-case-insensitive.
feat:css-style-attr/relative-url-base conformant-untested https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#interpret Relative URLs in the attribute resolve against the element's base URL. url values keep their raw text (donner/svg/properties/PropertyRegistry.cc:931-958) donner/svg/graph/Reference.cc:58-75 none low S Unverified for external references.

SVG 2 types chapter: attribute syntax and basic data types

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2-types/initial-value-definition conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#TermInitialValue The initial value is used when an attribute or property is unspecified or has an invalid value. attribute parse failures leave the component default in place, for example donner/svg/parser/AttributeParser.cc:90-112 component defaults none specific low S Per-attribute initial values are audited with each attribute.
feat:svg2-types/invalid-value-definition conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#TermInvalidValue A CSS declaration with an invalid value is ignored. donner/svg/properties/PropertyParsing.h (Parse helper) donner/svg/properties/PropertyRegistry.cc:3446-3452 PropertyRegistry.InvalidClipDeclarationsPreserveTheEarlierValue; donner_svg2_corpus geometry/css-length-values/rect-inline-unitless-invalid - -
feat:svg2-types/presentation-attr-unitless-length conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax When parsing a presentation attribute, every length in the grammar also accepts a bare number in user units. donner/svg/properties/PropertyParsing.cc:51-67 sets AllowUserUnits for attributes donner/svg/parser/LengthPercentageParser.cc:18-23; donner/base/Length.h:166 LengthPercentageParser.UserUnits; LengthParser.UnitOptional; resvg structure suites - -
feat:svg2-types/presentation-attr-unitless-length-percentage conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax The same relaxation applies to length-percentage. donner/svg/properties/PropertyParsing.cc:51-67 donner/svg/parser/LengthPercentageParser.cc:5-30 LengthPercentageParser.UserUnits - -
feat:svg2-types/presentation-attr-unitless-angle conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Every angle in a presentation attribute grammar also accepts a bare number, read as degrees. donner/svg/properties/PropertyRegistry.cc:1514-1521 (filter hue-rotate accepts a number when user units are allowed) same none verified for the attribute path low S
feat:svg2-types/css-declaration-no-unitless divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax The number relaxation applies only to presentation attributes, not to the corresponding CSS property values. donner/svg/properties/PropertyRegistry.cc:348-351, :3446-3452 see feat:css-values-4/unitless-nonzero-length-in-css donner_svg2_corpus geometry/css-length-values (rect x only) low S Same defect as feat:css-values-4/unitless-nonzero-length-in-css.
feat:svg2-types/presentation-attr-css-comments-escapes conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Attributes parsed with a CSS grammar accept CSS comments and escapes; for example an escaped unit with a trailing comment. donner/svg/properties/PropertyParsing.cc:68-78 tokenizes the attribute value with the CSS tokenizer donner/css/parser/ValueParser.cc:8-12 ValueParser.SupportsComments - - Holds for presentation attributes. Other CSS-grammar attributes are covered by the next row.
feat:svg2-types/other-attr-css-grammar-parsing divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Any other attribute defined with the CSS value syntax is parsed by the CSS parser, so leading and trailing whitespace, comments and escapes are accepted. donner/svg/parser/AttributeParser.cc:90-112 (ParseLengthAttribute) runs a plain number-and-unit parser on the raw value and rejects anything left over call sites pass the raw attribute value, for example donner/svg/parser/AttributeParser.cc:1488-1491 (line x1) none low S By code reading: x1=" 10" fails in the number parser and x1="10 " fails with unexpected data at end of attribute, leaving the default; comments and escapes are also rejected. Affects length attributes that are not presentation attributes (line and gradient coordinates, pattern, mask and filter regions, marker sizes). New finding.
feat:svg2-types/url-attribute-parsing partial https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax An attribute defined as a URL is parsed with the URL parser using the document URL as base. donner/svg/parser/AttributeParser.cc:452, :561, :1069, :1466 store href values as raw strings donner/svg/graph/Reference.cc:33-75 splits on # by hand; data: URLs go through donner/base/parser/DataUrlParser.cc DataUrlParser tests; resvg structure/image suite low M No general URL parser: percent-decoding, whitespace stripping and scheme normalization are not applied. Unverified against every href consumer.
feat:svg2-types/attr-parse-failure-initial conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax When an attribute fails to parse, it is treated as if its initial value had been specified. donner/svg/parser/AttributeParser.cc:96-109 warns and returns no value the setter is skipped, leaving the default none specific low S
feat:svg2-types/invalid-presentation-attr-as-initial divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax An invalid presentation attribute counts as the property's initial value, so it can override lower-priority rules such as the user-agent sheet. donner/svg/properties/PropertyRegistry.cc:3584-3589 returns the error without setting anything same none low S The chapter's example: overflow="invalid" on svg should yield visible over the UA sheet's hidden. Browsers commonly ignore the attribute instead. This is not a spec ambiguity: the chapter states the rule explicitly.
feat:svg2-types/case-insensitive-attribute-values conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Presentation attribute values are parsed like the CSS property, so keywords are ASCII case-insensitive. keyword comparisons use equalsLowercase throughout donner/svg/properties/PropertyRegistry.cc (for example :2011-2040) same PropertyRegistry.FilterAmountErrorsUseCanonicalFunctionNames (mixed-case function names); LengthParser.CaseInsensitive - -
feat:svg2-types/real-number-precision conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#Precision Numeric values must support at least all finite single-precision values; higher precision is recommended for transforms. donner/base/parser/NumberParser.cc:34-69 produces doubles donner/base/Length.h:162-209 computes in double NumberParser.BigFraction, NumberParser.LongSignificandsKeepTheirMagnitude - -
feat:svg2-types/number-with-exponent conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Numbers in attributes follow the CSS number syntax, including scientific notation. donner/base/parser/NumberParser.cc:303-338 donner/svg/parser/AttributeParser.cc:68-80 NumberParser.Exponent, NumberParser.Exponents - -
feat:svg2-types/range-clamping-deferred conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#RangeClamping Out-of-range checking is deferred as late as possible so that intermediate values may exceed the range. alpha values are clamped at parse time (donner/svg/properties/PropertyParsing.cc:105-110) same none low S Early clamping is unobservable without animation or calc(); per-attribute ranges are audited with each attribute.
feat:svg2-types/list-comma-whitespace conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax List-valued attributes separate items with whitespace and or a single comma, as their CSS grammars state. donner/svg/parser/ListParser.h (text x, y, dx, dy, rotate lists at donner/svg/parser/AttributeParser.cc:1931-2257); donner/base/parser/details/ParserBase.cc:21-34 (viewBox); donner/svg/properties/PropertyRegistry.cc:1222-1246 (stroke-dasharray) same ListParser.CommaSeparated, ListParser.SpaceSeparated, ListParser.MixedSeparators, ListParser.InvalidSyntax; ViewBoxParser.Commas - -
feat:svg2-types/percentage-in-attributes conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax Percentages in length attributes resolve against the viewport dimension stated for the attribute. donner/base/parser/LengthParser.cc:23 donner/base/Length.h:167-175 LengthParser.LengthUnits; LengthTest.ToPixelsCoversPercentExtents - -
feat:svg2-types/angle-default-unit conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax A bare number where an angle is expected in an attribute is in degrees. donner/svg/parser/AttributeParser.cc:302-333 (AllowNumbersInDegrees) donner/svg/parser/AttributeParser.cc:1850 (marker orient) and the text rotate lists AngleParser.BareNumber - - Trailing tokens after the angle only warn (donner/svg/parser/AttributeParser.cc:326-330), so orient="30 junk" is accepted as 30 degrees.
feat:svg2-types/number-optional-number partial https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax A number optionally followed by a second number (CSS grammar: whitespace separated). donner/svg/parser/Number2dParser.cc:15-47 donner/svg/parser/AttributeParser.cc:580-596 (feGaussianBlur stdDeviation) and :926-941 (feDropShadow stdDeviation, hand-rolled) Number2dParser.OneNumber, Number2dParser.TwoNumbers, Number2dParser.ExtraCharacters low S Two parsers disagree: the shared one rejects a comma, and a single number with trailing whitespace is rejected because the consumed count excludes the trimmed whitespace (donner/svg/parser/AttributeParser.cc:584-586 carries a TODO); the feDropShadow path accepts commas and ignores trailing junk. New finding.
feat:svg2-types/iri-versus-url-function conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax URL-valued attributes such as href take a bare URL, while properties take the url() notation. donner/svg/parser/AttributeParser.cc:452, :1466 (href, with xlink:href fallback) donner/svg/properties/PropertyRegistry.cc:931-958 (url() in properties) PropertyRegistry.PaintUrlsResolveDecodedReferences; resvg structure/style and painting suites - -
feat:svg2-types/dom-overview not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#SVGDOMOverview SVG DOM overview: dependencies, naming, reflection and synchronization of content attributes. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.
feat:svg2-types/dom-element-interfaces not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#DOMInterfacesForSVGElements SVGElement, SVGGraphicsElement and SVGGeometryElement interfaces. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.
feat:svg2-types/dom-basic-type-interfaces not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#DOMInterfacesForBasicDataTypes SVGNumber, SVGLength, SVGAngle and their unit conversion methods. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.
feat:svg2-types/dom-list-interfaces not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#ListInterfaces SVGNumberList, SVGLengthList, SVGStringList and the list synchronization rules. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.
feat:svg2-types/dom-animated-interfaces not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#DOMInterfacesForReflectingSVGAttributes SVGAnimatedBoolean, Enumeration, Integer, Number, Length, Angle, String, Rect, NumberList and LengthList. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.
feat:svg2-types/dom-other-mixins not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#OtherDOMInterfaces SVGUnitTypes, SVGTests, SVGFitToViewBox and SVGURIReference. none none none - - WebIDL interfaces for script. Donner has no script engine; its C++ element API is not a WebIDL binding and is out of scope for a parsing audit.

Tests to create

  • feat:css-syntax-3/escape-trailing-whitespace (https://www.w3.org/TR/2026/CRD-css-syntax-3-20261001/#consume-escaped-code-point): tokenizer case for a hex escape followed by two spaces and a letter, expecting two identifiers; SVG case <style>.\31 x { fill: green }</style> with an element of class 1 containing an x element, expecting only the inner element green.
  • feat:css-syntax-3/escape-at-eof (#starts-with-a-valid-escape): tokenizer case for a lone backslash at end of input expecting an identifier of U+FFFD.
  • feat:css-syntax-3/ident-non-ascii-code-points (#non-ascii-ident-code-point): tokenizer cases for U+00A0, U+00D7 and U+2028 expecting delims, and U+00B7, U+00C0 expecting identifiers.
  • feat:css-syntax-3/url-invalid-escape (#consume-url-token): tokenizer case for url(a\ + newline + ) expecting bad-url.
  • feat:css-syntax-3/consume-block-contents (#consume-block-contents): SVG case <style>rect { b { fill: red } fill: green; }</style> expecting a green rect; and rect { @unknown { x: y } fill: green; } expecting green.
  • feat:css-syntax-3/declaration-name-case-insensitive (#consume-declaration): SVG cases <style>rect { FILL: green }</style> and style="Fill: green".
  • feat:css-syntax-3/anb-ndashdigit-ident (#anb-microsyntax): parser cases N-2, +N-2, -N-2 expecting the same result as lower case; wire the vendored An+B.json file into the harness.
  • feat:css-syntax-3/token-unicode-range (#consume-unicode-range-token): wire the vendored urange.json once the descriptor exists.
  • feat:css-syntax-3/encoding-bom, encoding-charset-rule (#css-decode-bytes): import tests with a UTF-8 BOM, a UTF-16 BOM and an @charset "iso-8859-1"; sheet containing a non-ASCII identifier; wire the vendored stylesheet_bytes.json.
  • feat:css-syntax-3/serialization-round-trip (#serialization): round-trip a declaration whose value is a string containing a quote and a backslash, and a value written as a/**/b.
  • feat:css-values-4/url-quoted (https://www.w3.org/TR/2024/WD-css-values-4-20240312/#urls): SVG cases mask="url('#m')", style="mask: url(&quot;#m&quot;)", marker-end: url('#a') and the marker shorthand with a quoted URL.
  • feat:css-values-4/unitless-nonzero-length-in-css (#lengths): corpus cases mirroring geometry/css-length-values for circle { r: 5 }, text { font-size: 12 } and svg { width: 50 }, each expecting the declaration to be ignored.
  • feat:css-values-4/unit-em, unit-rem, unit-vw (#font-relative-lengths, #viewport-relative-lengths): SVG cases using em, rem and vw in a marker size, a mask region and a filter primitive subregion under a non-default font-size.
  • feat:css-values-4/unit-ex (#ex): text-relative length using ex with a font whose x-height is not half an em.
  • feat:css-values-4/custom-ident (#custom-idents): font-family: inherit serif and font-family: default expecting an invalid declaration.
  • feat:css-values-4/position-three-value-rejected (#position): clip-path: circle(10px at left 10px top) expecting the declaration to be ignored.
  • feat:css-values-4/integer (#integers): numOctaves="2.5" expecting the initial value.
  • feat:css-values-4/math-calc (#calc-func): SVG cases width: calc(50% - 10px), stroke-width: calc(2 * 3px) and a nested min()/max()/clamp() case, once implemented.
  • feat:css-variables-1/var-function (https://www.w3.org/TR/2022/CR-css-variables-1-20220616/#using-variables): SVG cases for a custom property declared on the root and used in fill, a fallback, an undefined variable (expecting the inherited or initial value, not a lower-priority declaration) and a cycle.
  • feat:css-conditional-3/at-media, at-supports (https://www.w3.org/TR/2024/CRD-css-conditional-3-20240815/#at-media): SVG cases @media all, @media screen, @media print, @media (min-width: 1px), @supports (fill: red), @supports not (fill: red) and a nested pair.
  • feat:mediaqueries-4/style-element-media-attribute (https://www.w3.org/TR/2026/CRD-mediaqueries-4-20260219/#media): <style media="print"> and <style media="not all"> expecting the sheet not to apply.
  • feat:css-namespaces-3/default-namespace (https://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/#prefixes): a document using a prefixed SVG namespace (<s:svg xmlns:s=...>) styled by rect { fill: green }, and an @namespace plus ns|rect case.
  • feat:css-nesting-1/nested-style-rules (https://www.w3.org/TR/2026/WD-css-nesting-1-20260122/#nesting): g { & rect { fill: green } } and g { rect { fill: green } }.
  • feat:css-style-attr/close-brace-is-invalid-token (https://www.w3.org/TR/2013/REC-css-style-attr-20131107/#syntax): style="fill: green; } stroke: red; stroke-width: 4" expecting green fill and the declarations after the next semicolon to apply.
  • feat:svg2-types/other-attr-css-grammar-parsing (https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax): <line x1=" 10 " ...> and <linearGradient x2="50%/**/"> expecting the values to be honored.
  • feat:svg2-types/invalid-presentation-attr-as-initial (#syntax): <svg overflow="invalid"> nested viewport expecting visible overflow.
  • feat:svg2-types/number-optional-number (#syntax): stdDeviation="2 " and stdDeviation="2,3" on both feGaussianBlur and feDropShadow, expecting consistent handling.
  • feat:svg2-types/presentation-attr-unitless-angle (#syntax): filter="hue-rotate(90)" as a presentation attribute versus style="filter: hue-rotate(90)".

Unverified / could not fetch

  • All ten specification pages were fetched; nothing was filled from memory.
  • Nothing was executed. Every behavior statement, including the examples in the notes, is by code reading.
  • feat:css-syntax-3/parse-comma-separated-list: equivalence was checked only at the @font-face src call site.
  • feat:css-values-4/url-relative-resolution, url-empty, feat:css-style-attr/relative-url-base, feat:svg2-types/url-attribute-parsing: verified at the parse side only; the behavior of every external-reference consumer was not traced.
  • feat:css-values-4/position-transform-origin: listed for completeness; its grammar belongs to CSS Transforms and was not walked alternative by alternative here.
  • feat:css-namespaces-3/*: selector matching was read in the type and attribute selector headers only; the wider selector engine belongs to selectors_cascade.md.
  • Per-property range restrictions, initial values and keyword sets are not in this ledger; the two range rows cite examples only.
  • The default-metrics call-site count (50) is a grep count of FontMetrics() in non-test files under donner/svg; individual sites were not each traced to a user-visible length.