Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Document structure and global attributes

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.

Scope: SVG 2 CR chapters struct (5), embedded (12.4, foreignObject only), linking (16, the a and view elements, URL reference processing, fragment identifiers), conform (2.2, 2.3 processing modes, 2.4.6 error processing), render 3.2 (rendered versus non-rendered elements), interact 15.9 (the script element) and styling 6.2 to 6.5 (the style element, class and style attributes). Geometry properties (x, y, width, height), presentation attributes and CSS properties are audited in other ledgers and are only referenced here.

All Donner paths are checkout-relative. No code was built or executed: every behavior statement is a code-reading result ("by code reading") unless a named test asserts it. A row is conformant only when the implementing code was read and a named test asserts the behavior; conformant-untested means the code was read and no test was found.

Specs read

Spec Level Maturity Dated URL read
SVG 2, Document Structure 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html
SVG 2, Embedded Content (12.4) 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/embedded.html
SVG 2, Linking 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html
SVG 2, Conformance Criteria 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html
SVG 2, Styling 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html
SVG 2, Coordinate Systems (8.6 to 8.8) 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html
SVG 2, Scripting and Interactivity (15.8, 15.9) 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html
SVG 2, Rendering Model (3.2) 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html
SVG 2, Basic Data Types (4.2 attribute syntax) 2 CR Snapshot 2026-10-06 https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html
SVG Animations (playbackorder, timelinebegin only) 2 Editor's Draft (no TR exists; this is the draft the CR attribute index links to) https://w3c.github.io/svgwg/specs/animations/ (fetched 2026-11-14, undated draft)

The HTML, DOM, CSS Scoping, Media Fragments, BCP 47 and Referrer Policy specifications are referenced by the chapters above for behavior that Donner does not implement (link navigation, shadow DOM scripting interfaces, focus). They were not fetched; rows that depend on them say so and are classified from the SVG 2 text alone.

Inventory

Row keys, in matrix order. Element rows come from the SVG 2 element index, attr: rows from the attribute index (one per index line, split with #n where behavior differs per element), val: rows from each enumerated grammar, and feat: rows from the prose rules of the struct, embedded (foreignObject), linking, conform, render (3.2) and styling (6.2 to 6.5) chapters, taken section by section.

  • el:svg
  • el:g
  • el:defs
  • el:symbol
  • el:use
  • el:switch
  • el:desc
  • el:title
  • el:metadata
  • el:style
  • el:script
  • el:a
  • el:view
  • el:foreignObject
  • attr:crossorigin@script
  • attr:download@a
  • attr:href@a
  • attr:href@script
  • attr:href@use
  • attr:hreflang@a
  • attr:media@style
  • attr:onabort@svg
  • attr:onerror@svg
  • attr:onresize@svg
  • attr:onscroll@svg
  • attr:onunload@svg
  • attr:ping@a
  • attr:playbackorder@svg
  • attr:refX@symbol
  • attr:refY@symbol
  • attr:referrerpolicy@a
  • attr:rel@a
  • attr:target@a
  • attr:timelinebegin@svg
  • attr:title@style
  • attr:transform@svg
  • attr:type@a
  • attr:type@script
  • attr:type@style
  • attr:autofocus@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:class@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:id@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:lang@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#1
  • attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#2
  • attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#3
  • attr:requiredExtensions@a, animate, animateMotion, animateTransform, circle, clipPath, ellipse, foreignObject, g, image, line, mask, path, polygon, polyline, rect, set, svg, switch, text, textPath, tspan, use
  • attr:style@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:systemLanguage@a, animate, animateMotion, animateTransform, circle, clipPath, ellipse, foreignObject, g, image, line, mask, path, polygon, polyline, rect, set, svg, switch, text, textPath, tspan, use
  • attr:tabindex@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • attr:viewBox@marker, pattern, svg, symbol, view#1
  • attr:viewBox@marker, pattern, svg, symbol, view#2
  • attr:viewBox@marker, pattern, svg, symbol, view#3
  • attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#1
  • attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#2
  • attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#3
  • attr:xlink:title@a, image, linearGradient, pattern, radialGradient, script, textPath, use
  • attr:xml:space@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view
  • val:preserveAspectRatio/none
  • val:preserveAspectRatio/xMinYMin
  • val:preserveAspectRatio/xMidYMin
  • val:preserveAspectRatio/xMaxYMin
  • val:preserveAspectRatio/xMinYMid
  • val:preserveAspectRatio/xMidYMid
  • val:preserveAspectRatio/xMaxYMid
  • val:preserveAspectRatio/xMinYMax
  • val:preserveAspectRatio/xMidYMax
  • val:preserveAspectRatio/xMaxYMax
  • val:preserveAspectRatio/meet
  • val:preserveAspectRatio/slice
  • val:viewBox/four-numbers-comma-or-whitespace
  • val:viewBox/negative-size
  • val:viewBox/zero-size
  • val:refX/<length>
  • val:refX/left
  • val:refX/center
  • val:refX/right
  • val:refY/<length>
  • val:refY/top
  • val:refY/center
  • val:refY/bottom
  • val:xml:space/default
  • val:xml:space/preserve
  • val:target/_self
  • val:target/_parent
  • val:target/_top
  • val:target/_blank
  • val:target/<XML-Name>
  • val:crossorigin/anonymous
  • val:crossorigin/use-credentials
  • val:playbackorder/all
  • val:playbackorder/forwardonly
  • val:timelinebegin/loadend
  • val:timelinebegin/loadbegin
  • val:requiredExtensions/space-separated-url-tokens
  • val:requiredExtensions/empty-string
  • val:systemLanguage/comma-separated-tags
  • val:systemLanguage/empty-or-only-separators
  • val:systemLanguage/case-insensitive-exact-match
  • val:systemLanguage/prefix-match
  • val:type@style/empty-or-absent
  • val:type@style/text-css
  • val:type@style/other-media-type
  • feat:svg2/use-href-precedence
  • feat:svg2/use-same-document-reference
  • feat:svg2/use-external-document
  • feat:svg2/use-data-url-and-cross-origin
  • feat:svg2/use-non-svg-target-in-error
  • feat:svg2/use-circular-reference
  • feat:svg2/use-unresolved-not-rendered
  • feat:svg2/use-shadow-tree-clone
  • feat:svg2/use-shadow-tree-live-updates
  • feat:svg2/use-shadow-tree-when-not-rendered
  • feat:svg2/use-shadow-tree-read-only-and-inert-script
  • feat:svg2/use-nested-use
  • feat:svg2/use-external-url-absolutization
  • feat:svg2/use-xy-translate
  • feat:svg2/use-width-height-override
  • feat:svg2/use-width-height-no-effect-on-non-viewport
  • feat:svg2/use-negative-width-height-ignored
  • feat:svg2/use-zero-width-height-disables
  • feat:svg2/use-style-inheritance-from-host
  • feat:svg2/use-presentation-attributes-cloned
  • feat:svg2/use-style-rule-scoping
  • feat:svg2/use-external-stylesheets
  • feat:svg2/use-media-queries-in-shadow-scope
  • feat:svg2/use-visibility-hidden
  • feat:svg2/use-display-none
  • feat:svg2/use-animations-in-shadow-tree
  • feat:svg2/use-event-handling
  • feat:svg2/use-svg-target-sizing
  • feat:svg2/symbol-never-rendered-directly
  • feat:svg2/symbol-instance-display-inline
  • feat:svg2/symbol-nested-instance-not-rendered
  • feat:svg2/symbol-x-y-width-height
  • feat:svg2/symbol-viewbox-preserveaspectratio
  • feat:svg2/symbol-overflow-hidden
  • feat:svg2/symbol-refxy-placement
  • feat:svg2/symbol-refxy-unspecified-vs-zero
  • feat:svg2/symbol-transform
  • feat:svg2/switch-first-true-child
  • feat:svg2/switch-allowreorder-language-priority
  • feat:svg2/switch-display-visibility-no-effect
  • feat:svg2/switch-eligible-children
  • feat:svg2/switch-container-child-subtree
  • feat:svg2/switch-does-not-affect-style-script
  • feat:svg2/conditional-outside-switch
  • feat:svg2/conditional-does-not-block-references
  • feat:svg2/conditional-in-never-rendered-container
  • feat:svg2/conditional-animation-elements
  • feat:svg2/conditional-systemlanguage-prefix-direction
  • feat:svg2/requiredfeatures-removed
  • feat:svg2/svg-root-and-namespace
  • feat:svg2/svg-outermost-x-y-ignored
  • feat:svg2/nested-svg-viewport
  • feat:svg2/nested-svg-overflow-clip
  • feat:svg2/svg-zero-or-negative-size
  • feat:svg2/preserveaspectratio-requires-viewbox
  • feat:svg2/attribute-css-value-parsing
  • feat:svg2/data-attributes
  • feat:svg2/lang-xml-lang-precedence
  • feat:svg2/id-processing-irrespective-of-validity
  • feat:svg2/foreign-namespace-elements
  • feat:svg2/foreign-namespace-attributes
  • feat:svg2/unknown-svg-namespace-elements
  • feat:svg2/html-metadata-elements
  • feat:svg2/aria-and-role-attributes
  • feat:svg2/never-rendered-element-types
  • feat:svg2/non-rendered-five-situations
  • feat:svg2/display-none-keeps-references
  • feat:svg2/error-processing-continue
  • feat:svg2/processing-mode-dynamic-interactive
  • feat:svg2/processing-mode-animated
  • feat:svg2/processing-mode-secure-animated
  • feat:svg2/processing-mode-static
  • feat:svg2/processing-mode-secure-static
  • feat:svg2/feature-declarative-animation-disabled
  • feat:svg2/feature-external-references-disabled
  • feat:svg2/feature-script-execution-disabled
  • feat:svg2/feature-interaction-disabled
  • feat:svg2/referencing-mode-image
  • feat:svg2/referencing-mode-use-and-href
  • feat:svg2/referencing-mode-graphical-effects
  • feat:svg2/referencing-mode-inline-and-foreignobject
  • feat:svg2/resource-fetch-cors
  • feat:svg2/url-same-document-detection
  • feat:svg2/url-xml-base
  • feat:svg2/url-invalid-reference-when-target-missing
  • feat:svg2/a-renders-as-container
  • feat:svg2/a-link-activation
  • feat:svg2/a-nested-links
  • feat:svg2/link-pseudo-classes-and-ua-cursor
  • feat:svg2/fragment-bare-name-view
  • feat:svg2/fragment-svgview
  • feat:svg2/fragment-media-spatial
  • feat:svg2/fragment-media-temporal
  • feat:svg2/view-element-not-rendered
  • feat:svg2/title-desc-not-rendered
  • feat:svg2/title-desc-text-content
  • feat:svg2/title-desc-language-selection
  • feat:svg2/title-desc-accessible-name
  • feat:svg2/metadata-not-rendered
  • feat:svg2/style-content-applied
  • feat:svg2/style-never-rendered
  • feat:svg2/style-dynamic-update
  • feat:svg2/style-multiple-sheets-order
  • feat:svg2/style-child-element-error
  • feat:svg2/xml-stylesheet-processing-instruction
  • feat:svg2/html-link-stylesheet
  • feat:svg2/script-not-executed
  • feat:svg2/script-not-rendered
  • feat:svg2/event-attributes-inert
  • feat:svg2/foreignobject-content-not-rendered
  • feat:svg2/foreignobject-switch-fallback

Matrix

Elements

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
el:svg partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElement Container, renderable, structural element. Root of an SVG document fragment and, when nested, a new viewport. Accepts viewBox, preserveAspectRatio, transform, x, y, width, height and Window event handler attributes. The fragment root must be an svg in the SVG namespace. donner/svg/SVGSVGElement.cc:13-25 (class SVGSVGElement, created for the root at donner/svg/parser/SVGParser.cc:903-947 and for nested svg through donner/svg/parser/SVGParser.cc:778-791); attributes at donner/svg/parser/AttributeParser.cc:1659-1673. A non-svg root or a wrong namespace is a parse error (donner/svg/parser/SVGParser.cc:906-927, :956-964). Viewport and viewBox mapping in donner/svg/components/layout/LayoutSystem.cc:414-478, :845-870; overflow clip donner/svg/renderer/RenderingContext.cc:462-469; nested content model is not enforced (any child is accepted, unknown children are not rendered donner/svg/renderer/RenderingContext.cc:227-230, :407-409). donner/svg/tests/SVGSVGElement_tests.cc:60-474; donner/svg/parser/tests/SVGParser_tests.cc:119 (WithoutNamespace), :653 (RootElementNotSvgFails); resvg third_party/resvg-test-suite/tests/structure/svg/*.svg (42 cases; not-UTF-8-encoding.svg skipped, no-size.svg compared against a Donner golden, 4 run without pixel comparison, 36 at default settings; registered under StructureSvg in donner/svg/renderer/tests/resvg_test_suite.cc). low S Element itself is implemented. Gaps are in rows of their own: viewBox whitespace and zero size (val:viewBox/...), event handler attributes (not applicable), playbackorder/timelinebegin (missing). Content model violations are tolerated silently, which the error-processing rule allows. Each svg element (nested ones too) installs its own copy of the user agent style sheet (donner/svg/SVGSVGElement.cc:19-23), which is redundant but harmless by code reading.
el:g conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#GElement Container, renderable, structural element that groups children; children render in order and inherit properties. donner/svg/SVGGElement.cc (class SVGGElement, default rendering behavior), created through donner/svg/parser/SVGParser.cc:778-791. Default traversal of children donner/svg/renderer/RenderingContext.cc:716-740; group opacity, clip, mask and filter are applied per instance in the renderer. resvg third_party/resvg-test-suite/tests/structure/g/deeply-nested-groups.svg, third_party/resvg-test-suite/tests/structure/g/recursive-inheritance.svg (unskipped, donner/svg/renderer/tests/resvg_test_suite.cc:1120); third_party/resvg-test-suite/tests/structure/defs/style-inheritance.svg. - - Content model is not validated (any element is accepted as a child); non-renderable children are skipped.
el:defs conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DefsElement Never-rendered container. Descendants are not rendered directly but stay referenceable; display on defs cannot make it render and does not block references. donner/svg/SVGDefsElement.cc:8-13 (class SVGDefsElement, RenderingBehavior::Nonrenderable). donner/svg/renderer/RenderingContext.cc:426-429 returns before style is consulted, so no author display value can render it; references resolve by id independently of rendering (donner/svg/graph/Reference.cc:21-28). donner/svg/tests/SVGDefsElement_tests.cc:32 (NotRenderedDirectly), :67 (UseElementRendersDefinition); resvg third_party/resvg-test-suite/tests/structure/defs/*.svg (7 cases, unskipped, donner/svg/renderer/tests/resvg_test_suite.cc:1115). - - The CR phrases this as a user agent display: none !important rule; Donner uses a type-level flag instead, so the computed display of a defs reads as inline through the style query API. Rendering result is the same.
el:symbol partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolElement Container that is never rendered directly; when it is the instance root of a use it establishes a viewport (x, y, width, height, viewBox, preserveAspectRatio, refX, refY), with UA overflow: hidden and forced display: inline on the instance root. donner/svg/SVGSymbolElement.cc:22-34 (class SVGSymbolElement, ShadowOnlyChildren, appliesSelfTransform = false); attributes donner/svg/parser/AttributeParser.cc:1875-1899. Instance viewport donner/svg/components/layout/LayoutSystem.cc:958-1017, content transform donner/svg/components/layout/LayoutSystem.cc:414-452; display override donner/svg/components/style/StyleSystem.cc:188-199; UA rules donner/svg/core/UserAgentStylesheet.h (*\|symbol { display: none !important }, overflow hidden). donner/svg/tests/SVGSymbolElement_tests.cc:18-463; donner/svg/components/style/tests/StyleSystem_tests.cc:1252, :1415, :1441; resvg third_party/resvg-test-suite/tests/structure/symbol/*.svg (16 cases, unskipped, donner/svg/renderer/tests/resvg_test_suite.cc:1239). low S Partial because of three feature rows: feat:svg2/symbol-refxy-placement (wrong when the viewBox origin is not 0 or alignment adds an offset, and skipped without a viewBox), feat:svg2/symbol-refxy-unspecified-vs-zero and feat:svg2/symbol-transform (ignored).
el:use partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement Graphics referencing element. Clones the referenced SVG element (same document or external document) into a shadow tree rendered as the content of the use; in error when the target is not an SVG element or the reference is circular; an unresolved or invalid reference is not rendered. donner/svg/SVGUseElement.cc:9-13 (class SVGUseElement); attributes donner/svg/parser/AttributeParser.cc:1768-1783; href resolution donner/svg/UseReference.cc:23-40. Shadow tree build donner/svg/components/shadow/ShadowTreeSystem.cc:244-313, :339-434; instantiation and external documents donner/svg/renderer/RenderingContext.cc:1575-1613; style of instances donner/svg/components/style/StyleSystem.cc:837-857. donner/svg/tests/SVGUseElement_tests.cc:56-328; resvg third_party/resvg-test-suite/tests/structure/use/*.svg (41 cases; xlink-to-an-external-file.svg compared against a Donner golden, 40 at default settings; registered under StructureUse in donner/svg/renderer/tests/resvg_test_suite.cc); donner/svg/renderer/tests/Renderer_tests.cc:461, :466; donner/svg/renderer/tests/RendererPublicApi_tests.cc:747-1992 (external use). medium M Partial because of feat:svg2/use-style-rule-scoping (document selectors can match across the host boundary), feat:svg2/use-negative-width-height-ignored, and feat:svg2/url-same-document-detection. Children of use that are not allowed by the content model are rendered as ordinary children (not verified by test).
el:switch partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement Renderable container that evaluates requiredExtensions and systemLanguage on its direct children and renders only the first child for which they are true; display and visibility do not affect the choice; style and script processing is not affected. donner/svg/SVGSwitchElement.cc (class SVGSwitchElement), created through donner/svg/parser/SVGParser.cc:778-791. Child selection donner/svg/renderer/RenderingContext.cc:767-788, scoring donner/svg/renderer/RenderingContext.cc:199-224, eligible child types donner/svg/renderer/RenderingContext.cc:160-178. donner/svg/tests/SVGSwitchElement_tests.cc:103-529 (21 tests); resvg third_party/resvg-test-suite/tests/structure/switch/*.svg (13 cases, unskipped, donner/svg/renderer/tests/resvg_test_suite.cc:1234). low S Partial because selection skips children that are not in a fixed list of rendered element types, which excludes foreignObject and unknown elements (feat:svg2/switch-eligible-children), and because an empty requiredExtensions is treated as true (val:requiredExtensions/empty-string).
el:desc partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DescElement Descriptive, never-rendered element whose text is the long description of its parent. When several sibling desc exist, the one whose language best matches the user's preferences is selected; the selected text is exposed to accessibility APIs. donner/svg/SVGDescElement.cc:11-16 (class SVGDescElement, Nonrenderable); text captured at donner/svg/parser/SVGParser.cc:403-429, :439-445. Text is readable through SVGDescElement::textContent() (donner/svg/SVGDescElement.cc, backed by donner/svg/components/DescriptiveTextComponent.h:18). No language selection and no accessibility mapping exist (search for lang in donner/svg finds no consumer). donner/svg/tests/SVGDescElement_tests.cc:16-54 (RecognizedElementType, TextContentAccessible, NestedDescInShape, NotRenderedChangesNoPixels); donner/svg/parser/tests/SVGParser_tests.cc:1029. low M Non-rendering and text retention are implemented and tested. Missing: multilingual selection (feat:svg2/title-desc-language-selection) and any accessible-description computation (feat:svg2/title-desc-accessible-name). Only direct text and CDATA children are captured; markup from other namespaces inside desc is kept in the XML tree but its text is not concatenated.
el:title partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#TitleElement Descriptive, never-rendered element giving a short text alternative for its parent; language-based selection among siblings; interactive user agents should surface it (tooltip, document title for the root). donner/svg/SVGTitleElement.cc:11-17 (class SVGTitleElement, Nonrenderable); text captured at donner/svg/parser/SVGParser.cc:403-429, :431-437. SVGTitleElement::textContent() (donner/svg/SVGTitleElement.cc:19-23). No language selection, no document-title or tooltip API. donner/svg/tests/SVGTitleElement_tests.cc:16-60 (RecognizedElementType, TextContentAccessible, EmptyTextContent, NestedTitleInShape, NotRenderedChangesNoPixels). low M Same shape as el:desc. A host can read the text and build its own tooltip; nothing in the library selects among several title siblings.
el:metadata conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#MetadataElement Descriptive, never-rendered element holding metadata, normally elements from other namespaces; content is not rendered. donner/svg/SVGMetadataElement.cc:11-16 (class SVGMetadataElement, Nonrenderable); direct text captured at donner/svg/parser/SVGParser.cc:447-453. donner/svg/renderer/RenderingContext.cc:426-429 skips it and its subtree; foreign-namespace children stay in the XML tree as unknown elements (donner/svg/parser/SVGParser.cc:886-896). donner/svg/tests/SVGMetadataElement_tests.cc:15-40 (RecognizedElementType, TextContentAccessible, NotRenderedChangesNoPixels); donner/svg/parser/tests/SVGParser_tests.cc:1029. - - Foreign-namespace children each produce one 'unsupported namespace' warning at the top of the foreign subtree (donner/svg/parser/SVGParser.cc:824-837); that is diagnostic noise for ordinary RDF metadata, not a conformance issue.
el:style partial https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElement Never-rendered element whose character data is a style sheet applied to the document; type (default CSS), media (must match for the sheet to apply) and title (alternate style sheets) follow the HTML style element; processing is identical to HTML. donner/svg/SVGStyleElement.cc:10-36 (class SVGStyleElement); type at donner/svg/parser/AttributeParser.cc:1745-1764; content parse donner/svg/parser/SVGParser.cc:215-323. Rules applied in donner/svg/components/style/StyleSystem.cc:666-705; not rendered through the UA rule *\|style { display: none !important } (donner/svg/core/UserAgentStylesheet.h). donner/svg/tests/SVGStyleElement_tests.cc:12-30; donner/svg/parser/tests/SVGParser_tests.cc:142, :291; resvg third_party/resvg-test-suite/tests/structure/style/*.svg (16 cases, non-presentational-attribute.svg runs without pixel comparison, donner/svg/renderer/tests/resvg_test_suite.cc:1169-1180). medium M Partial: media is not parsed or evaluated (attr:media@style), title is ignored (attr:title@style), a child element inside style fails the whole document (feat:svg2/style-child-element-error), and the cascade order between several style elements is reversed by code reading (feat:svg2/style-multiple-sheets-order).
el:script not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElement Never-rendered element holding script; executed only when script execution is enabled and the type is supported. A user agent without the scripting feature must not run it and must not render it. No element class: parsed as SVGUnknownElement in the SVG namespace (donner/svg/parser/SVGParser.cc:793-795, donner/svg/SVGUnknownElement.cc:8-13); search for "script" and ElementType::Script under donner/svg and donner/css finds nothing. Never rendered (donner/svg/renderer/RenderingContext.cc:227-230, :407-409); never executed (donner/svg/core/ProcessingMode.h:13-16 states that no mode runs script). Text content is dropped from the projected tree (donner/svg/parser/SVGParser.cc:865-871) but stays in the source text. donner/svg/parser/tests/SVGParser_tests.cc:720 (BrowserActiveMarkupIsInertInProjectionButRetainedInSource) asserts a script inside foreignObject is an inert unknown element. - - Not applicable as an executing element because Donner implements no script engine in any processing mode, which the CR permits (script execution is a per-mode feature). The required non-scripting behavior, not rendered and not executed, holds; see feat:svg2/script-not-executed.
el:a partial https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElement Renderable container that forms a hyperlink when it has href (or xlink:href); renders its children like a group; nested links are inactive but still rendered; links must be focusable and activatable; attributes target, download, ping, rel, hreflang, type, referrerpolicy as in HTML. donner/svg/SVGAElement.cc:8-34 (class SVGAElement); href/xlink:href at donner/svg/parser/AttributeParser.cc:1999-2004; text children captured for a inside text at donner/svg/parser/SVGParser.cc:354-360. Rendering as a transparent group (default traversal, donner/svg/SVGAElement.cc:11-17); link target stored in donner/svg/components/HyperlinkComponent.h:17 and read only by SVGAElement::href(). No navigation, focus or hit-region consumer exists. donner/svg/tests/SVGAElement_tests.cc:16-64; resvg third_party/resvg-test-suite/tests/structure/a/*.svg (5 cases: on-shape, on-text, on-tspan, inside-text, inside-tspan; unskipped, donner/svg/renderer/tests/resvg_test_suite.cc:1110). low S Rendering is conformant and tested. Link behavior is out of reach for a renderer without navigation, but two things are real gaps: xlink:href wins over href when both are present (attr:href@a), and the HTML link attributes have no typed accessors (retained as generic attributes only).
el:view missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#ViewElement Element with no rendering of its own that defines a named view (viewBox, preserveAspectRatio); when a URL fragment targets it, its attributes override those of the root svg. No element class or ElementType enumerator (donner/svg/AllSVGElements.h:76-137 has no view type; search for ElementType::View and "view" under donner/svg finds nothing). Parsed as an unknown SVG-namespace element (donner/svg/parser/SVGParser.cc:793-795). None: no API selects a view and no fragment identifier is processed (search for svgView and xywh= under donner finds nothing). none low M The element is harmless when present (not rendered). The missing part is the ability for a host to say 'render this document at view X'; see the feat:svg2/fragment-* rows.
el:foreignObject missing https://www.w3.org/TR/2026/CR-SVG2-20261006/embedded.html#ForeignObjectElement Graphics element (x, y, width, height) that embeds non-SVG content rendered by another process; support for rendering the foreign content is optional, but the element participates in switch with requiredExtensions; SVG-namespace descendants are not rendered unless they form a proper nested svg fragment. No element class or ElementType enumerator; parsed as an unknown SVG-namespace element (donner/svg/parser/SVGParser.cc:793-795). Only mentions are the UA sheet selector *:not(foreignObject) > svg (donner/svg/core/UserAgentStylesheet.h) and comments. Not rendered, and its whole subtree is skipped (donner/svg/renderer/RenderingContext.cc:227-230, :407-409); not an eligible switch child (donner/svg/renderer/RenderingContext.cc:160-178). donner/svg/parser/tests/SVGParser_tests.cc:720 (foreignObject is an unknown element). No rendering test. medium XL Rendering arbitrary foreign content is explicitly optional in the CR, so the visible gap is small for a pure SVG renderer: the fallback pattern switch + foreignObject requiredExtensions=... works because the foreignObject child is skipped. What is missing is the element type itself (geometry, the containing block, HTML or text layout inside it). XL only if real HTML rendering is wanted; S to add an element type that reserves geometry and stays empty.

Attributes specific to the elements of this ledger (attribute index)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
attr:crossorigin@script not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementCrossoriginAttribute CORS settings attribute (anonymous, use-credentials, or empty) for fetching an external script; animatable. Retained as a generic attribute on an unknown script element (donner/svg/SVGElement.cc:806-811); never read. None: scripts are never fetched or executed. none - - Meaningful only with script execution and network fetch, neither of which exists.
attr:download@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementDownloadAttribute Any value; marks the link as a download with an optional suggested file name (HTML semantics). Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:href@a divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementHrefAttribute URL of the link target; processed when the link is activated. When both href and xlink:href are present, the un-namespaced href is used and xlink:href is ignored. Animatable. donner/svg/parser/AttributeParser.cc:2003-2004: both href and xlink:href call SVGAElement::setHref, so the attribute parsed last wins. Attributes are iterated in sorted name order (donner/base/xml/components/AttributesComponent.h:120-126, map at :201, ordering donner/base/xml/XMLQualifiedName.h:236-242: name first, then prefix), so xlink:href is always applied after href and overrides it. SVGAElement::href() (donner/svg/SVGAElement.cc:26-34) is the only reader; no navigation. donner/svg/tests/SVGAElement_tests.cc:37 (ParsesHref), :42 (ParsesXlinkHref), :48 (SetHref). No test with both attributes. low S By code reading: <a href="A" xlink:href="B"> reports B, the opposite of the CR rule. use has the correct logic (donner/svg/UseReference.cc:27-30) and a test; a should share it. The value is not resolved against a base URL and is not animated through the typed accessor (animation of href is handled generically, see animation.md).
attr:href@script not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementHrefAttribute URL of an external resource providing the script; fetched as described in the Linking chapter. Retained as a generic attribute on an unknown script element (donner/svg/SVGElement.cc:806-811); never read. None: no fetch is attempted for script (no reader of the attribute; the resource loader is only invoked for images, fonts, CSS imports and use, donner/svg/components/resources/ResourceManagerContext.cc:524-640). none - - Desired outcome for a non-scripting user agent: the external script is never requested.
attr:href@use conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElementHrefAttribute URL of the element or document to clone; href takes precedence over xlink:href; a URL without a fragment refers to the root element of that document; animatable. donner/svg/parser/AttributeParser.cc:1775-1778 stores the attribute and calls RetargetUseFromAttributes (donner/svg/UseReference.cc:23-40), which reads href first and falls back to xlink:href, independent of attribute order. donner/svg/renderer/RenderingContext.cc:1575-1613 resolves the target (same-document #id through donner/svg/graph/Reference.cc:98-107, otherwise an external document through donner/svg/components/resources/ResourceManagerContext.cc:556-618). donner/svg/tests/SVGUseElement_tests.cc:67, :123, :162 (HrefWinsOverXlinkHrefInEitherOrder), :168, :177, :202, :222, :234; resvg third_party/resvg-test-suite/tests/structure/use/href-without-the-xlink-namespace.svg; donner/svg/renderer/tests/RendererPublicApi_tests.cc:1701 (animated). - - An empty href overrides a non-empty xlink:href and removes the reference (tested at :222), which matches 'use the attribute without a namespace'. Same-document detection is syntactic (# prefix only), see feat:svg2/url-same-document-detection.
attr:hreflang@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementHreflangAttribute BCP 47 language tag of the link target (HTML semantics, advisory). Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:media@style missing https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementMediaAttribute Media query list that must match for the style sheet to apply; when absent the sheet applies unconditionally. Not parsed: donner/svg/parser/AttributeParser.cc:1745-1764 handles only type; donner/svg/SVGStyleElement.h:75 documents media as unsupported. No check: IsApplicableStylesheet (donner/svg/components/style/StyleSystem.cc:68-79) tests only the namespace and the UA flag, so a <style media="print"> sheet is applied when rendering to screen. none medium S By code reading a print-only or (max-width: ...)-gated sheet applies unconditionally, which changes rendering for documents that ship print overrides. Needs a media query evaluator for at least media types and viewport width/height, shared with @media (see css_syntax_values.md).
attr:onabort@svg not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementEventHandlerAttributes Window event handler content attribute exposed on svg; its value is script run when the abort event is dispatched (script execution feature). Not interpreted: stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670 and donner/svg/SVGElement.cc:806-811. None: no script engine; the attribute value is never evaluated (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 asserts an onload attribute on a nested svg is retained in the source and inert (same code path; no test names onabort itself). - - Event attributes require the script execution feature, which Donner never enables. Retaining the text without evaluating it is the required behavior when script is disabled.
attr:onerror@svg not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementEventHandlerAttributes Window event handler content attribute exposed on svg; its value is script run when the error event is dispatched (script execution feature). Not interpreted: stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670 and donner/svg/SVGElement.cc:806-811. None: no script engine; the attribute value is never evaluated (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 asserts an onload attribute on a nested svg is retained in the source and inert (same code path; no test names onerror itself). - - Event attributes require the script execution feature, which Donner never enables. Retaining the text without evaluating it is the required behavior when script is disabled.
attr:onresize@svg not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementEventHandlerAttributes Window event handler content attribute exposed on svg; its value is script run when the resize event is dispatched (script execution feature). Not interpreted: stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670 and donner/svg/SVGElement.cc:806-811. None: no script engine; the attribute value is never evaluated (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 asserts an onload attribute on a nested svg is retained in the source and inert (same code path; no test names onresize itself). - - Event attributes require the script execution feature, which Donner never enables. Retaining the text without evaluating it is the required behavior when script is disabled.
attr:onscroll@svg not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementEventHandlerAttributes Window event handler content attribute exposed on svg; its value is script run when the scroll event is dispatched (script execution feature). Not interpreted: stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670 and donner/svg/SVGElement.cc:806-811. None: no script engine; the attribute value is never evaluated (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 asserts an onload attribute on a nested svg is retained in the source and inert (same code path; no test names onscroll itself). - - Event attributes require the script execution feature, which Donner never enables. Retaining the text without evaluating it is the required behavior when script is disabled.
attr:onunload@svg not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementEventHandlerAttributes Window event handler content attribute exposed on svg; its value is script run when the unload event is dispatched (script execution feature). Not interpreted: stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670 and donner/svg/SVGElement.cc:806-811. None: no script engine; the attribute value is never evaluated (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 asserts an onload attribute on a nested svg is retained in the source and inert (same code path; no test names onunload itself). - - Event attributes require the script execution feature, which Donner never enables. Retaining the text without evaluating it is the required behavior when script is disabled.
attr:ping@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementPingAttribute Space-separated URLs to notify when the link is followed (HTML semantics). Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:playbackorder@svg missing https://w3c.github.io/svgwg/specs/animations/#SVGElementPlaybackorderAttribute forwardonly \| all, initial all: whether seeking backwards in the document timeline is allowed (SVG Animations Editor's Draft; the CR attribute index lists it for svg). Not parsed: no occurrence of playbackorder under donner (case-insensitive search). Stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670. None: SVGDocument time control accepts any time, forwards or backwards (donner/svg/SVGDocument.h:466-474). none low S Editor's Draft only. With the initial value all the current behavior is what the draft describes; only forwardonly content would differ, and the draft says a user agent 'should' disable backward seeking.
attr:refX@symbol partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolElementRefXAttribute <length> \| left \| center \| right, no initial value; x of the reference point, in the coordinate system of the symbol content after viewBox and preserveAspectRatio, placed at the symbol's x position; animatable. donner/svg/parser/AttributeParser.cc:1885-1889 through ParseSymbolRefAttribute (donner/svg/parser/AttributeParser.cc:128-144): keywords map to 0%, 50%, 100% (donner/svg/parser/AttributeParser.cc:1793-1812), otherwise a length with optional unit, percentages accepted; invalid values warn and keep the previous value. donner/svg/components/layout/LayoutSystem.cc:438-452 (only on the viewBox path; donner/svg/components/layout/LayoutSystem.cc:426-429 returns first when there is no viewBox). Animation target at donner/svg/renderer/AnimationAttributes.cc:836. donner/svg/tests/SVGSymbolElement_tests.cc:91, :104, :114 (parse); :421 (CustomReferencePoint), :463 (KeywordCenterReferencePoint) render with a viewBox at origin 0. low S Grammar is accepted in full (plus percentages, which the CR grammar does not list). The consumer is wrong in three cases, see feat:svg2/symbol-refxy-placement and feat:svg2/symbol-refxy-unspecified-vs-zero. Keywords are matched case-sensitively and surrounding whitespace is rejected, unlike the CSS value parsing the CR prescribes.
attr:refY@symbol partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolElementRefYAttribute <length> \| top \| center \| bottom, no initial value; y of the reference point; same rules as refX; animatable. donner/svg/parser/AttributeParser.cc:1890-1893 through ParseSymbolRefAttribute (donner/svg/parser/AttributeParser.cc:128-144, keywords donner/svg/parser/AttributeParser.cc:1793-1812). donner/svg/components/layout/LayoutSystem.cc:438-452; animation target at donner/svg/renderer/AnimationAttributes.cc:836. donner/svg/tests/SVGSymbolElement_tests.cc:91, :104, :114, :421, :463. low S Same findings as attr:refX@symbol.
attr:referrerpolicy@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementReferrerpolicyAttribute Referrer policy string applied when following the link. Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:rel@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementRelAttribute Space-separated link relation keywords (HTML semantics). Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:target@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute _self \| _parent \| _top \| _blank \| <XML-Name>, initial _self: browsing context in which the link opens; animatable. Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute. Keyword rows are listed under the value rows.
attr:timelinebegin@svg missing https://w3c.github.io/svgwg/specs/animations/#SVGElementTimelinebeginAttribute loadend \| loadbegin, initial loadend: whether the document timeline starts when the load event fires or when the root start tag is parsed (SVG Animations Editor's Draft). Not parsed: no occurrence of timelinebegin under donner. Stored as a generic attribute through donner/svg/parser/AttributeParser.cc:1670. None: the document clock is driven by the host (donner/svg/SVGDocument.h:466-474); parsing is synchronous, so load begin and load end coincide. none low S Editor's Draft only. With a synchronous whole-document parse the two values are indistinguishable, so the practical impact is nil until progressive loading exists.
attr:title@style missing https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementTitleAttribute Title of the style sheet, used to expose and select alternate style sheet sets (HTML semantics); any value. Not parsed: donner/svg/parser/AttributeParser.cc:1745-1764 handles only type; donner/svg/SVGStyleElement.h:76 documents title as unsupported. No style sheet set selection: every CSS style element applies (donner/svg/components/style/StyleSystem.cc:689-704). none low S Under the HTML rules a titled sheet belongs to a style sheet set and only the preferred set (the first title) is enabled by default. Donner applies all titled sheets, so a document with two differently titled style elements gets both. Rare in SVG content.
attr:transform@svg conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElement The transform presentation attribute is allowed on svg (new in SVG 2) and applies as if the element had a parent with that transform, outside the viewBox mapping; animatable. Common presentation-attribute path: donner/svg/parser/AttributeParser.cc:1670 to donner/svg/SVGElement.cc:782-799 (trySetPresentationAttribute, transform branch donner/svg/SVGElement.cc:669-682). donner/svg/components/layout/LayoutSystem.cc:559-574: content-from-parent is the viewBox mapping followed by the element transform, so the transform sits outside the viewport mapping, for root and nested svg alike (donner/svg/components/layout/LayoutSystem.cc:488-557 includes the root in the chain). none found (search for an svg start tag carrying transform= in donner/svg/**/*_tests.cc finds nothing; resvg structure/transform cases put the transform on shapes and groups). low S By code reading only. transform-origin for a non-root svg is 0 0 per the UA sheet and for the root follows the CSS default; that part is audited in transforms_coordinates.md.
attr:type@a not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTypeAttribute MIME type hint for the link target (HTML semantics, advisory). Not parsed into typed state: falls through donner/svg/parser/AttributeParser.cc:1999-2004 to the common path and is stored as a generic attribute (donner/svg/SVGElement.cc:806-811). Search for the attribute name under donner/svg finds no reader. None. Donner has no link activation, navigation or download path (donner/svg/components/HyperlinkComponent.h:10-13 documents the link as informational). none - - Link traversal belongs to the interaction feature, which a static renderer does not provide. The value is preserved for a host application to read with getAttribute.
attr:type@script not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementTypeAttribute Media type of the script language, default application/ecmascript; a script in an unsupported language must not be executed. Retained as a generic attribute on an unknown script element (donner/svg/SVGElement.cc:806-811); never read. None: no script language is supported, so no script runs regardless of type. none - - The rule 'unsupported language must not execute' is satisfied trivially.
attr:type@style conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementTypeAttribute Style sheet language as a media type; absent means CSS; obsolete. HTML semantics: the sheet is processed only when the value is empty or an ASCII case-insensitive match for text/css. donner/svg/parser/AttributeParser.cc:1749-1760 stores the value and warns when it is neither empty nor text/css (case-insensitive). donner/svg/parser/SVGParser.cc:219 parses content only when isCssType() (donner/svg/components/StylesheetComponent.h:171); attributes are parsed before content (donner/svg/parser/SVGParser.cc:621-627). donner/svg/tests/SVGStyleElement_tests.cc:12 (DefaultsToCssType), :19 (SetTypeControlsCssParsing), :30; resvg third_party/resvg-test-suite/tests/structure/style/invalid-type.svg (unskipped). - - A value with media type parameters (text/css; charset=utf-8) is not treated as CSS, which matches the HTML rule.

Global and cross-element attributes (attribute index)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
attr:autofocus@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementAutofocusAttribute Boolean attribute asking that a focusable element be focused when connected to the document; no effect if the element is not focusable. Retained as a generic attribute (donner/svg/SVGElement.cc:806-811); no typed parsing. None: there is no focus model (search for autofocus and tabindex under donner finds no reader; donner/svg/DonnerController.h exposes hit testing only). none - - Focus belongs to the interaction feature. The attribute stays available to hosts and to attribute selectors.
attr:class@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view partial https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#ClassAttribute Set of space-separated tokens assigning class names used by selectors; HTML semantics; animatable. donner/svg/parser/AttributeParser.cc:63-66, :390-391 route class to SVGElement::setClassName (donner/svg/SVGElement.cc:574-593), which stores the raw string in donner/svg/components/ClassComponent.h:11 and invalidates styles. donner/css/selectors/ClassSelector.h:55-56 splits on ASCII whitespace and compares tokens; shadow instances read the class of their source element (donner/svg/components/style/StyleSystem.cc:436-442). donner/svg/tests/SVGElement_tests.cc:531 (ClassName), :545; donner/svg/tests/SVGStyleCascade_tests.cc:42 (CSSClassSelector), :239; resvg third_party/resvg-test-suite/tests/structure/style/class-selector.svg, unresolved-class-selector.svg. low S Static behavior is conformant and tested on every element type (the attribute is handled before element dispatch). Partial only because the index marks class animatable and no animation path for it was found: the attribute name does not occur in donner/svg/components/animation/ or donner/svg/renderer/Animation*.cc (search for the quoted name). To be confirmed against animation.md.
attr:id@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#IDAttribute Reflects the element ID; must be unique, non-empty and without whitespace, but user agents should process id values regardless of XML validity; not animatable. donner/svg/parser/AttributeParser.cc:63-66, :390-391 to SVGElement::setId (donner/svg/SVGElement.cc:551-564): an empty value registers no id; any other string is stored verbatim in donner/svg/components/IdComponent.h. Lookup through donner/svg/components/AttachedIdLookup.cc (map lookup, then document-order search for an attached element) used by donner/svg/graph/Reference.cc:21-28; #id selectors read it at donner/svg/components/style/StyleSystem.cc:428-434. donner/svg/tests/SVGElement_tests.cc:501 (Id); donner/svg/tests/SVGStyleCascade_tests.cc:59; resvg third_party/resvg-test-suite/tests/structure/use/duplicated-IDs.svg, third_party/resvg-test-suite/tests/structure/style/iD-selector.svg; third_party/resvg-test-suite/tests/structure/svg/invalid-id-attribute-1.svg and -2.svg render without pixel comparison (donner/svg/renderer/tests/resvg_test_suite.cc:1205-1206). - - No XML Name validation is applied, as the CR recommends. Matching is case-sensitive.
attr:lang@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#LangAttribute BCP 47 language tag, or the empty string for unknown; gives the language of the element content, inherited by descendants; not animatable. Retained as a generic attribute (donner/svg/SVGElement.cc:806-811); no typed parsing or validation. None: search for the quoted attribute name under donner/svg and donner/css finds only the pseudo-class name list at donner/css/Selector.cc:48; :lang() is not implemented (donner/css/selectors/PseudoClassSelector.cc:27-45 lists structural pseudo-classes only), text shaping does not read it, and title/desc selection does not exist. none low M Parse half exists (attribute preserved, matchable with [lang=...]). No consumer: language-dependent shaping, :lang(), and descriptive text selection all ignore it. See feat:svg2/lang-xml-lang-precedence.
attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#1 partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute Elements svg, symbol: <align> <meetOrSlice>?, initial xMidYMid meet; ignored unless viewBox is present on the same element; animatable. Parsed with CSS value parsing (surrounding whitespace allowed); a value that fails to parse is treated as the initial value. donner/svg/parser/AttributeParser.cc:287-294 to donner/svg/parser/PreserveAspectRatioParser.cc:12-73: ten align keywords and two meetOrSlice keywords, exact case; an empty or leading-whitespace value, trailing whitespace after meetOrSlice, or a third token is an error and leaves the default. donner/svg/core/PreserveAspectRatio.cc:8-26 (scale and alignment), reached from donner/svg/components/layout/LayoutSystem.cc:431-436 (use instances) and donner/svg/components/layout/LayoutSystem.cc:651-657 (nested svg); root handled in the document-size path. Animation at donner/svg/renderer/AnimationAttributes.cc:1004. donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:13-98; donner/svg/tests/SVGSVGElement_tests.cc:348-459; donner/svg/tests/SVGSymbolElement_tests.cc:44; resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=*.svg (7 cases, 4 thresholded for edge anti-aliasing), third_party/resvg-test-suite/tests/structure/symbol/with-viewBox.svg. low S Semantics are conformant and tested. Partial for syntax strictness: xMidYMid (leading space) and none slice (trailing space) are rejected (asserted by PreserveAspectRatioParser_tests.cc:18), while the CR's CSS value parsing strips surrounding whitespace and allows comments; CSS keywords are also ASCII case-insensitive under that parsing, which no browser applies here either. Only the whitespace part matters in practice.
attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#2 partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute Elements feImage, image, marker, pattern: same grammar; for image it fits the referenced image into the reference rectangle; for marker and pattern it applies only with a viewBox. Same parser: donner/svg/parser/AttributeParser.cc:1074 (feImage), donner/svg/parser/AttributeParser.cc:1468 (image), marker and pattern through donner/svg/parser/AttributeParser.cc:287-294. Consumers are images, markers, patterns and filters (paint_servers_markers_images.md, filters_generators_lighting.md); not audited here. See paint_servers_markers_images.md and filters_generators_lighting.md; parser tests as in #1. low S Listed for completeness of the index row. The only finding of this ledger that carries over is the shared parser's whitespace strictness.
attr:preserveAspectRatio@feImage, image, marker, pattern, svg, symbol, view#3 missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#ViewElement Element view: the value overrides the root svg value when the view is the URL target. Not parsed as a typed attribute: view is an unknown element (el:view), the value is retained as a generic attribute. None. none low M Part of the missing view element.
attr:requiredExtensions@a, animate, animateMotion, animateTransform, circle, clipPath, ellipse, foreignObject, g, image, line, mask, path, polygon, polyline, rect, set, svg, switch, text, textPath, tspan, use partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#RequiredExtensionsAttribute Set of space-separated URL tokens naming required extensions; true when all are supported; absent is true; an empty string evaluates to false; not animatable. donner/svg/parser/AttributeParser.cc:376-399 stores the raw string in ConditionalProcessingComponent for any element (donner/svg/components/ConditionalProcessingComponent.cc:11-42); DOM writes go through donner/svg/SVGElement.cc:766-773. donner/svg/components/ConditionalProcessingComponent.cc:96-109: any non-blank value is false (no extension is supported); an empty or whitespace-only value is treated as true. Applied at donner/svg/renderer/RenderingContext.cc:415-418 (any element) and donner/svg/renderer/RenderingContext.cc:210-213 (switch children). donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:117 (NonEmpty false), :123 (EmptyRequiredExtensionsEvaluatesToTrue, asserts the divergent case); donner/svg/tests/SVGSwitchElement_tests.cc:120, :328; resvg third_party/resvg-test-suite/tests/structure/switch/with-attributes.svg. low S Non-empty lists are conformant (Donner supports no extension, so the answer is always false). The empty-string case is the opposite of the CR, see val:requiredExtensions/empty-string. The element list of this index row (rendered elements only) is not enforced: the attribute is honored on any element type that reaches the render traversal.
attr:style@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleAttribute CSS declaration list applied to the element with the specificity rules of the HTML style attribute; not animatable. donner/svg/parser/AttributeParser.cc:63-66, :390-391 to SVGElement::setStyle (donner/svg/SVGElement.cc:595-609), which parses the declaration list into the element's StyleComponent. donner/svg/components/style/StyleSystem.cc:839-846 starts the cascade from the element's own declarations; stylesheet rules are merged by specificity afterwards (donner/svg/components/style/StyleSystem.cc:666-705). donner/svg/tests/SVGElement_tests.cc:554 (Style), :562; donner/svg/tests/SVGStyleCascade_tests.cc:23 (InlineStyleOverridesAttribute); resvg third_party/resvg-test-suite/tests/structure/style-attribute/comments.svg, simple-case.svg, transform.svg (unskipped), non-presentational-attribute.svg (no pixel comparison, donner/svg/renderer/tests/resvg_test_suite.cc:1186-1194). - - Declaration-level grammar, !important, and precedence against stylesheet rules are audited in selectors_cascade.md.
attr:systemLanguage@a, animate, animateMotion, animateTransform, circle, clipPath, ellipse, foreignObject, g, image, line, mask, path, polygon, polyline, rect, set, svg, switch, text, textPath, tspan, use conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SystemLanguageAttribute Set of comma-separated BCP 47 tags; evaluation: drop empty tokens, false if none remain, true if any tag equals a user language (ASCII case-insensitive) or a user language is a prefix of the tag followed by -; absent is true; not animatable. donner/svg/parser/AttributeParser.cc:376-399 stores the raw string (donner/svg/components/ConditionalProcessingComponent.cc:19-21). donner/svg/components/ConditionalProcessingComponent.cc:60-83 (split on commas, trim, skip empty, exact or prefix-plus-hyphen match, case-insensitive), donner/svg/components/ConditionalProcessingComponent.cc:111-124; user languages from SVGDocument::setUserLanguages (donner/svg/SVGDocument.h:592, default en at donner/svg/components/SVGDocumentContext.h:101); applied at donner/svg/renderer/RenderingContext.cc:415-418, donner/svg/renderer/RenderingContext.cc:215-223 and for text content at donner/svg/components/text/TextSystem.cc:343-347. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:38-87, :133; donner/svg/tests/SVGSwitchElement_tests.cc:203, :426, :453; resvg third_party/resvg-test-suite/tests/structure/systemLanguage/*.svg (10 cases) and third_party/resvg-test-suite/tests/structure/switch/systemLanguage*.svg (6 cases), all unskipped. - - Matches the normative algorithm. The CR's own informative example (user zh-Hans-CN matching tag zh-Hans) describes the reverse prefix direction; Donner follows the algorithm, see feat:svg2/conditional-systemlanguage-prefix-direction.
attr:tabindex@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElementTabindexAttribute Valid integer controlling focusability and sequential focus order. Retained as a generic attribute (donner/svg/SVGElement.cc:806-811). None: no focus model (see autofocus). none - - Interaction feature; not provided by a static renderer.
attr:viewBox@marker, pattern, svg, symbol, view#1 partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Elements svg, symbol: four numbers min-x, min-y, width, height separated by whitespace and/or commas; negative width or height is an error and the attribute is ignored; zero width or height disables rendering of the element; animatable. donner/svg/parser/AttributeParser.cc:280-286 to donner/svg/parser/ViewBoxParser.cc:16-37: four numbers with optional comma separators; negative size is an error (:22); anything after the fourth number, including whitespace, is an error (:27-33); leading whitespace fails in the number parser. On error the attribute is ignored with a warning. donner/svg/components/layout/LayoutSystem.cc:288-327 (inherited viewBox for percentages), donner/svg/components/layout/LayoutSystem.cc:431-436, donner/svg/components/layout/LayoutSystem.cc:651-657, donner/svg/core/PreserveAspectRatio.cc:8-26. Animation at donner/svg/renderer/AnimationAttributes.cc:997. donner/svg/parser/tests/ViewBoxParser_tests.cc:11-51; donner/svg/tests/SVGSVGElement_tests.cc:271-333; resvg third_party/resvg-test-suite/tests/structure/svg/viewBox-not-at-zero-pos.svg, proportional-viewBox.svg, nested-svg-with-viewBox.svg and others; third_party/resvg-test-suite/tests/structure/symbol/with-viewBox.svg. low S Partial for two reasons: surrounding whitespace is rejected (ViewBoxParser_tests.cc:35 asserts 0 0 1 1 and 0 0 1 1 fail), which silently drops the viewBox of hand-edited files, and a zero-size viewBox has no explicit handling (val:viewBox/zero-size).
attr:viewBox@marker, pattern, svg, symbol, view#2 partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Elements marker, pattern: same grammar; these elements do not establish a viewport. Same parser through donner/svg/parser/AttributeParser.cc:280-286. Consumers are markers and patterns (paint_servers_markers_images.md); not audited here. See paint_servers_markers_images.md; parser tests as in #1. low S Only the shared parser strictness carries over.
attr:viewBox@marker, pattern, svg, symbol, view#3 missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#ViewElement Element view: the value overrides the root svg viewBox when the view is the URL target. Not parsed as a typed attribute: view is an unknown element (el:view). None. none low M Part of the missing view element.
attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#1 conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute Element use: deprecated XLink form of href; used only when no un-namespaced href is present. donner/svg/parser/AttributeParser.cc:1775-1778, donner/svg/UseReference.cc:27-30. donner/svg/renderer/RenderingContext.cc:1575-1613. donner/svg/tests/SVGUseElement_tests.cc:123 (XlinkHref), :162, :168, :177; most resvg third_party/resvg-test-suite/tests/structure/use/*.svg cases use xlink:href. - - The attribute is recognized by its literal xlink prefix, not by namespace: the same XLink namespace bound to another prefix is retained with a warning and not interpreted (donner/svg/parser/SVGParser.cc:571-591, test donner/svg/parser/tests/SVGParser_tests.cc:340), and an xlink prefix bound to a different URI would be interpreted. Namespace-correct handling is covered in xml_data_formats.md.
attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#2 divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute Elements a, image, linearGradient, pattern, radialGradient, textPath: when both href and xlink:href are present, the un-namespaced href is used and xlink:href is ignored. Each handler calls the same setter for both names: donner/svg/parser/AttributeParser.cc:2003 (a), :1466 (image), :452 (gradients), :1569 (pattern), :2161 (textPath). Attributes are visited in sorted order with href before xlink:href (donner/base/xml/components/AttributesComponent.h:120-126, donner/base/xml/XMLQualifiedName.h:236-242), so xlink:href is applied last. The setters overwrite a single stored value (donner/svg/SVGAElement.cc:20-24, donner/svg/SVGImageElement.cc:31-36, donner/svg/SVGGradientElement.cc:42-49, donner/svg/SVGPatternElement.cc:169-177, donner/svg/SVGTextPathElement.cc:17-22). none for the both-present case on these elements (the only precedence test is for use). low S By code reading, a file that carries both attributes for compatibility with different values resolves to the legacy xlink:href on these elements. Files that duplicate the same value (the common compatibility pattern) are unaffected. The same pattern exists on filter and feImage (donner/svg/parser/AttributeParser.cc:561, :1069). Fix once by sharing the use precedence helper.
attr:xlink:href@a, image, linearGradient, pattern, radialGradient, script, textPath, use#3 not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkHrefAttribute Element script: URL of the external script. Retained as a generic attribute on an unknown script element (donner/svg/SVGElement.cc:806-811); never read. None: scripts are never fetched. none - - See attr:href@script.
attr:xlink:title@a, image, linearGradient, pattern, radialGradient, script, textPath, use not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#XLinkTitleAttribute Deprecated human-readable description of a link or resource; any value; new content should use a title child. Retained in the attribute store with its prefix (donner/svg/SVGElement.cc:806-811, reached through donner/svg/parser/AttributeParser.cc:335-345); not interpreted. None; the CR assigns no rendering behavior to it. none - - Advisory text for interactive or assistive user agents. Hosts can read it with getAttribute.
attr:xml:space@a, animate, animateMotion, animateTransform, circle, clipPath, defs, desc, ellipse, feBlend, feColorMatrix, feComponentTransfer, feComposite, feConvolveMatrix, feDiffuseLighting, feDisplacementMap, feDistantLight, feDropShadow, feFlood, feFuncA, feFuncB, feFuncG, feFuncR, feGaussianBlur, feImage, feMerge, feMergeNode, feMorphology, feOffset, fePointLight, feSpecularLighting, feSpotLight, feTile, feTurbulence, filter, foreignObject, g, image, line, linearGradient, marker, mask, metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, script, set, stop, style, svg, switch, symbol, text, textPath, title, tspan, use, view conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#XMLSpaceAttribute Deprecated; default or preserve; the UA style sheet maps xml:space="preserve" to white-space-collapse: preserve-spaces, so an author white-space declaration overrides it; inherited through the XML tree. Not passed to the SVG attribute parser (donner/svg/parser/SVGParser.cc:571-594 skips prefixed non-SVG attributes); it stays in the shared XML attribute store. donner/svg/components/text/TextSystem.cc:42-58 walks up to the nearest ancestor carrying xml:space and tests for the exact value preserve; :596-598 applies it only when the element's white-space property is not specified. donner/svg/components/text/tests/TextSystem_tests.cc:1205 (XmlSpacePreserveKeepsWhitespaceAndInheritance), :1576, :1598, :1619; donner/svg/parser/tests/SVGParser_tests.cc:396; resvg text/text/xml-space.svg compares with default settings; the separate text/tref/xml-space.svg row is deprecated in SVG 2. - - Implemented procedurally instead of as the UA rule *[xml\|space=preserve]; the precedence against an author white-space matches the UA-rule model. Exact whitespace collapsing results are audited in text_font_properties.md.

Values of enumerated attributes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
val:preserveAspectRatio/none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign none: no uniform scaling; the viewBox is stretched to fill the viewport exactly; meetOrSlice is ignored. donner/svg/parser/PreserveAspectRatioParser.cc:17-18. donner/svg/core/PreserveAspectRatio.cc:8-26: per-axis scale kept when align is None. donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:32 (None); donner/svg/tests/SVGSVGElement_tests.cc:377, :459; resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=none.svg (threshold 0.13 / 1000 px for viewport edge anti-aliasing, donner/svg/renderer/tests/resvg_test_suite.cc:1214). - -
val:preserveAspectRatio/xMinYMin conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMin: uniform scaling with the viewBox left and top edges aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-20. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=xMinYMin.svg (threshold 0.14, donner/svg/renderer/tests/resvg_test_suite.cc:1220) and =xMinYMin-slice.svg; donner/svg/tests/SVGSVGElement_tests.cc:367. - -
val:preserveAspectRatio/xMidYMin conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMin: uniform scaling with the viewBox horizontally centered, top aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:21-22. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); donner/svg/tests/SVGSVGElement_tests.cc:417 (parse and DOM value only). low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMaxYMin conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMin: uniform scaling with the viewBox right and top edges aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:23-24. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); parser test only. low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMinYMid conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMid: uniform scaling with the viewBox left aligned, vertically centered in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:25-26. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); donner/svg/tests/SVGSVGElement_tests.cc:427 (parse and DOM value only). low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMidYMid conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMid: uniform scaling with the viewBox centered on both axes (the initial value) in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:27-28. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=xMidYMid.svg (threshold 0.13 / 300 px) and =xMidYMid-slice.svg; donner/svg/tests/SVGSVGElement_tests.cc:348, :357. - -
val:preserveAspectRatio/xMaxYMid conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMid: uniform scaling with the viewBox right aligned, vertically centered in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:29-30. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); donner/svg/tests/SVGSVGElement_tests.cc:407 (parse and DOM value only). low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMinYMax conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMax: uniform scaling with the viewBox left and bottom edges aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:31-32. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); donner/svg/tests/SVGSVGElement_tests.cc:397 (parse and DOM value only). low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMidYMax conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMax: uniform scaling with the viewBox horizontally centered, bottom aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:33-34. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); donner/svg/tests/SVGSVGElement_tests.cc:437 (parse and DOM value only). low S Parsing is tested; no test renders this alignment. The alignment math is one shared formula that the rendered cases exercise with multipliers 0, 0.5 and 1 on both axes, so risk is low. Counted as untested because no test asserts the rendered result for this keyword.
val:preserveAspectRatio/xMaxYMax conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMax: uniform scaling with the viewBox right and bottom edges aligned in the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:35-36. donner/svg/core/PreserveAspectRatio.cc:8-26 with the alignment multipliers at donner/svg/core/PreserveAspectRatio.h:64-70 (x) and :80-86 (y). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:41 (AlignOnly, parse of every align keyword); resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=xMaxYMax.svg (threshold 0.13 / 300 px) and =xMaxYMax-slice.svg; donner/svg/tests/SVGSVGElement_tests.cc:387. - -
val:preserveAspectRatio/meet conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute meet (default): uniform scale chosen so the whole viewBox is visible inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:53-54; default at donner/svg/core/PreserveAspectRatio.h (Default() is xMidYMid meet). donner/svg/core/PreserveAspectRatio.cc:8-26: minimum of the two axis scales. donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:32-41; donner/svg/tests/SVGSVGElement_tests.cc:357; resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=xMidYMid.svg, =xMinYMin.svg, =xMaxYMax.svg. - -
val:preserveAspectRatio/slice conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute slice: uniform scale chosen so the viewport is entirely covered by the viewBox; overflow is clipped by the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:55-56. donner/svg/core/PreserveAspectRatio.cc:8-26: maximum of the two axis scales; clipping through the viewport clip rect (donner/svg/renderer/RenderingContext.cc:462-468). donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:32-41; donner/svg/tests/SVGSVGElement_tests.cc:367; resvg third_party/resvg-test-suite/tests/structure/svg/preserveAspectRatio=xMinYMin-slice.svg, =xMidYMid-slice.svg, =xMaxYMax-slice.svg (unskipped, no threshold entry). - -
val:viewBox/four-numbers-comma-or-whitespace partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Four <number> values separated by whitespace and/or a single comma; parsed with CSS value parsing, so whitespace around the value is allowed. donner/svg/parser/ViewBoxParser.cc:16-20 (four numbers, skipCommaWhitespace between them, donner/base/parser/details/ParserBase.cc:86-101); donner/svg/parser/ViewBoxParser.cc:27-33 rejects any trailing character. donner/svg/parser/AttributeParser.cc:280-286 ignores the attribute on error (the element behaves as if it had no viewBox). donner/svg/parser/tests/ViewBoxParser_tests.cc:16 (Valid), :25 (Commas), :35 (ExtraData asserts that a leading or trailing space is an error). low S Separators are conformant. Leading and trailing whitespace make the whole attribute invalid, so viewBox=" 0 0 100 100" loses its viewBox; browsers accept it and the CR's attribute parsing rule (types 4.2) strips it.
val:viewBox/negative-size conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute A negative width or height is an error: the attribute is treated as not specified. donner/svg/parser/ViewBoxParser.cc:22-26. donner/svg/parser/AttributeParser.cc:281-283 adds a warning and leaves the viewBox unset. donner/svg/parser/tests/ViewBoxParser_tests.cc:42 (InvalidSize). - -
val:viewBox/zero-size partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute A width or height of zero disables rendering of the element. donner/svg/parser/ViewBoxParser.cc:22 accepts zero (test comment: 'valid, but should be handled by caller'). No guard found: donner/svg/core/PreserveAspectRatio.cc:14 divides the viewport size by the viewBox size, giving an infinite or NaN scale; searches for a zero or isEmpty check on viewBox in donner/svg/components/layout/LayoutSystem.cc find none. donner/svg/parser/tests/ViewBoxParser_tests.cc:21-23 (parse only). No rendering test. low S Unverified by execution: with an infinite scale the content most likely does not draw, which would match the rule by accident, but non-finite transforms also reach bounds and clip code. Needs an explicit 'zero-size viewBox disables rendering' branch and a test.
val:refX/<length> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes A length (unitless allowed) giving the reference x in symbol content coordinates. donner/svg/parser/AttributeParser.cc:128-144, :90-112 (length with optional unit; percentages also accepted). donner/svg/components/layout/LayoutSystem.cc:438-452. donner/svg/tests/SVGSymbolElement_tests.cc:91, :104, :421. low S See feat:svg2/symbol-refxy-placement: applied in the wrong coordinate step when the viewBox origin is not 0, and not applied without a viewBox.
val:refX/left partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword left: resolves to 0% of the symbol width, as for marker. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 0% length. donner/svg/components/layout/LayoutSystem.cc:444-445 resolves the percentage against the viewBox width only (the viewBox min-x is not added). donner/svg/tests/SVGSymbolElement_tests.cc:114 (ReferencePointKeywords). low S Correct only when the viewBox origin is 0; see feat:svg2/symbol-refxy-placement.
val:refX/center partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword center: resolves to 50% of the symbol width, as for marker. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 50% length. donner/svg/components/layout/LayoutSystem.cc:444-445 resolves the percentage against the viewBox width only (the viewBox min-x is not added). donner/svg/tests/SVGSymbolElement_tests.cc:114 (ReferencePointKeywords); :463 (KeywordCenterReferencePoint, renders with a viewBox at origin 0). low S Correct only when the viewBox origin is 0; see feat:svg2/symbol-refxy-placement.
val:refX/right partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword right: resolves to 100% of the symbol width, as for marker. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 100% length. donner/svg/components/layout/LayoutSystem.cc:444-445 resolves the percentage against the viewBox width only (the viewBox min-x is not added). donner/svg/tests/SVGSymbolElement_tests.cc:114 (ReferencePointKeywords). low S Correct only when the viewBox origin is 0; see feat:svg2/symbol-refxy-placement.
val:refY/<length> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes A length (unitless allowed) giving the reference y in symbol content coordinates. donner/svg/parser/AttributeParser.cc:128-144, :90-112. donner/svg/components/layout/LayoutSystem.cc:438-452. donner/svg/tests/SVGSymbolElement_tests.cc:91, :104, :421. low S Same as val:refX/<length>.
val:refY/top partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword top: resolves to 0% of the symbol height. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 0% length. donner/svg/components/layout/LayoutSystem.cc:446-447 resolves the percentage against the viewBox height only. donner/svg/tests/SVGSymbolElement_tests.cc:114. low S Correct only when the viewBox origin is 0.
val:refY/center partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword center: resolves to 50% of the symbol height. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 50% length. donner/svg/components/layout/LayoutSystem.cc:446-447 resolves the percentage against the viewBox height only. donner/svg/tests/SVGSymbolElement_tests.cc:114; :463. low S Correct only when the viewBox origin is 0.
val:refY/bottom partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes Keyword bottom: resolves to 100% of the symbol height. donner/svg/parser/AttributeParser.cc:1793-1812 maps the keyword to a 100% length. donner/svg/components/layout/LayoutSystem.cc:446-447 resolves the percentage against the viewBox height only. donner/svg/tests/SVGSymbolElement_tests.cc:114. low S Correct only when the viewBox origin is 0.
val:xml:space/default conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#XMLSpaceAttribute default: white space is collapsed under the normal rules; resets an inherited preserve. Read from the XML attribute store (donner/svg/components/text/TextSystem.cc:45-49). donner/svg/components/text/TextSystem.cc:49 returns false for any value other than preserve on the nearest ancestor carrying the attribute, so default on a descendant overrides preserve on an ancestor. donner/svg/components/text/tests/TextSystem_tests.cc:1619 (WhitespacePreserveRootDefaultTspan), :1205. - -
val:xml:space/preserve conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#XMLSpaceAttribute preserve: spaces are preserved (UA rule white-space-collapse: preserve-spaces). donner/svg/components/text/TextSystem.cc:45-49 (exact, case-sensitive match). donner/svg/components/text/TextSystem.cc:591-601 (legacy preserve mode passed to whitespace collapsing). donner/svg/components/text/tests/TextSystem_tests.cc:1205, :1576 (WhitespacePreserveLeadingSpaces), :1598. - - The exact collapsing output (newlines to spaces, tabs) is audited in text_font_properties.md.
val:target/_self not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute _self: replace the current SVG image in the same browsing context (initial value). Not parsed; the raw attribute string is retained (donner/svg/SVGElement.cc:806-811). None: no browsing contexts or navigation. none - - Requires link traversal in a browsing context.
val:target/_parent not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute _parent: replace the parent browsing context. Not parsed; the raw attribute string is retained (donner/svg/SVGElement.cc:806-811). None: no browsing contexts or navigation. none - - Requires link traversal in a browsing context.
val:target/_top not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute _top: replace the top-level browsing context. Not parsed; the raw attribute string is retained (donner/svg/SVGElement.cc:806-811). None: no browsing contexts or navigation. none - - Requires link traversal in a browsing context.
val:target/_blank not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute _blank: open a new unnamed browsing context. Not parsed; the raw attribute string is retained (donner/svg/SVGElement.cc:806-811). None: no browsing contexts or navigation. none - - Requires link traversal in a browsing context.
val:target/<XML-Name> not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#AElementTargetAttribute <XML-Name>: open in the named browsing context, creating it if needed. Not parsed; the raw attribute string is retained (donner/svg/SVGElement.cc:806-811). None: no browsing contexts or navigation. none - - Requires link traversal in a browsing context.
val:crossorigin/anonymous not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementCrossoriginAttribute anonymous: CORS request without credentials for the external script. Not parsed. None: scripts are never fetched. none - - No script fetching.
val:crossorigin/use-credentials not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementCrossoriginAttribute use-credentials: CORS request with credentials for the external script. Not parsed. None: scripts are never fetched. none - - No script fetching.
val:playbackorder/all conformant-untested https://w3c.github.io/svgwg/specs/animations/#SVGElementPlaybackorderAttribute all (initial): the document may be seeked in both directions. Attribute not parsed. donner/svg/SVGDocument.h:466-474: any finite time is accepted, including an earlier one, which is the all behavior. none for the attribute; time seeking itself is covered in animation.md. low S Behavior equals the initial value because the attribute is ignored.
val:playbackorder/forwardonly missing https://w3c.github.io/svgwg/specs/animations/#SVGElementPlaybackorderAttribute forwardonly: backward seeking should not be offered. Attribute not parsed. None: backward seeking stays available. none low S Editor's Draft, 'should' level.
val:timelinebegin/loadend conformant-untested https://w3c.github.io/svgwg/specs/animations/#SVGElementTimelinebeginAttribute loadend (initial): the timeline starts when the load event of the outermost svg fires. Attribute not parsed. Parsing is synchronous and the host drives the clock from time 0 after the document is built, which is the loadend behavior. none low S Behavior equals the initial value because the attribute is ignored.
val:timelinebegin/loadbegin missing https://w3c.github.io/svgwg/specs/animations/#SVGElementTimelinebeginAttribute loadbegin: the timeline starts when the root start tag has been parsed. Attribute not parsed. None; indistinguishable from loadend with a synchronous parse. none low S Only observable with progressive loading, which Donner does not have.
val:requiredExtensions/space-separated-url-tokens conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#RequiredExtensionsAttribute A whitespace-separated list of extension URLs; true only when every listed extension is supported. Raw string stored (donner/svg/components/ConditionalProcessingComponent.cc:16-18). donner/svg/components/ConditionalProcessingComponent.cc:100-106: any non-blank value is false because no extension is supported, so tokenization is never needed. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:117; donner/svg/tests/SVGSwitchElement_tests.cc:120; resvg third_party/resvg-test-suite/tests/structure/switch/with-attributes.svg. - -
val:requiredExtensions/empty-string divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#RequiredExtensionsAttribute An empty (or null) string evaluates to false. Raw string stored (donner/svg/components/ConditionalProcessingComponent.cc:16-18). donner/svg/components/ConditionalProcessingComponent.cc:100-106: an empty or whitespace-only value falls through to true; the comment cites SVG 1.1. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:123 (EmptyRequiredExtensionsEvaluatesToTrue) pins the divergent behavior. low S The CR text (and SVG 1.1 second edition) say false. An element with requiredExtensions="" renders in Donner and must not. One-line fix plus the test expectation.
val:systemLanguage/comma-separated-tags conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SystemLanguageAttribute Comma-separated tokens with surrounding whitespace stripped; empty tokens removed. donner/svg/components/ConditionalProcessingComponent.cc:61-65. donner/svg/components/ConditionalProcessingComponent.cc:66-79. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:56 (CommaSeparatedListMatchesAnyTag); resvg third_party/resvg-test-suite/tests/structure/systemLanguage/ru-en.svg. - -
val:systemLanguage/empty-or-only-separators conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SystemLanguageAttribute If no token remains after removing empty ones, the attribute evaluates to false. donner/svg/components/ConditionalProcessingComponent.cc:63-65 skips empty tokens. donner/svg/components/ConditionalProcessingComponent.cc:82 returns false when nothing matched; donner/svg/components/ConditionalProcessingComponent.cc:117-121. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:67 (EmptyValueDoesNotMatch). - -
val:systemLanguage/case-insensitive-exact-match conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SystemLanguageAttribute A tag matches when it equals a user language, compared ASCII case-insensitively. donner/svg/components/ConditionalProcessingComponent.cc:70-73. donner/svg/components/ConditionalProcessingComponent.cc:85-94. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:38, :62; resvg third_party/resvg-test-suite/tests/structure/systemLanguage/en.svg, ru-Ru.svg. - -
val:systemLanguage/prefix-match conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SystemLanguageAttribute A tag matches when a user language is a case-insensitive prefix of the tag and the next character of the tag is a hyphen (user en matches tag en-GB). donner/svg/components/ConditionalProcessingComponent.cc:74-78. donner/svg/components/ConditionalProcessingComponent.cc:85-94. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:43 (SubtagOfUserLanguageMatches), :51 (PrefixWithoutSubtagSeparatorDoesNotMatch); resvg third_party/resvg-test-suite/tests/structure/systemLanguage/en-GB.svg, en-US.svg. - -
val:type@style/empty-or-absent conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementTypeAttribute No type, or an empty value: the sheet is CSS. donner/svg/parser/AttributeParser.cc:1750. donner/svg/components/StylesheetComponent.h:171; donner/svg/SVGStyleElement.cc:53-62. donner/svg/tests/SVGStyleElement_tests.cc:12 (DefaultsToCssType); most resvg structure/style cases omit type. - -
val:type@style/text-css conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementTypeAttribute text/css, compared ASCII case-insensitively: the sheet is CSS. donner/svg/parser/AttributeParser.cc:1751. donner/svg/components/StylesheetComponent.h:171 (equalsIgnoreCase). donner/svg/tests/SVGStyleElement_tests.cc:19; resvg third_party/resvg-test-suite/tests/structure/use/cSS-rules.svg (uses type="text/css"). - -
val:type@style/other-media-type conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElementTypeAttribute Any other value: the element's content is not processed as a style sheet. donner/svg/parser/AttributeParser.cc:1753-1757 warns. donner/svg/parser/SVGParser.cc:219 skips the content. donner/svg/tests/SVGStyleElement_tests.cc:19, :30; resvg third_party/resvg-test-suite/tests/structure/style/invalid-type.svg. - -

Features: the use element and its shadow tree

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/use-href-precedence conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement The referenced element comes from href, or from xlink:href only when href is absent. donner/svg/UseReference.cc:23-40; DOM writes re-resolve through donner/svg/SVGElement.cc:114-118, donner/svg/SVGElement.cc:855-857. donner/svg/renderer/RenderingContext.cc:1575-1613. donner/svg/tests/SVGUseElement_tests.cc:162 (HrefWinsOverXlinkHrefInEitherOrder), :168, :177, :222. - -
feat:svg2/use-same-document-reference conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-target A same-document URL with a fragment targets the element with that id in the current document. donner/svg/graph/Reference.cc:98-107 (fragment-only #id), donner/svg/graph/Reference.cc:21-28 (attached element with that id, SVG namespace only). donner/svg/renderer/RenderingContext.cc:1583-1598 builds the shadow tree. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:40, :54; donner/svg/tests/SVGUseElement_tests.cc:89, :106; resvg third_party/resvg-test-suite/tests/structure/use/simple-case.svg, from-defs.svg, non-linear-order.svg (target defined after the use). - -
feat:svg2/use-external-document conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement use may reference an element in another SVG document; a URL without a fragment refers to that document's root element. The external document is processed in secure static mode. donner/svg/graph/Reference.cc:33-50 (external when not starting with # and not a data: URL), donner/svg/graph/Reference.cc:52-92 (document URL and fragment split). donner/svg/renderer/RenderingContext.cc:1599-1607 loads the document through donner/svg/components/resources/ResourceManagerContext.cc:556-618 (host resource loader, cached, parsed with ProcessingMode::SecureStatic at donner/svg/parser/SVGParser.cc:994-1009) and records the fragment (empty means root). donner/svg/renderer/tests/Renderer_tests.cc:461 (UseExternalSvg, no fragment), :466 (UseExternalSvgFragment); donner/svg/renderer/tests/RendererPublicApi_tests.cc:747-1992; donner/svg/components/resources/tests/SubDocumentCache_tests.cc. resvg third_party/resvg-test-suite/tests/structure/use/xlink-to-an-external-file.svg is compared against a Donner golden (harness mismatch: its reference is opaque and its glyph ink is about 5.6% heavier). - - Loading needs a host-supplied resource loader; without one a warning is emitted and the use renders nothing (donner/svg/components/resources/ResourceManagerContext.cc:575-580).
feat:svg2/use-data-url-and-cross-origin conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement User agents may restrict external resources; the CR does not allow cross-origin or data: URL requests in use. donner/svg/graph/Reference.cc:44-47: a data: URL is not treated as an external document reference. donner/svg/renderer/RenderingContext.cc:1599-1613: a data: href is neither a same-document target nor external, so it only produces a 'failed to resolve' warning and nothing renders. Origin policy is the host loader's (donner/svg/resources/ResourceLoaderInterface.h); the bundled SandboxedFileResourceLoader confines loads to a root directory. none for use with a data: URL (search for <use with data: in tests finds only image cases). low S Donner has no network stack and no notion of origin, so cross-origin enforcement is delegated to the embedder. The data: refusal is by code reading.
feat:svg2/use-non-svg-target-in-error conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement If the referenced element is not an SVG element the reference is invalid, the use is in error and is not rendered. donner/svg/graph/Reference.cc:21-28: resolution requires HasSvgNamespace (donner/svg/components/ElementTypeComponent.h:39). donner/svg/renderer/RenderingContext.cc:1583, :1608-1612: no target, warning, no shadow tree, nothing drawn. resvg third_party/resvg-test-suite/tests/structure/use/xlink-to-a-child-of-a-non-SVG-element.svg, xlink-to-an-invalid-element-1.svg, -2.svg, -3.svg, xlink-to-a-child-of-an-invalid-element.svg (unskipped). - - An unknown element that is in the SVG namespace (for example foreignObject) is a valid target under this rule; Donner clones it and renders nothing, since unknown types never render.
feat:svg2/use-circular-reference conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree A use that references its own ancestor, or a chain of references that loops, is an invalid circular reference; the use (or instance) whose shadow tree would close the loop is in error and not rendered. donner/svg/components/shadow/ShadowTreeSystem.cc:256-274 (self and ancestor), :343-364 and :378-381 (indirect and nested), :37-104 (preflight over the reference graph). The offending shadow tree is not created; a warning is recorded and the rest of the document renders. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:96, :113, :230, :274, :446; resvg third_party/resvg-test-suite/tests/structure/use/recursive.svg, self-recursive.svg, indirect-recursive-1.svg, -2.svg, -3.svg, nested-recursive-1.svg, -2.svg. - -
feat:svg2/use-unresolved-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement A use with an unresolved or invalid reference is not rendered and counts as an empty container for bounding boxes. donner/svg/renderer/RenderingContext.cc:1608-1612 (warning only). No shadow children exist, so traversal of the use draws nothing. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:162 (UseWithMissingHref); donner/svg/tests/SVGUseElement_tests.cc:234 (SetEmptyHrefRemovesReference); donner/svg/renderer/tests/RendererPublicApi_tests.cc:1270 (ExternalUseMissingFragmentDoesNotLeakScopedState). - - Bounding-box contribution was not checked (see transforms_coordinates.md).
feat:svg2/use-shadow-tree-clone conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree The referenced element and its whole subtree are instantiated as the rendered content of the use, as if they were its children; the instances are not part of the document tree. donner/svg/components/shadow/ShadowTreeSystem.cc:339-434 creates one shadow entity per source node (:315-337), each pointing at its source through donner/svg/components/shadow/ShadowEntityComponent.h. donner/svg/renderer/RenderingContext.cc:395-398 reads data from the source entity and style from the shadow entity; shadow entities are appended under the use in the render tree only. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:40, :254 (UseReferencingGroupWithChildren), :494; resvg third_party/resvg-test-suite/tests/structure/use/simple-case.svg, indirect.svg. - - Expansion is bounded by a resource budget (donner/svg/components/shadow/ShadowTreeSystem.cc:136-166); a document exceeding it has the offending use dropped with a warning. That is a deliberate denial-of-service limit, not a CR rule.
feat:svg2/use-shadow-tree-live-updates conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree All mutations of the referenced subtree (elements, attributes, text) and of its style sheets are reflected in the instances; if the reference becomes unresolved the shadow tree is discarded. Instances hold no copied attributes: data is read from the source entity at render time (donner/svg/components/shadow/ShadowEntityComponent.h). donner/svg/UseReference.cc:16-21 tears down and rebuilds instances when the use changes; tree mutations mark the render tree for rebuild (donner/svg/components/TreeMutation.cc). donner/svg/tests/SVGUseElement_tests.cc:138 (SetHref), :187; donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:177 (teardown). No test mutates a referenced element and asserts the instance repaints. low S By code reading the proxy design makes attribute changes visible automatically; structural changes rely on the render-tree rebuild flag. Dynamic-document behavior, worth one regression test.
feat:svg2/use-shadow-tree-when-not-rendered not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree The shadow tree must exist even when the use is not rendered (inside defs, excluded by conditional processing, display: none). n/a donner/svg/renderer/RenderingContext.cc:1562-1582 deliberately skips instantiating use elements that sit in unpresented definitions until a referencing host expands them. none - - Observable only through the scripted shadow DOM interfaces (SVGUseElementShadowRoot), which Donner does not expose. The CR lets non-scripting user agents skip shadow DOM details as long as rendering is identical.
feat:svg2/use-shadow-tree-read-only-and-inert-script not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree The shadow tree is open but read-only (modifications throw); script elements inside it are inert. n/a Shadow entities are internal and have no public mutation API; scripts never run anywhere. none - - DOM and scripting requirement.
feat:svg2/use-nested-use conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree A referenced use, or content containing use, is expanded recursively. donner/svg/components/shadow/ShadowTreeSystem.cc:378-407 follows a nested reference while cloning. donner/svg/renderer/RenderingContext.cc:1562-1582. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:401; resvg third_party/resvg-test-suite/tests/structure/use/indirect.svg, third_party/resvg-test-suite/tests/structure/symbol/indirect-symbol-reference.svg; donner/svg/renderer/tests/RendererPublicApi_tests.cc:1543 (external target containing an external use). - -
feat:svg2/use-external-url-absolutization conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseShadowTree When the referenced element is in an external file, URL references in its attributes and styles are made absolute (relative to that file) before use. n/a (no URL rewriting step). The external instance is rendered from the external document's own registry (donner/svg/components/resources/ImageComponent.h:156, ExternalUseComponent), so fragment references inside it resolve against that document, which gives the same result as absolutizing. donner/svg/renderer/tests/RendererPublicApi_tests.cc:1035 (ExternalUseNestedGradientStaticControl) and :897 cover paint references inside external content; no test covers a relative external URL inside external content. low S By code reading. Relative non-fragment URLs inside the external document (images, nested external use) resolve through the same loader; whether the base is the external file's location was not verified.
feat:svg2/use-xy-translate partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseLayout x and y add translate(x, y) to the right of the use element's own transform; the translation applies to the use itself, so userSpaceOnUse clip paths, masks and filters on the use move with it. donner/svg/parser/AttributeParser.cc:1772 (typed x, y). donner/svg/components/layout/LayoutSystem.cc:459-462 returns Translate(x, y) as the element's content transform, and donner/svg/components/layout/LayoutSystem.cc:559-574 composes it into the transform cached for the element itself (donner/svg/components/layout/LayoutSystem.cc:545-553); the renderer installs that transform before pushing the element's clip, mask and filter (donner/svg/renderer/RendererDriver.cc:3347, clip at :3377). donner/svg/tests/SVGUseElement_tests.cc:257 (SetXY, round-trips the attributes only), :309; resvg third_party/resvg-test-suite/tests/structure/use/position-inheritance.svg, transform-attribute-1.svg, -2.svg, xlink-to-svg-element-with-x-y-on-use.svg; donner/svg/tests/SVGSymbolElement_tests.cc:341 (AdditiveXY). high S Holds only when the use has no transform or a pure translation; rendering position is tested for those cases. With any non-translate transform the transform pivots about (x, y), because the element's own x/y/width/height box is used as the transform reference box (donner/svg/components/layout/LayoutSystem.cc:796-815); that is equivalent to applying translate(x, y) to the left of the transform instead of the right. <use x="100" y="50" transform="scale(2)"> maps p to 2p + (100,50) where the CR gives 2p + (200,100). This is the same defect as feat:css-transforms-1/reference-box-of-sized-elements in transforms_coordinates.md (divergent, high), by code reading; no test combines use x/y with a rotate, scale, skew or matrix transform. The clip/mask/filter coordinate claim is also by code reading: the per-element world transform in Donner already includes the element's content offset, so effects on the use are evaluated in the translated space. No test places a userSpaceOnUse clipPath or mask on a use with non-zero x/y.
feat:svg2/use-width-height-override conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseLayout width and height on use override the corresponding values of a referenced svg or symbol when not auto; auto leaves the referenced element's own values in force. donner/svg/parser/AttributeParser.cc:1772. donner/svg/components/layout/LayoutSystem.cc:986-1004: use values replace the target's only when set. donner/svg/tests/SVGSymbolElement_tests.cc:225, :263, :302 (UseOverridesSymbolSize); resvg third_party/resvg-test-suite/tests/structure/symbol/with-custom-use-size.svg, with-viewBox-and-custom-use-size.svg, third_party/resvg-test-suite/tests/structure/use/xlink-to-svg-element-with-width-height-on-use.svg. - - Only the width/height attributes of the use are consulted here; a CSS width declaration on the use is not (donner/svg/components/layout/LayoutSystem.cc:990-995 reads the attribute-backed properties without the unparsed-declaration step). See shapes_paths.md for the geometry properties.
feat:svg2/use-width-height-no-effect-on-non-viewport conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseLayout width and height have no effect when the referenced element does not establish a viewport; the use itself is not a viewport and does not change percentage resolution. n/a donner/svg/components/layout/LayoutSystem.cc:978-984 returns unless the target is svg or symbol; donner/svg/components/layout/LayoutSystem.cc:197-210 applies authored dimensions only for viewport targets. resvg third_party/resvg-test-suite/tests/structure/use/with-size.svg (size on a use of a non-viewport element). - -
feat:svg2/use-negative-width-height-ignored divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement A negative width or height on use is invalid and must be ignored (the referenced element's own size applies). donner/svg/parser/AttributeParser.cc:192-209: any parsable length is stored, sign unchecked. donner/svg/components/layout/LayoutSystem.cc:990-1004 takes the negative value as the override; the resulting bounds are empty, and donner/svg/renderer/RenderingContext.cc:446-460 skips rendering. none (search for a negative width on <use in tests finds nothing). low S By code reading a negative size hides the instance instead of falling back to the symbol's size. Unverified by execution.
feat:svg2/use-zero-width-height-disables conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseElement A zero width or height on use, when it has an effect on the referenced element, disables rendering of that element. donner/svg/parser/AttributeParser.cc:192-209. donner/svg/components/layout/LayoutSystem.cc:1011-1014 produces empty bounds; donner/svg/renderer/RenderingContext.cc:446-460 returns before instantiation when the sized bounds are empty. none found for use; the root-level analogue is resvg third_party/resvg-test-suite/tests/structure/svg/zero-size.svg. low S The emptiness check reads the sized component of the data entity (donner/svg/renderer/RenderingContext.cc:449-456); whether it sees the shadow instance's component in every case was not confirmed. Needs a test.
feat:svg2/use-style-inheritance-from-host conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance Element instances inherit property values from the host use element, not from the original parent of the referenced element. n/a donner/svg/components/style/StyleSystem.cc:848-853: the style parent is the tree parent of the shadow entity, which is the use (or an enclosing instance). resvg third_party/resvg-test-suite/tests/structure/use/style-inheritance-1.svg, -2.svg, -3.svg, fill-opacity-inheritance.svg, stroke-opacity-inheritance.svg, opacity-inheritance.svg, with-currentColor.svg, complex-style-resolving-order.svg; donner/svg/renderer/tests/RendererPublicApi_tests.cc:747. - -
feat:svg2/use-presentation-attributes-cloned conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance Presentation attributes and the style attribute of referenced elements apply to their instances as on the originals. n/a donner/svg/components/style/StyleSystem.cc:839-846 seeds the instance's cascade from the source element's own declarations. resvg third_party/resvg-test-suite/tests/structure/use/complex-style-resolving-order.svg, style-inheritance-2.svg. - -
feat:svg2/use-style-rule-scoping divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance Style rules of the document apply inside the shadow tree but are matched against the shadow tree's own structure: a rule whose selector depends on ancestors or siblings that were not cloned does not match the instance, and selectors cannot reach from the host document into the shadow tree (shadow encapsulation, CSS Scoping). n/a donner/svg/components/style/StyleSystem.cc:670-704 matches every document rule against the shadow entity using ShadowedElementAdapter; donner/svg/components/style/StyleSystem.cc:374-386 walks from the instance root up into the use and its ancestors with no shadow-root boundary. So the source element's original ancestors correctly stop matching, but ancestors of the use now match. donner/svg/components/style/tests/StyleSystem_tests.cc:1495 (ShadowTreeSelectorsMatchSiblingAndAttributeState) covers selectors inside the instance; resvg third_party/resvg-test-suite/tests/structure/use/cSS-rules.svg passes but only uses an id selector. No test for a selector that crosses the host boundary. medium M Half of the SVG 2 model is right: the CR example (.special circle no longer matching an instance whose source sat under .special) behaves as specified. The other half is not: use > rect, g.icons rect (with the use inside g.icons) and svg rect:first-child-style rules match cloned content in Donner and must not, because the instance root's parent is a shadow root, not the use. Structural pseudo-classes on the instance root (:first-child, :nth-child) are also evaluated against the children of the use.
feat:svg2/use-external-stylesheets conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance For an external referenced document, that document's style sheets apply to the shadow tree; the host document's rules affect it only through inheritance. n/a External instances are styled inside the external document's registry with the host's computed style injected as the inheritance parent (donner/svg/components/style/StyleSystem.cc:165-168, :848-853, donner/svg/components/style/ExternalUseStyleContext.h). donner/svg/renderer/tests/RendererPublicApi_tests.cc:747 (ExternalUseInheritsHostFillWithoutExternalAncestors), :827, :952, :967. - -
feat:svg2/use-media-queries-in-shadow-scope not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance Media queries in a shadow tree's scope are evaluated against the light document's device features. n/a No media query evaluation exists (attr:media@style). none - - Depends on media query support, which is missing as a whole.
feat:svg2/use-visibility-hidden conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseStyleInheritance visibility: hidden on use is only inherited; instances that set visibility: visible still render. n/a visibility is an inherited property resolved per instance (donner/svg/components/style/StyleSystem.cc:867-869); the render traversal keeps traversing a hidden container and decides visibility per drawn instance (donner/svg/renderer/RenderingContext.cc:509-511). none found for the use case (search for visibility together with <use in tests). low S By code reading. Add the CR example as a test.
feat:svg2/use-display-none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#Rendered-vs-NonRendered display: none on the use hides all instances; display: none on the referenced element is carried to its instance. n/a donner/svg/renderer/RenderingContext.cc:442-444 on the use and on the instance root (whose own declarations come from the source element). resvg third_party/resvg-test-suite/tests/structure/use/display-inheritance.svg. - -
feat:svg2/use-animations-in-shadow-tree conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseAnimations Declarative animations that apply to an element in the referenced subtree also apply to its instances, in the host document's timeline. n/a Animated values live on the source entity and are applied when styling each instance (donner/svg/components/style/StyleSystem.cc:847, ApplyAnimatedStyle with the data entity), so every instance shows the animation. donner/svg/renderer/tests/RendererAnimationPresentation_tests.cc:1186 (AnimatedUsePreservesSecureModesAndLoaderDenial); donner/svg/renderer/tests/RendererPublicApi_tests.cc:987, :1011 (animated inherit through external use). - - Per-instance, event-triggered animation semantics need interaction events and are not applicable. Full animation semantics are in animation.md.
feat:svg2/use-event-handling not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseEventHandling Events on instances are retargeted to the use; listeners on source elements also listen on instances. n/a No DOM event dispatch to script listeners exists. none - - Scripting and interaction requirement.
feat:svg2/use-svg-target-sizing conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#UseLayout When the referenced element is an svg, it is instantiated as a nested viewport: its x, y, width, height (width and height overridable by the use), viewBox and preserveAspectRatio apply. n/a donner/svg/components/layout/LayoutSystem.cc:978-984 (svg targets accepted), donner/svg/components/layout/LayoutSystem.cc:414-452 (viewBox mapping for the instance root). resvg third_party/resvg-test-suite/tests/structure/use/xlink-to-svg-element.svg, xlink-to-svg-element-with-rect.svg, xlink-to-svg-element-with-rect-only-width.svg, xlink-to-svg-element-with-viewBox.svg, xlink-to-svg-element-with-width-height-on-use.svg, xlink-to-svg-element-with-x-y-on-use.svg, nested-xlink-to-svg-element-with-rect-and-size.svg (all unskipped). - -

Features: symbol

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/symbol-never-rendered-directly conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolNotes A symbol is never rendered directly (UA display: none !important); it renders only as the instance root of a use. donner/svg/SVGSymbolElement.cc:25-26 (ShadowOnlyChildren); UA rule in donner/svg/core/UserAgentStylesheet.h. donner/svg/renderer/RenderingContext.cc:431-436 stops traversal for a symbol in the light tree; the UA rule gives display: none. resvg third_party/resvg-test-suite/tests/structure/symbol/unused-symbol.svg; donner/svg/components/style/tests/StyleSystem_tests.cc:1252, :1299. - -
feat:svg2/symbol-instance-display-inline conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolNotes The instance of a symbol that is the direct referenced element of a use always computes display: inline, overriding any other rule. n/a donner/svg/components/style/StyleSystem.cc:188-199 sets display: inline at important user-agent priority on the direct instance root (donner/svg/components/style/StyleSystem.cc:171-186). donner/svg/components/style/tests/StyleSystem_tests.cc:1415 (SymbolDirectUseRootPreservesNativeDisplayOverride), :1464; resvg third_party/resvg-test-suite/tests/structure/symbol/simple-case.svg. - -
feat:svg2/symbol-nested-instance-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolNotes Any other symbol cloned into a shadow tree (not the instance root) behaves as a definition and is not rendered. n/a donner/svg/components/style/StyleSystem.cc:171-186: only the direct root of a use gets the override; other symbol instances keep the UA display: none. donner/svg/components/style/tests/StyleSystem_tests.cc:1441 (SymbolShadowRootFromNonUseRemainsDefinition). - -
feat:svg2/symbol-x-y-width-height conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolElement x, y, width, height on symbol position and size the instance viewport as on a nested svg; auto width and height behave as 100% unless overridden by the use. donner/svg/parser/AttributeParser.cc:1879-1881. donner/svg/components/layout/LayoutSystem.cc:986-1014: symbol values are the defaults, 100% of the use's viewport when unset, offset by the symbol's x and y. donner/svg/tests/SVGSymbolElement_tests.cc:60, :73, :189 (NoViewBox_UseExpandsViewport_NoScaling), :263 (SymbolSizeNoUseSize), :341 (AdditiveXY). - -
feat:svg2/symbol-viewbox-preserveaspectratio conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolElement The symbol's viewBox and preserveAspectRatio map its content into the instance viewport. donner/svg/parser/AttributeParser.cc:1882-1884. donner/svg/components/layout/LayoutSystem.cc:431-436. donner/svg/tests/SVGSymbolElement_tests.cc:44, :150; resvg third_party/resvg-test-suite/tests/structure/symbol/with-viewBox.svg, with-viewBox-and-custom-use-rect.svg, with-viewBox-and-custom-use-size.svg, opacity-on-symbol-with-viewBox.svg. - -
feat:svg2/symbol-overflow-hidden conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolNotes The UA style sheet gives symbol overflow: hidden, clipping content to the instance viewport unless overridden. UA rule svg:not(:root), image, marker, pattern, symbol { overflow: hidden; } (donner/svg/core/UserAgentStylesheet.h). donner/svg/renderer/RenderingContext.cc:462-468 clips to donner/svg/components/layout/LayoutSystem.cc:829-833 (the instance viewport). resvg third_party/resvg-test-suite/tests/structure/symbol/content-outside-the-viewbox.svg, with-overflow-visible.svg. - -
feat:svg2/symbol-refxy-placement divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes The point (refX, refY), expressed in the symbol's content coordinates after viewBox and preserveAspectRatio, is placed exactly at the symbol's x,y position. donner/svg/parser/AttributeParser.cc:1885-1893. donner/svg/components/layout/LayoutSystem.cc:438-452 translates by (-refX, -refY) in content units before the viewBox mapping, which moves the reference point to where the content origin (0,0) would land, not to the viewport's x,y corner. donner/svg/components/layout/LayoutSystem.cc:426-429 returns before this code when the symbol has no viewBox, so refX/refY are ignored there. donner/svg/tests/SVGSymbolElement_tests.cc:421 (CustomReferencePoint), :463 (KeywordCenterReferencePoint): both use viewBox="0 0 6 6" with matching aspect ratio, the one configuration where the two interpretations agree. low S By code reading the result is wrong when (a) the viewBox min-x or min-y is not 0, (b) preserveAspectRatio alignment adds an offset, or (c) there is no viewBox. Percentages and keywords resolve against the viewBox size without adding the viewBox origin. Fix: map the reference point through the content transform and translate so it lands on the viewport origin.
feat:svg2/symbol-refxy-unspecified-vs-zero partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes When refX or refY is not specified no adjustment is made in that dimension (the viewport's top-left sits at x,y); this differs from a specified value of 0. donner/svg/components/layout/SymbolComponent.h:18-19 stores plain lengths defaulting to 0, so 'unspecified' and '0' are the same state. donner/svg/components/layout/LayoutSystem.cc:438-452. donner/svg/tests/SVGSymbolElement_tests.cc:380 (DefaultReferencePoint) covers the unspecified case; no test for an explicit 0 with a viewBox whose origin is not 0. low S The unspecified case renders correctly (no adjustment). An explicit refX="0" should move content point 0 to the viewport corner, which differs from 'unspecified' when the viewBox origin is not 0; Donner cannot represent the difference. Needs optional storage.
feat:svg2/symbol-transform divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SymbolAttributes SVG 2 allows the transform presentation attribute on symbol; the reference-point rule speaks of transformations on the symbol and its host use together. Parsed as a presentation attribute like on any element (donner/svg/parser/AttributeParser.cc:1894). donner/svg/SVGSymbolElement.cc:27-29 sets appliesSelfTransform = false; donner/svg/components/layout/LayoutSystem.cc:559-574 then skips the element's own transform. resvg third_party/resvg-test-suite/tests/structure/symbol/with-transform.svg passes and pins the SVG 1.1 behavior (its description says SVG 2 allows the transform and the suite ignores it). low S Deliberate SVG 1.1 compatibility. Under SVG 2 the transform applies to the instance. Changing it requires marking that resvg case as an intentional SVG 2 difference.

Features: switch and conditional processing

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/switch-first-true-child conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement switch renders the first direct child whose requiredExtensions and systemLanguage evaluate to true and bypasses all others; a child without those attributes is true. n/a donner/svg/renderer/RenderingContext.cc:767-788: children are scored in document order; an unconditional eligible child ends the scan. donner/svg/tests/SVGSwitchElement_tests.cc:103 (RendersOnlyFirstMatchingChild), :120, :383 (no valid child renders nothing); resvg third_party/resvg-test-suite/tests/structure/switch/simple-case.svg, single-child.svg, comment-as-first-child.svg, with-attributes.svg. - -
feat:svg2/switch-allowreorder-language-priority spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement When evaluating systemLanguage, the order of evaluation of the children must be as if SMIL allowReorder were always 'yes' (the user agent may pick the best language match rather than the first). n/a donner/svg/renderer/RenderingContext.cc:773-785: among language-conditioned children that precede the first unconditional child, the one matching the user's highest-priority language wins; ties go to document order. donner/svg/tests/SVGSwitchElement_tests.cc:453 (SystemLanguageHonorsUserLanguagePriority), :470, :488, :510, :529; resvg third_party/resvg-test-suite/tests/structure/switch/systemLanguage*.svg (6 cases). low - The CR is internally inconsistent: the normative sentence requires allowReorder=yes semantics, while the element summary and the informative examples in 5.6.5 say the first matching child in document order is rendered. Donner implements the normative reorder rule. With a single user language (the default en) both readings give the same result, which is why all resvg cases pass. Browsers implement first-match.
feat:svg2/switch-display-visibility-no-effect conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement display and visibility on a child do not affect which child switch selects; a selected display: none child renders nothing. n/a donner/svg/renderer/RenderingContext.cc:199-224 never reads style. donner/svg/tests/SVGSwitchElement_tests.cc:279 (DisplayNoneChildStillSelected); resvg third_party/resvg-test-suite/tests/structure/switch/display-none-on-child.svg. - -
feat:svg2/switch-eligible-children divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement Every direct child element takes part in the selection, including foreignObject (the content model is animation elements, shapes, a, foreignObject, g, image, svg, switch, text, use). n/a donner/svg/renderer/RenderingContext.cc:160-178: only a fixed list of rendered types is eligible; foreignObject, animation elements and unknown elements are skipped as if absent. donner/svg/tests/SVGSwitchElement_tests.cc:262 (SkipsUnknownElementChild), :365 (SwitchSkipsNonRenderedChildTypes); resvg third_party/resvg-test-suite/tests/structure/switch/non-SVG-child.svg (a foreign-namespace child is skipped, which matches the reference). low S Consequence: <switch><foreignObject>..</foreignObject><text>fallback</text></switch> without requiredExtensions renders the fallback in Donner, while the CR selects the foreignObject (and a user agent that cannot render it shows nothing). The Donner result is the friendlier one and equals what authors intend, but it is not what the text says. Skipping foreign-namespace elements is consistent with them not being part of the SVG fragment.
feat:svg2/switch-container-child-subtree conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement If the selected child is a container the whole subtree is rendered; bypassed children are not rendered at all. n/a donner/svg/renderer/RenderingContext.cc:716-740 traverses only the selected child (selectSwitchChild). donner/svg/tests/SVGSwitchElement_tests.cc:296 (AppliesGroupAttributesToSelectedChild), :403 (NestedSwitch). - -
feat:svg2/switch-does-not-affect-style-script conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SwitchElement switch and conditional processing attributes do not affect the processing of style and script elements. n/a Style sheets are collected from every style element regardless of position or conditional attributes (donner/svg/components/style/StyleSystem.cc:689-704, donner/svg/components/style/StyleSystem.cc:68-79 has no conditional check). none (no test places a style inside a switch or gives it a failing systemLanguage). low S By code reading.
feat:svg2/conditional-outside-switch conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingOverview Outside a switch, a false conditional attribute acts as a simple switch: the element and its subtree are not rendered, as with display: none. donner/svg/parser/AttributeParser.cc:376-399. donner/svg/renderer/RenderingContext.cc:415-418; text content elements at donner/svg/components/text/TextSystem.cc:343-347. donner/svg/tests/SVGSwitchElement_tests.cc:328 (ConditionalAttributesOutsideSwitchDisableRendering), :347; resvg third_party/resvg-test-suite/tests/structure/systemLanguage/on-svg.svg, on-tspan.svg, ru-Ru.svg. - -
feat:svg2/conditional-does-not-block-references conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingOverview Conditional processing does not prevent an element from being referenced, and has no effect on never-rendered elements. n/a donner/svg/renderer/RenderingContext.cc:411-414 (comment and placement): the check sits in the render traversal only; reference resolution ignores it. resvg third_party/resvg-test-suite/tests/structure/systemLanguage/on-defs.svg, on-clipPath.svg, on-linearGradient.svg (unskipped). - -
feat:svg2/conditional-in-never-rendered-container partial https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingOverview Conditional processing of children of a never-rendered container (pattern, mask, clipPath) decides whether that child contributes to the effect. n/a Mask, pattern and marker content goes through the normal traversal and is filtered (donner/svg/renderer/RenderingContext.cc:415-418). Clip path geometry collection uses PrepareClipGeometry (donner/svg/renderer/RenderingContext.cc:240-268), which checks type, visibility and display but not conditional attributes. none for clip path children with a failing conditional attribute. low S By code reading a clipPath child with a failing systemLanguage still contributes to the clip. Not executed.
feat:svg2/conditional-animation-elements missing https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingOverview Conditional processing prevents animation elements from playing. n/a No conditional check in the animation system: the conditional-processing component and evaluation functions are not referenced anywhere under donner/svg/components/animation/ (search for ConditionalProcessing and EvaluateConditional). none low S An animate with a failing systemLanguage or requiredExtensions still runs, by code reading. Overlaps animation.md.
feat:svg2/conditional-systemlanguage-prefix-direction spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingSystemLanguageAttribute The algorithm returns true when the user language is a prefix of the attribute tag followed by a hyphen. The informative example in the same section describes the opposite (a user preference zh-Hans-CN matching the tag zh-Hans). n/a donner/svg/components/ConditionalProcessingComponent.cc:67-79 implements the algorithm direction only. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:43, :51. low - Under the algorithm, user zh-Hans-CN does not match tag zh-Hans, contradicting the CR example. Donner follows the normative algorithm. Worth reporting upstream; no code change recommended until the CR is fixed.
feat:svg2/requiredfeatures-removed legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ConditionalProcessingOverview requiredFeatures was removed in SVG 2; it is no longer a conditional processing attribute. donner/svg/components/ConditionalProcessingComponent.cc:13-15 still stores it. donner/svg/components/ConditionalProcessingComponent.cc:96-98: never evaluated, always true. donner/svg/components/tests/ConditionalProcessingComponent_tests.cc:106 (RequiredFeaturesIsIgnored); donner/svg/tests/SVGSwitchElement_tests.cc:185; resvg third_party/resvg-test-suite/tests/structure/switch/requiredFeatures.svg. low S Net behavior equals the CR (the attribute has no effect). Only the storage is legacy.

Features: svg element and nested viewports

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/svg-root-and-namespace conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#Namespace An SVG document fragment starts with an svg element in the SVG namespace (declared by xmlns, default or prefixed) when parsed as XML. donner/svg/parser/SVGParser.cc:903-965: the first element must be named svg and resolve to the SVG namespace; a prefixed namespace is supported (donner/svg/parser/SVGParser.cc:510-542); the parseAsInlineSVG option supplies the namespace for HTML-style inline fragments (donner/svg/parser/SVGParser.cc:909-911). Element creation requires the tag prefix to resolve to the SVG namespace (donner/svg/parser/SVGParser.cc:824-837, :778-796). donner/svg/parser/tests/SVGParser_tests.cc:119 (WithoutNamespace fails), :130, :523, :536, :573 (PrefixedXmlns), :597, :653; resvg third_party/resvg-test-suite/tests/structure/svg/explicit-svg-namespace.svg, mixed-namespaces.svg, xmlns-validation.svg. - -
feat:svg2/svg-outermost-x-y-ignored conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElement x and y have no effect on an outermost svg element. Parsed as geometry attributes on any svg. donner/svg/components/layout/LayoutSystem.cc:849-856: the root's bounds are always placed at the origin with the document size. none found that renders a root svg with non-zero x/y (donner/svg/tests/SVGSVGElement_tests.cc:93 checks parsing only). low S By code reading.
feat:svg2/nested-svg-viewport conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#EstablishingANewSVGViewport A nested svg establishes a new viewport and user coordinate system at (x, y) with size (width, height); width and height auto equal 100%; percentages inside resolve against the new viewport; viewBox and preserveAspectRatio map content into it. Geometry and viewBox attributes as on the root. donner/svg/components/layout/LayoutSystem.cc:857-870 (bounds from x, y, width, height, default 100% of the parent viewport), donner/svg/components/layout/LayoutSystem.cc:463-474 (viewBox mapping), donner/svg/components/layout/LayoutSystem.cc:288-327 (percentage basis for descendants). resvg third_party/resvg-test-suite/tests/structure/svg/nested-svg.svg, nested-svg-with-rect.svg, nested-svg-with-viewBox.svg, nested-svg-with-rect-and-viewBox-1.svg to -3.svg, nested-svg-with-rect-and-percent-values.svg, nested-svg-with-relative-width-and-height.svg, nested-svg-with-viewBox-and-percent-values.svg, nested-svg-one-with-rect-and-one-with-viewBox.svg, deeply-nested-svg.svg (all unskipped). - -
feat:svg2/nested-svg-overflow-clip conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#EstablishingANewSVGViewport Whether the new viewport clips is decided by overflow; the UA sheet sets overflow: hidden on non-root svg. UA rule in donner/svg/core/UserAgentStylesheet.h. donner/svg/renderer/RenderingContext.cc:462-468 (clip unless visible or auto), donner/svg/components/layout/LayoutSystem.cc:829-843. resvg third_party/resvg-test-suite/tests/structure/svg/nested-svg-with-overflow-auto.svg, nested-svg-with-overflow-visible.svg, nested-svg-with-rect.svg. - -
feat:svg2/svg-zero-or-negative-size conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#SVGElement A zero-sized viewport is not rendered; negative width or height is invalid. See shapes_paths.md for the geometry properties. donner/svg/renderer/RenderingContext.cc:446-460 skips an element whose sized bounds are empty. resvg third_party/resvg-test-suite/tests/structure/svg/zero-size.svg, negative-size.svg (root, unskipped). - - Nested svg with zero or negative size is by code reading only (same check).
feat:svg2/preserveaspectratio-requires-viewbox conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute On viewport-establishing elements (and marker, pattern, view) preserveAspectRatio only applies when viewBox is present on the same element. n/a donner/svg/core/PreserveAspectRatio.cc:10-12 returns a pure translation when there is no viewBox. donner/svg/tests/SVGSVGElement_tests.cc:297 (ViewBoxNotSet); donner/svg/tests/SVGSymbolElement_tests.cc:189 (no viewBox, no scaling). - -
feat:svg2/attribute-css-value-parsing partial https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#attribute-css-value Non-presentation attributes defined with CSS value syntax (viewBox, preserveAspectRatio, refX, refY) are parsed with CSS value parsing, which strips surrounding whitespace and accepts comments and escapes; on failure the attribute takes its initial value. Dedicated string parsers: donner/svg/parser/ViewBoxParser.cc:16-37, donner/svg/parser/PreserveAspectRatioParser.cc:12-73, donner/svg/parser/AttributeParser.cc:90-144. On failure the attribute is not applied and a warning is recorded, which equals the initial value for a freshly parsed element. donner/svg/parser/tests/ViewBoxParser_tests.cc:35, donner/svg/parser/tests/PreserveAspectRatioParser_tests.cc:18 assert that surrounding whitespace is an error. low S Whitespace around the value is the realistic case (hand-edited or pretty-printed files); comments and escapes in these attributes do not occur in practice. Trimming ASCII whitespace before these three parsers would close the gap.

Features: common attributes, foreign content and unknown elements

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/data-attributes conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DataAttributes All SVG elements accept custom data attributes (data-*, no namespace); they have no rendering effect. Stored as generic attributes (donner/svg/SVGElement.cc:806-811); no warning unless the opt-in disableUserAttributes parse option is set (donner/svg/parser/AttributeParser.cc:354-365, default false at donner/svg/parser/SVGParser.h:78). Readable through SVGElement::getAttribute and matched by attribute selectors (donner/svg/components/style/StyleSystem.cc:444-462). donner/svg/tests/SVGElement_tests.cc:1119 (PresentationProbeCustomXmlAttributeKeepsDataWithoutStyle), :997; donner/svg/renderer/tests/CssImport_tests.cc:505-510 (rect[data-on] selector). - - With disableUserAttributes enabled, unprefixed non-presentation attributes including data-* are dropped; that is an explicit embedder choice.
feat:svg2/lang-xml-lang-precedence missing https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#LangSpaceAttrs The element language comes from xml:lang when both xml:lang and lang are present, otherwise from whichever is present, otherwise from the parent; the empty string means unknown. Both attributes are retained (lang at donner/svg/SVGElement.cc:806-811; xml:lang stays in the XML attribute store, donner/svg/parser/SVGParser.cc:571-594). None: nothing computes an element language (search for the quoted names lang and xml + lang under donner/svg and donner/css finds no reader). donner/svg/parser/tests/SVGParser_tests.cc:396 (XmlPrefixedAttributesAreRetainedWithoutDiagnostics) covers retention only. low M No feature in Donner consumes the language today, so the precedence rule has nowhere to apply. It becomes relevant with :lang(), language-sensitive shaping or title/desc selection.
feat:svg2/id-processing-irrespective-of-validity conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#Core.attrib User agents should process id values in SVG files irrespective of XML validity (no Name restriction enforced). donner/svg/SVGElement.cc:551-564. donner/svg/components/AttachedIdLookup.cc. resvg third_party/resvg-test-suite/tests/structure/svg/invalid-id-attribute-1.svg, -2.svg complete rendering (no pixel comparison, donner/svg/renderer/tests/resvg_test_suite.cc:1205-1206); third_party/resvg-test-suite/tests/structure/use/duplicated-IDs.svg (pixel compared). - -
feat:svg2/foreign-namespace-elements conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ForeignNamespaces Unknown elements from foreign namespaces are kept in the DOM and excluded from rendering. donner/svg/parser/SVGParser.cc:886-896: retained as SVGUnknownElement flagged non-SVG-namespace (donner/svg/parser/SVGParser.cc:793-795), with one warning per foreign subtree. donner/svg/renderer/RenderingContext.cc:407-409: unknown types and their subtrees are not rendered. SVG elements below a foreign element are not part of the SVG fragment and are not rendered either. donner/svg/parser/tests/SVGParser_tests.cc:682 (ForeignNamespaceElementsAreRetainedAsUnknown), :322, :760, :795; resvg third_party/resvg-test-suite/tests/structure/svg/rect-inside-a-non-SVG-element.svg, third_party/resvg-test-suite/tests/structure/switch/non-SVG-child.svg. - -
feat:svg2/foreign-namespace-attributes conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#ForeignNamespaces Attributes from foreign namespaces on SVG elements are kept in the DOM and otherwise ignored. donner/svg/parser/SVGParser.cc:571-594: prefixed attributes outside the SVG and XLink namespaces stay in the XML attribute store and are not interpreted. No consumer, as required. donner/svg/parser/tests/SVGParser_tests.cc:362 (DeclaredForeignNamespaceAttributesAreRetainedWithoutDiagnostics), :378, :396. - - An attribute with an undeclared prefix is also retained, with a warning (donner/svg/parser/SVGParser.cc:586-590). Strictly that is a namespace well-formedness error in XML; xml_data_formats.md covers it.
feat:svg2/unknown-svg-namespace-elements spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#Links The CR has no rule for unknown elements in the SVG namespace: the only mention is an at-risk note saying the rendering of invalid nested links 'will likely be synchronized with any decisions regarding the rendering of unknown elements'. donner/svg/parser/SVGParser.cc:793-795: any unrecognized tag in the SVG namespace becomes SVGUnknownElement (donner/svg/SVGUnknownElement.cc:8-13). donner/svg/renderer/RenderingContext.cc:407-409: not rendered, children not rendered. donner/svg/parser/tests/SVGParser_tests.cc:670 (UnknownElementInSvgNamespace, tree only); donner/svg/tests/SVGSwitchElement_tests.cc:262; resvg third_party/resvg-test-suite/tests/structure/use/xlink-to-a-child-of-an-invalid-element.svg. low - Donner's choice (unknown element and its subtree do not render) matches current browsers and resvg. Earlier SVG 2 drafts proposed rendering unknown elements as groups; the CR dropped that text without replacing it.
feat:svg2/html-metadata-elements not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#HTMLMetadataElements User agents that support HTML must support the HTML base, link, meta, style and script elements inside SVG documents. HTML-namespace elements are retained as foreign unknown elements (donner/svg/parser/SVGParser.cc:886-896). None. donner/svg/parser/tests/SVGParser_tests.cc:720 (XHTML frame/iframe are inert unknown elements). - - Conditional on HTML support, which Donner does not have. Consequence to keep in mind: an XHTML-namespace link rel=stylesheet or style in an SVG file is ignored.
feat:svg2/aria-and-role-attributes not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#WAIARIAAttributes role and aria-* attributes are allowed on SVG elements and feed the accessibility tree. Retained as generic attributes (donner/svg/SVGElement.cc:806-811). None: no accessibility tree is produced. none - - Accessibility mapping (SVG-AAM) is outside a rendering library; attributes remain readable by a host.

Features: rendering tree and error processing

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/never-rendered-element-types conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#TermNeverRenderedElement Never-rendered types (clipPath, defs, desc, linearGradient, marker, mask, metadata, pattern, radialGradient, script, style, title, and symbol except as a use instance root) are not rendered regardless of display. Type-level flags set at element creation: donner/svg/SVGDefsElement.cc:10-11, donner/svg/SVGDescElement.cc:14-15, donner/svg/SVGTitleElement.cc:14-15, donner/svg/SVGMetadataElement.cc:14-15, donner/svg/SVGUnknownElement.cc:11-12 (covers script), donner/svg/SVGSymbolElement.cc:25-26; style through the UA display: none !important rule. donner/svg/renderer/RenderingContext.cc:426-437 (checked before style). donner/svg/tests/SVGDefsElement_tests.cc:32; donner/svg/tests/SVGTitleElement_tests.cc:60, donner/svg/tests/SVGDescElement_tests.cc:54, donner/svg/tests/SVGMetadataElement_tests.cc:40 (NotRenderedChangesNoPixels); resvg third_party/resvg-test-suite/tests/structure/defs/ignore-shapes-inside-defs.svg; donner/svg/components/style/tests/StyleSystem_tests.cc:1299. - - For the element types of this ledger only; paint servers, markers, masks and clip paths are in other ledgers.
feat:svg2/non-rendered-five-situations conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#Rendered-vs-NonRendered An element is not rendered when it is a never-rendered type, is excluded by conditional processing or switch, has display: none, is detached from the tree, or descends from a non-rendered element. n/a donner/svg/renderer/RenderingContext.cc:407-409 (unknown type), :415-418 (conditional), :426-437 (type flags), :442-444 (display none); every early return skips the subtree (donner/svg/renderer/RenderingContext.cc:716-720); only attached elements are traversed from the root. donner/svg/tests/SVGSwitchElement_tests.cc:328, :347; donner/svg/tests/SVGDefsElement_tests.cc:32; resvg third_party/resvg-test-suite/tests/structure/use/display-inheritance.svg, third_party/resvg-test-suite/tests/structure/defs/ignore-shapes-inside-defs.svg, third_party/resvg-test-suite/tests/structure/systemLanguage/ru-Ru.svg. - - Consequences for pointer events, focus and bounding boxes belong to interactivity_accessibility.md and transforms_coordinates.md.
feat:svg2/display-none-keeps-references conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/render.html#VisibilityControl display: none (and defs) prevents direct rendering only; the element can still be referenced (use, textPath, paint servers). n/a donner/svg/graph/Reference.cc:21-28 resolves by id without consulting style. resvg third_party/resvg-test-suite/tests/structure/defs/simple-case.svg, third_party/resvg-test-suite/tests/structure/use/from-defs.svg, third_party/resvg-test-suite/tests/structure/defs/style-inheritance.svg; donner/svg/tests/SVGDefsElement_tests.cc:67. - -
feat:svg2/error-processing-continue partial https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ErrorProcessing When an element is in error, rendering of the document continues and only the element (or the part) in error is not rendered; errors should be reported where a console exists. Attribute errors are warnings: donner/svg/parser/AttributeParser.cc:281-294, donner/svg/parser/AttributeParser.cc:335-365, collected in the caller's warning sink (donner/svg/parser/SVGParser.cc:596-599 propagates only hard errors). Element-level errors (bad reference, cycle) drop that element only (donner/svg/components/shadow/ShadowTreeSystem.cc:256-274, donner/svg/renderer/RenderingContext.cc:1608-1612). donner/svg/parser/tests/SVGParser_tests.cc:484 (Warning), :502 (InvalidPresentationAttributeWarnsOnceAndKeepsRawAttribute); resvg third_party/resvg-test-suite/tests/structure/use/xlink-to-an-invalid-element-1.svg, third_party/resvg-test-suite/tests/structure/svg/funcIRI-with-invalid-characters.svg (renders, no pixel comparison). low S Conformant for attribute and reference errors. Partial because one content-model violation aborts the whole document: an element child inside style (feat:svg2/style-child-element-error). XML well-formedness errors are fatal by XML rules, which is expected; the xml-stylesheet case is a parser defect listed under feat:svg2/xml-stylesheet-processing-instruction.

Features: processing modes and resource loading

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/processing-mode-dynamic-interactive partial https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#dynamic-interactive-mode Dynamic interactive mode: script execution, external references, declarative animation and interactivity are all enabled. donner/svg/core/ProcessingMode.h:18-22 (DynamicInteractive, the default at donner/svg/SVGDocument.h:846). External resources through the host loader (donner/svg/components/resources/ResourceManagerContext.cc:524-551), animation (donner/svg/components/animation/AnimationSystem.cc:1030-1036), host-driven event dispatch for animation timing (donner/svg/SVGDocument.cc:840-850). No script execution in any mode (donner/svg/core/ProcessingMode.h:13-16). donner/svg/renderer/tests/RendererAnimationPresentation_tests.cc:1166, :1186 (mode matrix). low XL Everything except script. A user agent without a script engine can never offer this mode in full; the CR allows user agents to support a subset of modes, so this is a statement of capability more than a defect.
feat:svg2/processing-mode-animated missing https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#animated-mode Animated mode: external references and declarative animation enabled; script and interactivity disabled. No such enumerator (donner/svg/core/ProcessingMode.h:18-28 has DynamicInteractive, SecureAnimated, SecureStatic). None. The nearest configuration is DynamicInteractive, which additionally accepts host event dispatch. none low S A host that wants 'animated image that may load external files, no interaction' has no exact setting; it can get it by using DynamicInteractive and not dispatching events.
feat:svg2/processing-mode-secure-animated conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#secure-animated-mode Secure animated mode: declarative animation enabled; script, external references and interactivity disabled. donner/svg/core/ProcessingMode.h:23-25. External loading refused (donner/svg/components/resources/ResourceManagerContext.cc:442-445, :524-531, :568-572); animation runs; host event dispatch and host-scheduled begin/end rejected (donner/svg/SVGDocument.cc:846-847, :952-953). donner/svg/renderer/tests/CssImport_tests.cc:292 (SecureModesNeverFetchExternalImports); donner/svg/renderer/tests/RendererAnimationPresentation_tests.cc:1166, :1186, :1354; donner/svg/renderer/tests/RendererPublicApi_tests.cc:512. - -
feat:svg2/processing-mode-static missing https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#static-mode Static mode: external references enabled; script, declarative animation and interactivity disabled. No such enumerator (donner/svg/core/ProcessingMode.h:18-28). None. A host can approximate it with DynamicInteractive and never advancing time, but animations that begin at 0s still apply, which the CR explicitly distinguishes from 'animation disabled'. none low S This is the mode a print or thumbnail pipeline wants when files reference external images or fonts: today the choice is external resources with animation, or no animation without external resources.
feat:svg2/processing-mode-secure-static conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#secure-static-mode Secure static mode: script, external references, declarative animation and interactivity all disabled. donner/svg/core/ProcessingMode.h:26-27. External loading refused as in secure animated; animated values never apply (donner/svg/components/animation/AnimationSystem.cc:1030-1034, donner/svg/SVGDocument.cc:985-988). donner/svg/renderer/tests/RendererAnimation_tests.cc:386 (SecureStaticDoesNotEvaluateAnimation); donner/svg/parser/tests/SVGParser_tests.cc:1144 (SecureStaticModeParsesDataSubDocuments); donner/svg/renderer/tests/RendererPublicApi_tests.cc:565, :1089. - -
feat:svg2/feature-declarative-animation-disabled conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#features When declarative animation is disabled no animation is applied at all, including animations that begin at 0s (different from pausing at 0s). n/a donner/svg/components/animation/AnimationSystem.cc:1030-1034 clears animated values and returns before sampling. donner/svg/renderer/tests/RendererAnimation_tests.cc:386; donner/svg/renderer/tests/RendererPublicApi_tests.cc:1089 (ExternalUseDefaultSecureStaticPreservesAnimationBase). - - CSS transitions and animations are not implemented at all.
feat:svg2/feature-external-references-disabled conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#features When external references are disabled, any fetch through an external reference behaves as a network error; same-document references and data: URLs are not external and keep working. n/a donner/svg/components/resources/ResourceManagerContext.cc:442-445 (CSS imports), :524-531 (images load only from data URLs through a null loader), :568-572 (external SVG), :766-770 (already-loaded external images are hidden). donner/svg/renderer/tests/CssImport_tests.cc:292; donner/svg/renderer/tests/RendererPublicApi_tests.cc:512 (SecureDataImagesRenderThroughNestedSvgDocuments), :615; donner/svg/renderer/tests/RendererAnimationPresentation_tests.cc:1166. - -
feat:svg2/feature-script-execution-disabled conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#features When script execution is disabled, no script in the document runs: script elements, event attributes, or script from other platform features. script is an unknown element; event attributes are plain strings. No script engine exists (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720 (BrowserActiveMarkupIsInertInProjectionButRetainedInSource). - -
feat:svg2/feature-interaction-disabled conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#features When interaction is disabled, user input has no effect on the document (no events, focus changes, link traversal or input-triggered animation). n/a The library has no input path of its own; the only input-like entry point is host event dispatch for animation timing, which is refused outside DynamicInteractive (donner/svg/SVGDocument.cc:846-847). The refusal is exercised by the animation event tests listed in animation.md; none was identified by name here. low S Hit testing through the host-facing hit-test API remains available in every mode; it reports geometry and does not change the document.
feat:svg2/referencing-mode-image divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#image-document-mode An SVG referenced by image is processed in secure animated mode when the embedding document supports declarative animation, otherwise in secure static mode. n/a donner/svg/parser/SVGParser.cc:994-1009: sub-documents are always parsed with ProcessingMode::SecureStatic unless the host installs its own parse callback (documented at donner/svg/core/ProcessingMode.h:11-15). donner/svg/renderer/tests/RendererPublicApi_tests.cc:565 (SecureDataSvgDoesNotExecuteExperimentalAnimation) pins the static behavior. low M Donner supports declarative animation, so the CR calls for secure animated mode here: an animated SVG used as an image should animate. The security half (no external references, no script) is conformant. Overlaps paint_servers_markers_images.md.
feat:svg2/referencing-mode-use-and-href conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#template-document-mode Documents loaded through use references or paint server cross-references are processed in secure static mode; cloned instances may animate in the host document's timeline. n/a donner/svg/components/resources/ResourceManagerContext.cc:556-618 parses through the same default callback (donner/svg/parser/SVGParser.cc:994-1009, SecureStatic). donner/svg/components/resources/tests/SubDocumentCache_tests.cc (11 mode assertions); donner/svg/renderer/tests/RendererPublicApi_tests.cc:1089. - -
feat:svg2/referencing-mode-graphical-effects not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#resource-document-mode Documents loaded through style property references that target elements in another document (external mask, clip path, filter, marker, paint server) are processed in secure static mode. n/a url() references resolve only same-document fragments (donner/svg/graph/Reference.cc:98-107 returns nothing for non-fragment hrefs); external element references from properties are not loaded at all. none - - The mode question does not arise because the references themselves are unsupported; that gap belongs to painting_properties.md and clipping_masking.md.
feat:svg2/referencing-mode-inline-and-foreignobject not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#referencing-modes Inline SVG fragments use the host document's processing mode; SVG inside foreignObject uses the surrounding SVG document's mode. n/a No HTML host and no foreignObject content rendering. none - - Requires an HTML host or foreignObject support.
feat:svg2/resource-fetch-cors not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-fetch External fetches use CORS-enabled requests: crossorigin state for image and script, anonymous for style properties, no-cors otherwise; errors or empty responses make the reference invalid. n/a All fetching goes through an embedder-supplied ResourceLoaderInterface (donner/svg/resources/ResourceLoaderInterface.h); the library has no HTTP client, origins or CORS state. Loader errors make the reference invalid with a warning (donner/svg/components/resources/ResourceManagerContext.cc:604-615). none - - Network policy is the embedder's responsibility. The 'error means invalid reference' half is implemented.
feat:svg2/url-same-document-detection partial https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute After making a URL absolute, compare everything except the fragment with the document URL: equal means a same-document reference, whatever the textual form. n/a donner/svg/graph/Reference.cc:33-50: a reference is same-document only when the string starts with #. The document has no URL of its own, so drawing.svg#icon written inside drawing.svg is treated as an external load of the same file. none for the absolute-form case; fragment-only references are covered by resvg third_party/resvg-test-suite/tests/structure/use/*.svg. low S Result for that form: a second parse of the same file in secure static mode (so the instance loses animation and live updates) instead of a same-document reference. Needs an optional document URL in the document settings.
feat:svg2/url-xml-base missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-absolute Relative URLs in non-presentation attributes of XML documents are resolved using xml:base. xml:base is retained as a prefixed XML attribute and not interpreted (search for xml:base and a quoted base attribute name under donner finds nothing). Relative hrefs are handed to the resource loader unchanged (donner/svg/renderer/RenderingContext.cc:1603-1604). none low S Rare in SVG content.
feat:svg2/url-invalid-reference-when-target-missing conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#processingURL-target If no element matches the fragment and the document is immutable (any non-dynamic mode, or fully parsed external document), the reference is invalid. n/a donner/svg/renderer/RenderingContext.cc:1608-1612 (same document) and the external path record a warning and render nothing; resolution is retried on the next render-tree build after a mutation. donner/svg/components/shadow/tests/ShadowTreeSystem_tests.cc:162; donner/svg/renderer/tests/RendererPublicApi_tests.cc:1270. - -

Features: links, fragment identifiers and views

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/a-renders-as-container conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#Links a renders its children like a group, for graphics and for text content. donner/svg/parser/SVGParser.cc:354-360. donner/svg/SVGAElement.cc:11-17 (default traversal outside text; text layout descends through it inside text). resvg third_party/resvg-test-suite/tests/structure/a/on-shape.svg, on-text.svg, on-tspan.svg, inside-text.svg, inside-tspan.svg (unskipped); donner/svg/tests/SVGAElement_tests.cc:58, :64. - -
feat:svg2/a-link-activation not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#Links Activating a link navigates to the URL following the HTML navigation algorithm; links must be focusable and keyboard-activatable. n/a No navigation, focus or activation model. none - - Interaction feature. The target URL is available to a host through SVGAElement::href() for its own hit-test-and-navigate logic.
feat:svg2/a-nested-links conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#Links An a nested in another hyperlink is inactive (its href is ignored) but is still rendered as a generic container. n/a Nested a renders like any a (default traversal). No link state exists to deactivate. none (no test nests a in a). low S Rendering half by code reading; the inactive-link half is moot without link activation. SVGAElement::href() still reports the nested link's URL, so a host implementing navigation must apply the nesting rule itself.
feat:svg2/link-pseudo-classes-and-ua-cursor missing https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#UAStyleSheet The UA sheet gives :link, :visited a pointer cursor; :link matches a elements with an href. The UA sheet text contains the rule (donner/svg/core/UserAgentStylesheet.h). donner/css/selectors/PseudoClassSelector.cc:27-45 implements structural pseudo-classes only, so :link and :visited never match; cursor has no consumer in a renderer. none low S Author rules such as a:link { fill: blue } do not apply. Overlaps selectors_cascade.md.
feat:svg2/fragment-bare-name-view missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#SVGFragmentIdentifiers A URL fragment naming a view element displays the root svg with that view's viewBox/preserveAspectRatio overriding the root's. No view element and no fragment input on any load or render API (search for fragment in donner/svg/SVGDocument.h and the renderer entry points). None. none low M Needed for SVG sprite sheets addressed as sprites.svg#icon-view from image or CSS. A host can emulate it by setting the root viewBox through the DOM API.
feat:svg2/fragment-svgview missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#SVGFragmentIdentifiersDefinitions The CR keeps #svgView(viewBox(...);preserveAspectRatio(...);transform(...)) fragments, which override the root element's view parameters. No parser for svgView( (search under donner finds nothing). None. none low M Still specified in this CR (not removed).
feat:svg2/fragment-media-spatial missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#MediaFragments Media fragment #xywh=x,y,w,h (pixel or percent) overrides the root viewBox. No parser for xywh= (search under donner finds nothing). None. none low S Same plumbing as svgView.
feat:svg2/fragment-media-temporal missing https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#MediaFragments Media fragment #t=begin[,end] renders as if the document time were set to begin and paused at end. No fragment handling. None; a host can call SVGDocument::setTime (donner/svg/SVGDocument.h:474). none low S Equivalent host API exists; only the URL syntax is missing.
feat:svg2/view-element-not-rendered conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/linking.html#ViewElement A view element has no rendering of its own. Unknown element (donner/svg/parser/SVGParser.cc:793-795). donner/svg/renderer/RenderingContext.cc:407-409. none low S Holds by accident of being unknown.

Features: title, desc and metadata

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/title-desc-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DescriptionAndTitleElements title and desc are never rendered (UA display: none !important), wherever they appear. donner/svg/SVGTitleElement.cc:14-15, donner/svg/SVGDescElement.cc:14-15. donner/svg/renderer/RenderingContext.cc:426-429. donner/svg/tests/SVGTitleElement_tests.cc:60, :47; donner/svg/tests/SVGDescElement_tests.cc:54, :41; every resvg case carries a title. - -
feat:svg2/title-desc-text-content conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DescriptionAndTitleElements The text content of title and desc is their meaning; markup from other namespaces may appear but only plain text needs to be exposed. donner/svg/parser/SVGParser.cc:403-429 concatenates direct text and CDATA children. SVGTitleElement::textContent(), SVGDescElement::textContent(). donner/svg/tests/SVGTitleElement_tests.cc:24, :31, :38; donner/svg/tests/SVGDescElement_tests.cc:24, :32; donner/svg/parser/tests/SVGParser_tests.cc:1029, :1065. - - Text nested inside child elements of title/desc is not included (only direct children).
feat:svg2/title-desc-language-selection missing https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DescriptionAndTitleElements With several sibling title or desc elements, the one whose language (lang or xml:lang, possibly inherited) best matches the user's preferences is selected; an empty language tag is the lowest-priority match; with no match the first is used. (Marked at risk in the CR.) n/a None: no API returns 'the' title of an element; hosts enumerate children themselves. none low S At-risk feature with no known browser implementations per the CR's own note. The user language list needed for it already exists (SVGDocument::setUserLanguages).
feat:svg2/title-desc-accessible-name not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#DescriptionAndTitleElements User agents must expose selected title/desc text to platform accessibility APIs as the name and description of the parent (SVG-AAM); interactive user agents should show title as a tooltip. n/a No accessibility tree and no UI. none - - A rendering library has no platform accessibility surface; the text is available to hosts.
feat:svg2/metadata-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/struct.html#MetadataElement Metadata content is never rendered. donner/svg/SVGMetadataElement.cc:14-15. donner/svg/renderer/RenderingContext.cc:426-429. donner/svg/tests/SVGMetadataElement_tests.cc:40 (NotRenderedChangesNoPixels). - -

Features: the style element and style sheets

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/style-content-applied conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElement The character data of a CSS style element is parsed as a style sheet and applied to the whole document, wherever the element appears and regardless of document order relative to the styled elements. donner/svg/parser/SVGParser.cc:215-323 concatenates text and CDATA children and parses them into StylesheetComponent. donner/svg/components/style/StyleSystem.cc:689-704 applies every sheet in the registry to every element (and to use instances). donner/svg/parser/tests/SVGParser_tests.cc:142 (Style), :291; donner/svg/components/style/tests/StyleSystem_tests.cc:357; resvg third_party/resvg-test-suite/tests/structure/style/style-inside-CDATA.svg, style-after-usage.svg, type-selector.svg, universal-selector.svg, rule-specificity.svg, resolve-order.svg, important.svg, attribute-selector.svg, combined-selectors.svg (unskipped). - -
feat:svg2/style-never-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElement The style sheet text is never rendered (UA display: none !important). UA rule *\|style { display: none !important; } (donner/svg/core/UserAgentStylesheet.h). donner/svg/renderer/RenderingContext.cc:442-444; the text children are also removed from the projected tree (donner/svg/parser/SVGParser.cc:865-871). donner/svg/components/style/tests/StyleSystem_tests.cc:1299 (UserAgentDisplayRulesResolveSvgNamespaceAliases); every resvg structure/style case. - -
feat:svg2/style-dynamic-update conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElement HTML semantics: changing the element's text re-parses the sheet and restyles the document. donner/svg/SVGStyleElement.cc:23-36, :47-51. Render tree invalidated on change (donner/svg/SVGStyleElement.cc:35). donner/svg/tests/SVGStyleElement_tests.cc:30 (SetContentsOnlyParsesCssType); donner/svg/renderer/tests/CssImport_tests.cc:515 (ReplacingStylesheetTextReloadsImports). - -
feat:svg2/style-multiple-sheets-order divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#StyleElement With several style elements, the sheets cascade in document order: for equal origin, importance and specificity, a declaration from a later sheet wins. Each style element owns a StylesheetComponent created in document order during parsing (donner/svg/parser/SVGParser.cc:292-295). donner/svg/components/style/StyleSystem.cc:689-704 iterates the component storage, which the ECS library walks from the most recently added entry to the oldest, so the last style element is applied first and the first one last; donner/svg/properties/PropertyParsing.h:101-103 keeps an existing value only when its specificity is strictly higher, so on a tie the declaration applied last (from the earliest sheet) wins. none: no test has two style elements with conflicting equal-specificity rules (donner/svg/tests/SVGStyleCascade_tests.cc:175 LaterRuleWinsEqualSpecificity uses one sheet; resvg structure/style cases use one style element each). medium S By code reading, not executed: the storage iteration order is a property of the ECS dependency (reverse insertion order), read in its sparse-set iterator (third_party/entt/src/entt/entity/sparse_set.hpp:650-653), so the earliest style element wins ties and <style>rect{fill:red}</style><style>rect{fill:green}</style> renders red. Order can also change after a style element is removed and another added. Fix: collect sheets in document order before applying. A two-sheet regression test is still needed. The same defect is recorded in selectors_cascade.md (feat:css-cascade-4/order-of-appearance-multiple-style-elements) and styling_properties.md (feat:svg2/styling-style-element-multiple-sheet-order).
feat:svg2/style-child-element-error divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/conform.html#ErrorProcessing The content model of style is character data; content that violates it is an error handled by the general rule: rendering continues and only the part in error is not rendered. Under HTML semantics the sheet text is the concatenation of the element's child text nodes. donner/svg/parser/SVGParser.cc:225-242: any non-text child returns a hard parse error ('Unexpected <style> element contents'). The error propagates and SVGParser::ParseSVG fails, so nothing renders (donner/svg/parser/SVGParser.cc:625-627, :898-900). donner/svg/parser/tests/SVGParser_tests.cc:291 (StyleConcatenatesTextAndCDataButRejectsElementChildren), :870; donner/svg/tests/SVGDocument_tests.cc:870 pin the rejection. low S A stray element inside style (for example a generator that wraps CSS in a child element) makes the whole file unloadable. Downgrade to a warning and use the text children.
feat:svg2/xml-stylesheet-processing-instruction divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#LinkElement In XML documents external CSS may be attached with the <?xml-stylesheet?> processing instruction (informative note in 6.3; XML documents may carry any processing instruction). donner/base/xml/XMLParser.cc:1624-1634: any processing instruction whose target starts with xml is parsed as the XML declaration; <?xml-stylesheet ...?> then fails with 'XML declaration missing closing' (:1150-1151). The parse error rejects the whole document; no external sheet is loaded in any case. donner/svg/parser/tests/SVGParser_tests.cc:751 (XmlStylesheetInstructionIsRejectedBeforeSvgProjection) pins the rejection. medium S Two separate things: (1) not loading the external sheet, which is a missing optional mechanism; (2) refusing to load a well-formed SVG file because it contains the instruction, which is a parser defect with real-world reach (editors and exporters emit <?xml-stylesheet?>). Fixing (2) only needs the declaration test to require whitespace after xml. Owned by xml_data_formats.md; listed here because 6.3 names the mechanism.
feat:svg2/html-link-stylesheet not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/styling.html#LinkElement An HTML-namespace link rel=stylesheet in an SVG document loads and applies an external style sheet. Retained as a foreign unknown element (donner/svg/parser/SVGParser.cc:886-896). None. none - - Defined in terms of the HTML specification's processing; Donner has no HTML support. @import inside style is supported and is the available alternative (resvg third_party/resvg-test-suite/tests/structure/style/external-CSS.svg, donner/svg/renderer/tests/CssImport_tests.cc).

Features: script and foreignObject

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/script-not-executed conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElementExecution A script whose language is not supported must not be executed; with script execution disabled nothing runs. donner/svg/parser/SVGParser.cc:793-795 (unknown element). No script engine (donner/svg/core/ProcessingMode.h:13-16). donner/svg/parser/tests/SVGParser_tests.cc:720; donner/svg/renderer/tests/RendererPublicApi_tests.cc:772 (a script inside an externally referenced group does not affect rendering). - -
feat:svg2/script-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#ScriptElement Script text is never rendered (UA display: none !important). donner/svg/SVGUnknownElement.cc:11-12. donner/svg/renderer/RenderingContext.cc:407-409; text children are dropped from the projected tree (donner/svg/parser/SVGParser.cc:865-871). donner/svg/renderer/tests/RendererPublicApi_tests.cc:772 (ExternalUseNamedGifRendersOnlySvgContent includes a script child and renders only the graphics). - -
feat:svg2/event-attributes-inert conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/interact.html#EventAttributes Event attributes (on*) hold script that runs when the event fires; with script disabled they must do nothing. Stored as generic attributes (donner/svg/SVGElement.cc:806-811). Never evaluated. donner/svg/parser/tests/SVGParser_tests.cc:720 (an onload attribute is retained in the source and has no effect). - -
feat:svg2/foreignobject-content-not-rendered conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/embedded.html#ForeignObjectElement Support for rendering foreign content is not required. SVG-namespace elements directly inside a foreignObject are not rendered (only a complete nested svg fragment inside foreign content would be). donner/svg/parser/SVGParser.cc:793-795 (unknown element). donner/svg/renderer/RenderingContext.cc:407-409: the foreignObject and its whole subtree are skipped. donner/svg/parser/tests/SVGParser_tests.cc:720 checks the tree only. No rendering test with a foreignObject. low S By code reading. A nested svg reached through HTML content inside foreignObject is also not rendered, which is consistent with not supporting foreign content at all.
feat:svg2/foreignobject-switch-fallback conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/embedded.html#ForeignObjectElement All conforming user agents must support switch and render valid SVG alternatives; a foreignObject guarded by requiredExtensions naming an unsupported extension is skipped in favor of the next alternative. n/a donner/svg/components/ConditionalProcessingComponent.cc:100-106 (non-empty requiredExtensions is false) and donner/svg/renderer/RenderingContext.cc:160-178 (the foreignObject child is not eligible at all) both lead to the fallback child. donner/svg/tests/SVGSwitchElement_tests.cc:120 (SkipsChildWithFailingRequiredExtensions), :262 (SkipsUnknownElementChild); resvg third_party/resvg-test-suite/tests/structure/switch/with-attributes.svg. - - The tests use shapes and an unknown element rather than a literal foreignObject, which takes the same code path (unknown SVG-namespace element).

Tests to create

Each bullet names a behavior with no test anywhere in the checkout.

  • feat:svg2/style-multiple-sheets-order (styling.html#StyleElement): two style elements, first rect { fill: red }, second rect { fill: green }, one rect; expect green. Add a variant where the first style element is removed and re-added.
  • attr:href@a and the xlink:href #2 row (linking.html#XLinkHrefAttribute): for each of a, image, linearGradient, radialGradient, pattern, textPath, give href a valid target and xlink:href a different one, in both attribute orders; expect the href target.
  • feat:svg2/use-xy-translate (struct.html#UseLayout): use x="50" y="50" of a 100x100 rect with clip-path referencing a userSpaceOnUse clipPath holding a rect at 0,0 size 50x50; expect the visible quarter at 50,50 to 100,100. Same with mask and a filter region.
  • feat:svg2/use-style-rule-scoping (struct.html#UseStyleInheritance): use > rect { fill: red } and g.host rect { fill: red } with the use inside g.host, source rect green; expect green. Add the CR 'Use-changed-styles' example as a positive control.
  • feat:svg2/use-negative-width-height-ignored (struct.html#UseElement): use width="-10" of a symbol width="100" height="100"; expect the symbol rendered at 100x100.
  • feat:svg2/use-zero-width-height-disables: use width="0" of a symbol with content; expect nothing rendered.
  • feat:svg2/use-visibility-hidden: use visibility="hidden" of a group containing one shape with visibility="visible"; expect only that shape.
  • feat:svg2/use-data-url-and-cross-origin: use href="data:image/svg+xml,..."; expect nothing rendered and no loader call.
  • feat:svg2/use-shadow-tree-live-updates: render, change fill on the referenced element through the DOM API, render again; expect the instance to change.
  • feat:svg2/symbol-refxy-placement (struct.html#SymbolAttributes): symbol with viewBox="10 10 20 20", refX="20" refY="20", used at x="50" y="50"; expect content point (20,20) at (50,50). Variants: preserveAspectRatio="xMaxYMax" with a non-matching aspect ratio; no viewBox with refX="5"; refX="0" versus no refX with a non-zero viewBox origin.
  • feat:svg2/symbol-transform: decide the intended behavior, then test symbol transform="translate(10)" explicitly as an SVG 2 case.
  • val:viewBox/zero-size (coords.html#ViewBoxAttribute): nested svg viewBox="0 0 0 10" with content; expect nothing rendered and no non-finite values in the render tree.
  • feat:svg2/attribute-css-value-parsing: viewBox=" 0 0 10 10 " and preserveAspectRatio=" xMinYMin slice " on a nested svg; expect them to apply.
  • val:preserveAspectRatio/xMidYMin, xMaxYMin, xMinYMid, xMaxYMid, xMinYMax, xMidYMax: one rendering case each (nested svg with a 2:1 viewBox in a square viewport and the mirrored ratio).
  • attr:transform@svg (struct.html#SVGElement): nested svg x="10" y="10" width="50" height="50" viewBox="0 0 100 100" transform="translate(20 0)"; expect the viewport itself shifted by 20. Same on the root svg.
  • feat:svg2/svg-outermost-x-y-ignored: root svg x="50" y="50"; expect content at the origin.
  • val:requiredExtensions/empty-string (struct.html#RequiredExtensionsAttribute): rect requiredExtensions=""; expect not rendered (the current unit test asserts the opposite).
  • feat:svg2/switch-eligible-children: switch with a literal foreignObject first child (with and without requiredExtensions) and a shape fallback; record the intended result.
  • feat:svg2/switch-does-not-affect-style-script: a style element inside a switch after a matching child, and a style systemLanguage="xx"; expect both sheets to apply.
  • feat:svg2/conditional-in-never-rendered-container: clipPath with two rects, one carrying systemLanguage="xx"; expect only the other to clip.
  • feat:svg2/conditional-animation-elements: animate systemLanguage="xx"; expect no animation.
  • attr:media@style: style media="print" with a rule that would change fill; expect no effect when rendering to a screen target.
  • attr:title@style: two style elements with different title values; expect only the first title's set to apply.
  • feat:svg2/style-child-element-error: style containing a child element followed by CSS text; expect the document to load with a warning.
  • feat:svg2/xml-stylesheet-processing-instruction: a document with <?xml-stylesheet type="text/css" href="x.css"?> before the root; expect it to load (sheet loading optional).
  • feat:svg2/a-nested-links: a inside a; expect both subtrees rendered.
  • feat:svg2/foreignobject-content-not-rendered: foreignObject containing a rect and an XHTML div; expect nothing rendered and siblings unaffected.
  • feat:svg2/view-element-not-rendered: a view element with a viewBox among shapes; expect no effect on rendering.
  • feat:svg2/url-same-document-detection: a document loaded with a known URL whose use refers to that same URL plus a fragment; expect same-document behavior once a document URL exists.

Unverified / could not fetch

  • Every specification in the "Specs read" table was fetched. The SVG Animations text used for playbackorder and timelinebegin is an undated Editor's Draft (no TR exists).
  • HTML, DOM, CSS Scoping, Media Fragments URI, BCP 47 and Referrer Policy were not fetched. Rows that defer to them (a link attributes, shadow DOM interfaces, focus, media fragments) are classified from the SVG 2 text and from the absence of any implementation.
  • feat:svg2/style-multiple-sheets-order is inferred from the stylesheet iteration in donner/svg/components/style/StyleSystem.cc:689-704 plus the iteration order of the ECS storage (read in the dependency's source, outside the audited checkout). Unverified by execution.
  • feat:svg2/use-xy-translate, val:viewBox/zero-size, feat:svg2/use-zero-width-height-disables, feat:svg2/use-negative-width-height-ignored, attr:transform@svg and feat:svg2/use-external-url-absolutization are code-reading results with no test; each is marked in its row.
  • Whether a relative URL inside an externally referenced document resolves against that document's location was not traced through the resource loader.
  • Animation of class, and animation behavior of the attributes marked animatable in the index, were only checked by searching for the attribute names in the animation code; animation.md owns the verification.
  • Bounding-box, pointer-event and focus consequences of 'non-rendered' were not audited here.