Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
SVG 2 text chapter: elements, attributes, SVG-defined properties and layout rules

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

Item-by-item ledger for the SVG 2 text chapter (text, tspan, textPath, their attributes, the properties the chapter itself defines or adapts, and every layout rule). Donner evidence is path:line relative to the repository root at revision b39a524a2. Nothing was built or executed: every behavior statement is a result of reading code, and a row is conformant only when the implementing code was read and a named test asserts the behavior.

Donner has two text backends that share one layout engine (donner/svg/text/TextEngine.cc): a basic backend (TextBackendSimple, stb_truetype: character map, advances, pair kerning) and a HarfBuzz backend (TextBackendFull). "Both backends" in a row means the shared engine decides the behavior. Differences are stated where they exist; the recurring one is that the basic backend forms no ligatures and does no complex shaping, so reference cases that need shaping run on the HarfBuzz backend only ("full backend only").

CSS Text, CSS Fonts, CSS Writing Modes, CSS Inline Layout and CSS Text Decoration properties are defined in their own specifications and are audited in text_font_properties.md. This ledger references them only where the SVG chapter adds or changes a rule (for example the removed keywords of dominant-baseline, or SVG's percentage rule for word-spacing).

Specs read

Spec Level Maturity Dated URL read
SVG 2, chapter 11 Text 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html

Dependent specifications (CSS Text 3, CSS Inline Layout 3, CSS Writing Modes 3, CSS Fonts, CSS Text Decoration 3, CSS Overflow 3) were not fetched for this ledger; where a row leans on one of them the note says so.

Inventory

Row keys of this ledger (185 rows). Element keys come from the CR element index, attribute keys are the lines of the CR attribute index for text, tspan and textPath, and property, value and feature keys were derived by reading every section of the text chapter (11.1 to 11.13) and giving each definition, each property definition table, each attribute value and each algorithm step or prose rule one key.

  • Elements: el:text, el:tspan, el:textPath
  • Attributes (one row per CR attribute index line): attr:dx@text, attr:dx@tspan, attr:dy@text, attr:dy@tspan, attr:href@textPath, attr:lengthAdjust@text, textPath, tspan, attr:method@textPath, attr:path@textPath, attr:rotate@text, attr:rotate@tspan, attr:side@textPath, attr:spacing@textPath, attr:startOffset@textPath, attr:textLength@text, attr:textLength@textPath, tspan, attr:x@text, attr:x@tspan, attr:y@text, attr:y@tspan
  • Attribute values: val:lengthAdjust/spacing, val:lengthAdjust/spacingAndGlyphs, val:method/align, val:method/stretch, val:side/left, val:side/right, val:spacing/auto, val:spacing/exact
  • SVG-defined text properties and values: prop:text-anchor, val:text-anchor/start, val:text-anchor/middle, val:text-anchor/end, prop:inline-size, val:inline-size/auto, val:inline-size/<length-percentage>, prop:shape-inside, prop:shape-subtract, prop:shape-image-threshold, prop:shape-margin, prop:shape-padding, prop:white-space, prop:text-overflow, val:text-overflow/clip, val:text-overflow/ellipsis, prop:dominant-baseline, val:dominant-baseline/use-script, val:dominant-baseline/no-change, val:dominant-baseline/reset-size, prop:alignment-baseline, val:alignment-baseline/text-before-edge, val:alignment-baseline/text-after-edge, val:alignment-baseline/auto, val:alignment-baseline/before-edge, val:alignment-baseline/after-edge, prop:baseline-shift, val:baseline-shift/baseline, prop:vertical-align, prop:glyph-orientation-horizontal, prop:glyph-orientation-vertical, val:glyph-orientation-vertical/auto, val:glyph-orientation-vertical/0, val:glyph-orientation-vertical/0deg, val:glyph-orientation-vertical/90, val:glyph-orientation-vertical/90deg, val:glyph-orientation-vertical/other, prop:kerning, prop:letter-spacing, prop:word-spacing, prop:line-height, prop:direction, prop:writing-mode
  • Definitions, characters and glyphs (11.1): feat:svg2/text-addressable-collapsed-whitespace, feat:svg2/text-addressable-display-none, feat:svg2/text-addressable-codepoint-index, feat:svg2/text-addressable-utf16-dom-index, feat:svg2/text-addressable-bidi-controls, feat:svg2/text-addressable-soft-hyphen, feat:svg2/text-addressable-before-text-transform, feat:svg2/text-white-space-characters, feat:svg2/text-typographic-character-clusters, feat:svg2/text-ligature-not-across-text-nodes, feat:svg2/text-ligature-not-across-chunks, feat:svg2/text-ligature-letter-spacing, feat:svg2/text-ligature-dx-textlength-keep, feat:svg2/text-initial-position-default-zero, feat:svg2/text-advance-fallback-vertical-em, feat:svg2/text-bidi-chunk-independent-blocks, feat:svg2/text-bidi-attribute-reordering, feat:svg2/text-bidi-scope-all-layouts, feat:svg2/text-bidi-orientation-change-blocks, feat:svg2/text-object-bounding-box-whole-text
  • x, y, dx, dy and rotate distribution rules (11.2.1, 11.2.2): feat:svg2/text-xy-list-per-character, feat:svg2/text-xy-extra-values-ignored, feat:svg2/text-xy-ancestor-fallback, feat:svg2/text-dxdy-list-cumulative, feat:svg2/text-dxdy-ancestor-fallback, feat:svg2/text-rotate-list-last-value-repeats, feat:svg2/text-rotate-ancestor-propagation, feat:svg2/text-rotate-no-effect-on-advance, feat:svg2/text-rotate-supplemental-to-path-and-orientation, feat:svg2/text-list-one-char-multiple-glyphs, feat:svg2/text-list-ligature-skip-and-carry, feat:svg2/text-list-ignored-in-auto-wrap, feat:svg2/text-xy-not-presentation-attributes, feat:svg2/text-list-invalid-attribute-empty-list
  • Text layout algorithm (11.3 to 11.5): feat:svg2/text-algo-css-stage-block-inline, feat:svg2/text-algo-nonrendered-descendants, feat:svg2/text-algo-setup, feat:svg2/text-algo-flags-anchored-chunk-line-start, feat:svg2/text-algo-resolve-character-positioning, feat:svg2/text-algo-new-chunk-count, feat:svg2/text-algo-in-text-path-ignore-cross-axis, feat:svg2/text-algo-textpath-starts-chunk, feat:svg2/text-algo-adjust-dx-dy, feat:svg2/text-algo-textlength-child-first, feat:svg2/text-algo-textlength-forced-break-skip, feat:svg2/text-algo-textlength-spacing-distribution, feat:svg2/text-algo-textlength-direction, feat:svg2/text-algo-textlength-not-with-inline-size, feat:svg2/text-algo-adjust-x-y, feat:svg2/text-algo-chunk-not-mid-typographic-character, feat:svg2/text-algo-anchoring-extents, feat:svg2/text-algo-anchoring-direction, feat:svg2/text-algo-path-side-reverse, feat:svg2/text-algo-path-offset-pathlength, feat:svg2/text-algo-path-mid-hidden-open, feat:svg2/text-algo-path-closed-wrap, feat:svg2/text-algo-path-position-and-angle, feat:svg2/text-algo-path-vertical, feat:svg2/text-algo-path-middle-flag, feat:svg2/text-algo-after-path-continuation, feat:svg2/text-algo-after-path-anchored-chunk-resets, feat:svg2/text-algo-order-of-operations
  • Pre-formatted text (11.6): feat:svg2/text-pre-no-auto-wrap, feat:svg2/text-pre-forced-breaks-white-space, feat:svg2/text-pre-properties-not-applied, feat:svg2/text-pre-reposition-order
  • Auto-wrapped text (11.4, 11.7): feat:svg2/text-wrap-inline-size-content-area, feat:svg2/text-wrap-inline-size-zero-disables, feat:svg2/text-wrap-initial-position, feat:svg2/text-wrap-anchor-per-line, feat:svg2/text-wrap-vertical, feat:svg2/text-wrap-css-line-breaking, feat:svg2/text-wrap-first-line-shift, feat:svg2/text-wrap-broken-lines
  • Text on a path (11.8): feat:svg2/textpath-path-over-href-precedence, feat:svg2/textpath-href-over-xlink-href, feat:svg2/textpath-path-error-fallback, feat:svg2/textpath-basic-shape-reference, feat:svg2/textpath-invalid-reference-not-rendered, feat:svg2/textpath-coordinate-system, feat:svg2/textpath-startoffset-percent, feat:svg2/textpath-anchor-on-path, feat:svg2/textpath-layout-midpoint-rule, feat:svg2/textpath-x-as-path-offset, feat:svg2/textpath-baseline-and-dy, feat:svg2/textpath-spacing-properties-along-path, feat:svg2/textpath-line-height-not-applicable
  • Rendering order, decoration, white space, bounding boxes, selection, fonts: feat:svg2/text-render-chunk-document-order, feat:svg2/text-render-chunk-fill-stroke-as-one, feat:svg2/text-render-fill-rule-not-applied, feat:svg2/text-pseudo-first-line-first-letter, feat:svg2/text-xml-space-default, feat:svg2/text-xml-space-preserve, feat:svg2/text-xml-space-duplicate-directives, feat:svg2/text-xml-space-index-after-processing, feat:svg2/text-whitespace-glyph-blank, feat:svg2/text-decoration-paint, feat:svg2/text-decoration-paint-order, feat:svg2/text-bbox-glyph-cells, feat:svg2/text-selection, feat:svg2/text-hit-char-at-position, feat:svg2/text-dom-lengths-and-counts, feat:svg2/text-dom-positions-extents-rotation, feat:svg2/text-dom-index-errors, feat:svg2/text-font-fallback, feat:svg2/text-missing-glyph, feat:svg2/text-a-inline
  • Vertical text: feat:svg2/text-vertical-flow-and-advance, feat:svg2/text-vertical-anchor, feat:svg2/text-vertical-baseline-central-compat, feat:svg2/text-vertical-positioning-lists, feat:svg2/text-vertical-textlength

Matrix

Elements

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
el:text conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#elementdef-text Block-level text content element. Children other than text content child elements, 'a' and character data do not render; paint, clip, mask and transform apply to the element as a whole; display:none removes it. donner/svg/SVGTextElement.cc:8-14 (CreateOn adds TextRootComponent and NoTraverseChildren); donner/svg/parser/AttributeParser.cc:1910-1984 donner/svg/components/text/TextSystem.cc:323-326 (only text content elements are collected), :567-574 (a nested text root is skipped), :338-375 (display:none, conditional processing); donner/svg/renderer/RenderingContext.cc:251-262 donner/svg/components/text/tests/TextSystem_tests.cc:110 BasicTextElement, :797 NestedTextRootIsIgnored, :819 NonTextChildrenAreIgnoredDuringSpanCollection; resvg third_party/resvg-test-suite/tests/text/text/simple-case.svg (runs) - - Both backends. The use shadow-tree path (donner/svg/text/TextEngine.cc:134 BuildShadowTextStyleContext) was located but not walked line by line: unverified. Markers on text: unverified (no marker consumer was found for text entities in the files read).
el:tspan conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#elementdef-tspan Inline text content child element allowed inside text or tspan. Outside a text element it does not render. Style and position adjustments apply to its characters. donner/svg/SVGTSpanElement.cc:5-10; donner/svg/parser/AttributeParser.cc:2081-2151 donner/svg/components/text/TextSystem.cc:562-614 (collected only below a text root, recursive), :364-375 (display:none and failed conditional processing hide the span and remove its characters from indexing) donner/svg/components/text/tests/TextSystem_tests.cc:127 TextWithTspan, :1481 DisplayNoneConsumesRotateIndices (asserts hidden characters take no index); resvg third_party/resvg-test-suite/tests/text/tspan/outside-the-text.svg, nested.svg, rotate-and-display-none.svg (run) - - Both backends. 'transform' on tspan having no effect is covered by resvg third_party/resvg-test-suite/tests/text/tspan/transform.svg; the code path that drops it was not read: unverified.
el:textPath partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#elementdef-textPath Inline text content child element placing its content on a path. Valid as a child of text (and of 'a' inside text). An invalid reference puts the element in error and none of its content renders. donner/svg/SVGTextPathElement.cc:6-12; donner/svg/parser/AttributeParser.cc:2156-2269 donner/svg/components/text/TextSystem.cc:260-284 and :349-362 (a textPath whose parent is not the text root is hidden), :685-702 (unresolvable geometry hides the glyphs) donner/svg/components/text/tests/TextSystem_tests.cc:841 NestedTextPathContentIsHidden, :1239 TextPathNestedUnderTspanMarksFailure, :500 TextPathWithInvalidReferenceMarksFailure, :1223 TextPathWithoutHrefIsHidden; resvg third_party/resvg-test-suite/tests/text/textPath/nested.svg (golden override), invalid-link.svg, no-link.svg low S Both backends. Gap: the parent test requires the text root itself, so text > a > textPath (permitted, 'a' is transparent) is hidden; by code reading, no test. The C++ class also derives from SVGTextPositioningElement and the parser stores x/y/dx/dy/rotate on textPath (donner/svg/parser/AttributeParser.cc:2214-2264) although the CR gives textPath none of them; layout ignores them (donner/svg/components/text/TextSystem.cc:621, :294).

Attributes (one row per CR attribute index line)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
attr:dx@text partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDXAttribute Same list grammar as x; each value shifts the current text position along x before the character; cumulative; animatable. donner/svg/parser/AttributeParser.cc:1949-1958 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:643-655; donner/svg/text/TextEngine.cc:6571-6575, :7101-7103, :6234-6251 donner/svg/components/text/tests/TextSystem_tests.cc:210 DxDyPositioning, :233 RootDxDyBecomesScalarStartPosition; resvg third_party/resvg-test-suite/tests/text/text/dx-and-dy-with-multiple-values.svg, percent-value-on-dx-and-dy.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:dx@tspan partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDXAttribute As dx on text, scoped to the tspan subtree; nearest ancestor value used where the tspan has none. donner/svg/parser/AttributeParser.cc:2106-2115 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:616-641 (nearest ancestor lookup by subtree offset); donner/svg/text/TextEngine.cc:6234-6251 donner/svg/components/text/tests/TextSystem_tests.cc:1101 PositioningAttributesUseCodepointsAcrossTransparentSpans; resvg third_party/resvg-test-suite/tests/text/tspan/with-dy.svg, third_party/resvg-test-suite/tests/text/text/dx-and-dy-with-less-values-than-characters.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:dy@text partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDYAttribute Same list grammar; each value shifts the current text position along y; cumulative; animatable. donner/svg/parser/AttributeParser.cc:1959-1968 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:643-655; donner/svg/text/TextEngine.cc:6582-6586, :7110-7112 donner/svg/components/text/tests/TextSystem_tests.cc:210 DxDyPositioning; resvg third_party/resvg-test-suite/tests/text/text/dx-and-dy-instead-of-x-and-y.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:dy@tspan partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDYAttribute As dy on text, scoped to the tspan subtree. donner/svg/parser/AttributeParser.cc:2116-2125 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:616-641; donner/svg/text/TextEngine.cc:7110-7112 resvg third_party/resvg-test-suite/tests/text/tspan/with-dy.svg, pseudo-multi-line.svg (run); donner/svg/renderer/tests/TextEngineScripted_tests.cc:2001 HorizontalTextPathCarriesDyAlongThePathNormal low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:href@textPath partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementHrefAttribute URL reference to a path or basic shape used when no usable 'path' attribute exists. An invalid reference (missing target, or a target that is neither path nor basic shape) puts the element in error and nothing in it renders. href wins over xlink:href. Animatable. donner/svg/parser/AttributeParser.cc:2161-2162 (href and xlink:href both call setHref) donner/svg/components/text/TextSystem.cc:172-238 (Reference resolve, computed path or shape path, referenced element transform applied), :692-695 (failure hides glyphs) donner/svg/components/text/tests/TextSystem_tests.cc:322 TextPathReference, :500 TextPathWithInvalidReferenceMarksFailure, :608 TextPathHrefToRectUsesShapeEquivalentPath, :629 TextPathHrefToCircleUsesShapeEquivalentPath, :642 TextPathSelfReferencingHrefFails; donner/svg/tests/SVGTextPathElement_tests.cc:151 XlinkHref; resvg third_party/resvg-test-suite/tests/text/textPath/link-to-rect.svg, invalid-link.svg low S Both backends. Gap by code reading: href and xlink:href write the same field, so whichever attribute is applied last wins, which is always xlink:href because attributes are applied sorted by local name and then prefix (see feat:xlink/href-precedence#2 in xml_data_formats.md); the CR orders path, then href, then xlink:href. No test has both. Animation of href: unverified.
attr:lengthAdjust@text, textPath, tspan conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementLengthAdjustAttribute Keyword spacing | spacingAndGlyphs, initial spacing; selects whether textLength changes only advances or also stretches glyphs along the inline axis. Animatable. donner/svg/parser/AttributeParser.cc:1919-1928 (text), :2140-2145 (tspan), :2183-2192 (textPath): exact case-sensitive match, anything else leaves the default donner/svg/text/TextEngine.cc:2255-2276 (spacing versus glyph scale), :1611-1640 (glyph stretch) donner/svg/tests/SVGTextElement_tests.cc:138 TextLengthAndAdjust; donner/svg/renderer/tests/TextEngine_tests.cc:456 ApplyTextLengthAdjustsPerSpanSpacingAndVerticalGlyphScaling, :728 ApplyTextLengthAdjustsGlobalSpacingAndGlyphsHorizontally; resvg third_party/resvg-test-suite/tests/text/lengthAdjust/spacingAndGlyphs.svg, text-on-path.svg (run) - - Both backends. An invalid keyword warns on text and textPath and is silently ignored on tspan; all three keep 'spacing'. Animation of the keyword: unverified.
attr:method@textPath conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementMethodAttribute Keyword align | stretch, initial align. Animatable. donner/svg/parser/AttributeParser.cc:2193-2199 donner/svg/components/text/TextSystem.cc:253; donner/svg/text/TextEngine.cc:1412-1421, :1453-1462; donner/svg/text/TextPathWarp.h donner/svg/tests/SVGTextPathElement_tests.cc:166 ParseMethodSideSpacingAndPositioningLists; donner/svg/components/text/tests/TextSystem_tests.cc:714 TextPathMethodPropagatesToComputedSpan; donner/svg/renderer/tests/TextEngine_tests.cc:4262 TextPathStretchFollowsEachGlyphChord - - Both backends. Unknown keyword ignored (default kept). Animation of the keyword: unverified.
attr:path@textPath conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementPathAttribute Path data placed directly on the element; takes precedence over href. If it yields no valid segment the href is used; if it yields segments before an error, the valid prefix is used and href is not a fallback. Animatable. donner/svg/parser/AttributeParser.cc:2163-2174 (PathParser; an empty result leaves inlinePath unset) donner/svg/components/text/TextSystem.cc:165-170 donner/svg/components/text/tests/TextSystem_tests.cc:535 TextPathInlinePathAttributeSuppliesGeometry, :549 TextPathInlinePathTakesPrecedenceOverHref, :563 TextPathInvalidInlinePathFallsBackToHref, :578 TextPathPartiallyValidInlinePathKeepsItsPrefixAndIgnoresHref, :595 TextPathInvalidInlinePathWithoutHrefFails; resvg third_party/resvg-test-suite/tests/text/textPath/with-path.svg, with-invalid-path-and-xlink-href.svg - - Both backends. Edge not established: a value holding only a moveto (a subpath but no segment) may count as non-empty and suppress the href fallback: unverified. Animation of path: unverified.
attr:rotate@text partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute List grammar [ <number>+ ]# of supplemental rotations in degrees per addressable character; the last value repeats; non-additive animation. donner/svg/parser/AttributeParser.cc:1969-1978 (ListParser, ParseAngleAttribute donner/svg/parser/AttributeParser.cc:302-331 with numbers read as degrees) donner/svg/components/text/TextSystem.cc:657-666, :287-317; donner/svg/text/TextEngine.cc:6999-7007 donner/svg/components/text/tests/TextSystem_tests.cc:257 RotateAttribute; donner/svg/tests/SVGTextElement_tests.cc:922 GetRotationOfCharWithRotateAttribute, :127 SetAttributeRejectsInvalidPositioningLists; resvg third_party/resvg-test-suite/tests/text/text/rotate.svg, rotate-with-multiple-values.svg, rotate-with-an-invalid-angle.svg (run) low S Both backends. Gap: on the XML parse path each token goes through an angle parser that also accepts CSS angle units, so rotate="10deg" or "1rad" is accepted where the grammar allows only numbers; a token that fails (for example 5mm) is dropped and the others kept. The setAttribute path (donner/svg/components/text/TextPositioningPresentation.cc:42-61) accepts numbers only and rejects the whole list, so the two entry points disagree.
attr:rotate@tspan partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute List grammar [ <number>+ ]# of supplemental rotations in degrees per addressable character; the last value repeats; non-additive animation. A tspan without rotate takes the nearest ancestor's value for that character. donner/svg/parser/AttributeParser.cc:2126-2135 donner/svg/components/text/TextSystem.cc:287-317 (nearest ancestor list indexed by subtree offset, clamped to its last value) donner/svg/components/text/tests/TextSystem_tests.cc:1013 InheritedRotateRepeatsAcrossChildSpans, :1029 NestedRotateUsesAncestorSubtreeIndicesAndOverrides; resvg third_party/resvg-test-suite/tests/text/tspan/nested-rotate.svg, rotate-on-child.svg (run) low S Both backends. Gap: on the XML parse path each token goes through an angle parser that also accepts CSS angle units, so rotate="10deg" or "1rad" is accepted where the grammar allows only numbers; a token that fails (for example 5mm) is dropped and the others kept. The setAttribute path (donner/svg/components/text/TextPositioningPresentation.cc:42-61) accepts numbers only and rejects the whole list, so the two entry points disagree.
attr:side@textPath conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSideAttribute Keyword left | right, initial left; right reverses the path. Animatable. donner/svg/parser/AttributeParser.cc:2200-2206 donner/svg/components/text/TextSystem.cc:249-252 (reversed geometry, so startOffset counts from the former end) donner/svg/components/text/tests/TextSystem_tests.cc:656 TextPathSideLeftKeepsTravelDirection, :670 TextPathSideRightReversesTravelDirection, :684 TextPathSideRightMeasuresStartOffsetFromTheOriginalEnd, :701 TextPathSideRightAppliesToInlinePathGeometry; resvg third_party/resvg-test-suite/tests/text/textPath/side=right.svg - - Both backends. Animation of the keyword: unverified.
attr:spacing@textPath conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSpacingAttribute Keyword auto | exact, initial exact; auto lets the user agent adjust inter-character spacing. donner/svg/parser/AttributeParser.cc:2207-2213 donner/svg/components/text/TextPathComponent.h:44-49 (auto is documented as the same spacing as exact; no layout code reads the field) donner/svg/tests/SVGTextPathElement_tests.cc:166 ParseMethodSideSpacingAndPositioningLists; resvg third_party/resvg-test-suite/tests/text/textPath/spacing=auto.svg (golden override) - - Both backends. auto equal to exact is permitted because the adjustment is at the user agent's discretion.
attr:startOffset@textPath partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementStartOffsetAttribute <length-percentage> | <number>, initial 0. A percentage is a fraction of the whole path length; other lengths are user-space distances in the textPath coordinate system, scaled by the referenced element's pathLength. Negative values and values past the end are allowed. Animatable. donner/svg/parser/AttributeParser.cc:2175-2178 donner/svg/components/text/TextSystem.cc:134-161 donner/svg/components/text/tests/TextSystem_tests.cc:346 TextPathWithStartOffset, :404 TextPathTransformsPercentageAndAbsoluteOffsetsInTextCoordinates; donner/svg/tests/SVGTextPathElement_tests.cc:84-98; resvg third_party/resvg-test-suite/tests/text/textPath/startOffset=10percent.svg, startOffset=30.svg, startOffset=5mm.svg, startOffset=-100.svg (golden overrides), startOffset=9999.svg low S Both backends. Gaps: (1) no adjustment for the referenced element's pathLength (a search for pathLength in donner/svg/components/text and donner/svg/text finds only measured path length uses); (2) non-percentage units resolve with an empty viewport and default font metrics (donner/svg/components/text/TextSystem.cc:158-159), so em and ex ignore the element's font-size. Animation is implemented (donner/svg/components/text/TextSystem.cc:136-149).
attr:textLength@text conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementTextLengthAttribute <length-percentage> | <number>; the author's total advance for the element, used to adjust advances (and glyphs with spacingAndGlyphs). A negative value is an error. Animatable. donner/svg/parser/AttributeParser.cc:1915-1918 donner/svg/text/TextEngine.cc:377-401 (root value), :2255-2276 (negative or non-finite target makes no adjustment), :2427-2640 donner/svg/tests/SVGTextElement_tests.cc:138 TextLengthAndAdjust; donner/svg/renderer/tests/TextEngine_tests.cc:502 ApplyTextLengthAdjustsGlobalSpacing, :641 ApplyTextLengthAcceptsZeroGlobalSpacing; resvg third_party/resvg-test-suite/tests/text/textLength/150.svg, 40mm.svg, 75percent.svg, negative.svg, zero.svg (run) - - Both backends. The interaction rules with forced breaks and inline-size are separate feature rows.
attr:textLength@textPath, tspan conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementTextLengthAttribute As on text, for the element's own content; a nested value governs its content exclusively and the ancestor treats that content as fixed. donner/svg/parser/AttributeParser.cc:2136-2139 (tspan), :2179-2182 (textPath) donner/svg/text/TextEngine.cc:985-990, :1942-2420 (owner plan: child scopes resolved first and treated as one item) donner/svg/tests/SVGTextElement_tests.cc:738 TSpanTextLengthAdvancesFollowingText; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1669 TextPathLengthIncludesMixedDirectAndChildContent, :1701 TextPathLengthPreservesNestedOverrides, :1749 TextPathLengthHandlesEmptySingleZeroNegativeAndLargeValues; resvg third_party/resvg-test-suite/tests/text/textLength/150-on-tspan.svg, on-text-and-tspan.svg (run) - - Both backends.
attr:x@text partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute List grammar [ [ <length-percentage> | <number> ]+ ]# giving absolute positions for the first n addressable characters of the element subtree; no initial value; an invalid attribute acts as an empty list; animatable. donner/svg/parser/AttributeParser.cc:1929-1938 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:643-655, :711-712; donner/svg/text/TextEngine.cc:6565-6570, :7098-7100 donner/svg/components/text/tests/TextSystem_tests.cc:187 PerCharacterPositioning; donner/svg/tests/SVGTextElement_tests.cc:72 PositionAttributes, :127 SetAttributeRejectsInvalidPositioningLists; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-multiple-values.svg, percent-value-on-x-and-y.svg, em-and-ex-coordinates.svg, mm-coordinates.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:x@tspan partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute List grammar [ [ <length-percentage> | <number> ]+ ]# giving absolute positions for the first n addressable characters of the element subtree; no initial value; an invalid attribute acts as an empty list; animatable. Characters without a value use the nearest ancestor's value for that character. donner/svg/parser/AttributeParser.cc:2086-2095 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:616-641; donner/svg/text/TextEngine.cc:7098-7100 donner/svg/components/text/tests/TextSystem_tests.cc:163 PositioningInheritedFromRoot, :297 MultipleTspanWithPositioning, :1414 NoDoubleApplication; resvg third_party/resvg-test-suite/tests/text/tspan/with-x-and-y.svg, multiple-coordinates.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:y@text partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementYAttribute List grammar [ [ <length-percentage> | <number> ]+ ]# giving absolute positions for the first n addressable characters of the element subtree; no initial value; an invalid attribute acts as an empty list; animatable. donner/svg/parser/AttributeParser.cc:1939-1948 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:643-655; donner/svg/text/TextEngine.cc:6576-6581, :7106-7109 donner/svg/components/text/tests/TextSystem_tests.cc:187 PerCharacterPositioning; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-multiple-values.svg (run) low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).
attr:y@tspan partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementYAttribute List grammar [ [ <length-percentage> | <number> ]+ ]# giving absolute positions for the first n addressable characters of the element subtree; no initial value; an invalid attribute acts as an empty list; animatable. Ancestor fallback as for x. donner/svg/parser/AttributeParser.cc:2096-2105 (ListParser comma-or-space list, each token through ParseLengthAttribute donner/svg/parser/AttributeParser.cc:90-112 with optional unit); setAttribute path donner/svg/components/text/TextPositioningPresentation.cc:18-39 donner/svg/components/text/TextSystem.cc:616-641; donner/svg/text/TextEngine.cc:7106-7109 resvg third_party/resvg-test-suite/tests/text/tspan/only-with-y.svg, with-x-and-y.svg (run); donner/svg/renderer/tests/TextEngineScripted_tests.cc:1124 PostTextPathCursorYOnlyUsesOrdinaryUnspecifiedAxis low S Both backends. Verified: lengths, percentages (of the viewport axis), unitless numbers, comma or space separators. Gaps by code reading: (1) on the XML parse path an unparsable token is skipped and the remaining tokens are kept, shifting later values onto earlier characters, where the spec treats the attribute as invalid (the setAttribute path rejects the whole list, so the two paths disagree); (2) em and ex resolve against the text root's font metrics (donner/svg/text/TextEngine.cc:6565-6587, :7093-7113 use the root params) rather than the element carrying the attribute. Animation of the list is implemented (donner/svg/components/animation/AnimationSystem.cc:332).

Attribute values

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
val:lengthAdjust/spacing conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementLengthAdjustAttribute Only advances change; n characters receive n-1 adjustments. donner/svg/parser/AttributeParser.cc:1920-1921 donner/svg/text/TextEngine.cc:2265-2268 (delta divided by spacing units minus one) donner/svg/renderer/tests/TextEngine_tests.cc:456, :502; resvg third_party/resvg-test-suite/tests/text/textLength/150.svg - - Both backends.
val:lengthAdjust/spacingAndGlyphs conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementLengthAdjustAttribute Advances change and glyphs are stretched or compressed along the inline axis only. donner/svg/parser/AttributeParser.cc:1922-1923 donner/svg/text/TextEngine.cc:2271-2281, :1611-1640 donner/svg/renderer/tests/TextEngine_tests.cc:728, :3673 VerticalSpacingAndGlyphsScalesUprightGlyphsFromTheirPenPositions; resvg third_party/resvg-test-suite/tests/text/lengthAdjust/spacingAndGlyphs.svg, vertical.svg - - Both backends.
val:method/align conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementMethodAttribute Each typographic character is placed with a rigid transform, no warping. donner/svg/parser/AttributeParser.cc:2195-2196 donner/svg/text/TextEngine.cc:1392-1432 donner/svg/tests/SVGTextElement_tests.cc:308 AlignEndpointFollowsTheSlopedPathFrame; resvg third_party/resvg-test-suite/tests/text/textPath/simple-case.svg (resvg v0.49.0 reference) - - Both backends.
val:method/stretch conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementMethodAttribute Glyph outlines are converted to paths and their points moved onto perpendiculars of the path, so connected scripts stay connected. donner/svg/parser/AttributeParser.cc:2197-2198 donner/svg/text/TextEngine.cc:1412-1421, :1453-1462; donner/svg/text/TextPathWarp.h donner/svg/renderer/tests/TextEngine_tests.cc:4262 TextPathStretchFollowsEachGlyphChord, :4353 TextPathStretchKeepsCombiningMarkInBaseClusterFrame; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1001; resvg third_party/resvg-test-suite/tests/text/textPath/method=stretch.svg compares against a Donner regression golden (the original snapshot reference equals align) - - Both backends (outline warp happens after shaping).
val:side/left conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSideAttribute Default: text on the left of the path direction. donner/svg/parser/AttributeParser.cc:2202-2203 donner/svg/components/text/TextSystem.cc:251-252 donner/svg/components/text/tests/TextSystem_tests.cc:656 - - Both backends.
val:side/right conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSideAttribute Reverses the path before layout. donner/svg/parser/AttributeParser.cc:2204-2205 donner/svg/components/text/TextSystem.cc:251-252 donner/svg/components/text/tests/TextSystem_tests.cc:670, :684; resvg third_party/resvg-test-suite/tests/text/textPath/side=right.svg - - Both backends.
val:spacing/auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSpacingAttribute User agent may adjust spacing for appearance. donner/svg/parser/AttributeParser.cc:2209-2210 donner/svg/components/text/TextPathComponent.h:44-49 (no consumer) resvg third_party/resvg-test-suite/tests/text/textPath/spacing=auto.svg (resvg v0.49.0 reference) - - Both backends. Same output as exact.
val:spacing/exact conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementSpacingAttribute Spacing exactly per the text on a path layout rules. donner/svg/parser/AttributeParser.cc:2211-2212 donner/svg/text/TextEngine.cc:1230-1280 donner/svg/renderer/tests/TextEngineScripted_tests.cc:2030 TextPathAnchorUsesIntermediateGlyphExtents; resvg third_party/resvg-test-suite/tests/text/textPath/with-letter-spacing.svg - - Both backends.

SVG-defined text properties and values

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:text-anchor conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextAnchorProperty start | middle | end, initial start, applies to text content elements, inherited, discrete animation, computed as specified. Works as attribute and declaration. donner/svg/properties/PropertyRegistry.cc:188-207 (single identifier, ASCII case-insensitive); donner/svg/properties/PropertyRegistry.cc:2794; presentation attribute list donner/svg/properties/PropertyRegistry.cc:2491 donner/svg/properties/PropertyRegistry.h:438-440 (inherited, initial start); donner/svg/text/TextEngine.cc:895-896, :2843-2853 (anchor of the element holding the chunk's first character) donner/svg/properties/tests/PropertyRegistry_tests.cc:1697-1706; donner/svg/tests/SVGTextElement_tests.cc:1011 TextAnchorMiddleShiftsStartPosition, :1055 TextAnchorEndShiftsStartPosition; resvg third_party/resvg-test-suite/tests/text/text-anchor/* (13 cases run; on-tspan-with-arabic.svg full backend only) - - Both backends. Invalid values are dropped (resvg text-anchor/invalid-value-on-text.svg).
val:text-anchor/start conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextAnchorProperty Start edge of the chunk at the initial text position: left for ltr, right for rtl, top for vertical. donner/svg/properties/PropertyRegistry.cc:194-195 donner/svg/text/TextEngine.cc:848-853, :2662-2667 donner/svg/tests/SVGTextElement_tests.cc:1065 RtlDirectionMirrorsStartAndEndAnchors; resvg third_party/resvg-test-suite/tests/text/text-anchor/start-on-text.svg - - Both backends.
val:text-anchor/middle conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextAnchorProperty Geometric middle of the chunk extent at the initial text position. donner/svg/properties/PropertyRegistry.cc:196-197 donner/svg/text/TextEngine.cc:2662-2667 donner/svg/tests/SVGTextElement_tests.cc:1011; donner/svg/renderer/tests/TextEngine_tests.cc:770 ApplyTextAnchorAdjustsVerticalMiddleChunks; resvg third_party/resvg-test-suite/tests/text/text-anchor/middle-on-text.svg - - Both backends.
val:text-anchor/end conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextAnchorProperty End edge of the chunk at the initial text position. donner/svg/properties/PropertyRegistry.cc:198-199 donner/svg/text/TextEngine.cc:848-853, :2662-2667 donner/svg/tests/SVGTextElement_tests.cc:1037, :1065; resvg third_party/resvg-test-suite/tests/text/text-anchor/end-on-text.svg, end-with-letter-spacing.svg - - Both backends.
prop:inline-size partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty auto | <length-percentage>, initial auto, applies to text elements, not inherited; percentages refer to viewport width for horizontal text and viewport height for vertical text; computed value an absolute length or percentage; zero disables wrapping. donner/svg/properties/PropertyRegistry.cc:850-868; donner/svg/properties/PropertyRegistry.cc:2913; presentation attribute list donner/svg/properties/PropertyRegistry.cc:2468 donner/svg/properties/PropertyRegistry.h:511-512 (not inherited); donner/svg/text/TextEngine.cc:403-408 (read from the text root, resolved on the X axis) donner/svg/properties/tests/PropertyRegistry_tests.cc:1265-1292; donner/svg/text/tests/InlineSizeWrap_tests.cc:83, :198; donner/svg/renderer/tests/TextEngine_tests.cc:4579, :4593, :4612 low S Both backends. Gaps: (1) percentages always resolve against the viewport width, also for vertical text; (2) a negative length is clamped to 0 instead of being an invalid declaration; (3) auto is stored as 0, which loses the auto/0 distinction in the computed value but not in rendering.
val:inline-size/auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty No wrapping area. donner/svg/properties/PropertyRegistry.cc:855-859 donner/svg/text/TextEngine.cc:7484-7491 (no wrap when not positive) donner/svg/renderer/tests/TextEngine_tests.cc:4579 InlineSizeUnsetKeepsSingleLine - - Both backends.
val:inline-size/<length-percentage> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty Width (horizontal) or height (vertical) of the wrapping rectangle; percentage of the matching viewport dimension. donner/svg/properties/PropertyRegistry.cc:862-867 donner/svg/text/TextEngine.cc:407-408 donner/svg/renderer/tests/TextEngine_tests.cc:4593 InlineSizeWrapsIntoStackedLines; donner/svg/properties/tests/PropertyRegistry_tests.cc:1285-1292 low S Both backends. Vertical percentage uses the wrong axis; negative clamps.
prop:shape-inside not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea Not defined by this CR: the content area is created only by inline-size. search for 'shape-inside' in donner/svg/properties/PropertyRegistry.cc: no match none none - - Removed from the CR (a search of the CR chapter for 'shape-' finds no property definition). Not a gap.
prop:shape-subtract not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea Not defined by this CR: the content area is created only by inline-size. search for 'shape-subtract' in donner/svg/properties/PropertyRegistry.cc: no match none none - - Removed from the CR (a search of the CR chapter for 'shape-' finds no property definition). Not a gap.
prop:shape-image-threshold not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea Not defined by this CR: the content area is created only by inline-size. search for 'shape-image-threshold' in donner/svg/properties/PropertyRegistry.cc: no match none none - - Removed from the CR (a search of the CR chapter for 'shape-' finds no property definition). Not a gap.
prop:shape-margin not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea Not defined by this CR: the content area is created only by inline-size. search for 'shape-margin' in donner/svg/properties/PropertyRegistry.cc: no match none none - - Removed from the CR (a search of the CR chapter for 'shape-' finds no property definition). Not a gap.
prop:shape-padding not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea Not defined by this CR: the content area is created only by inline-size. search for 'shape-padding' in donner/svg/properties/PropertyRegistry.cc: no match none none - - Removed from the CR (a search of the CR chapter for 'shape-' finds no property definition). Not a gap.
prop:white-space conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextWhiteSpace Controls collapsing and wrapping for SVG text; values and meaning come from CSS Text 3; pre and pre-line turn line feeds into forced breaks that start new lines and new anchored chunks. donner/svg/properties/PropertyRegistry.cc:2747-2775 (normal, pre, nowrap, pre-wrap, break-spaces, pre-line) donner/svg/properties/PropertyRegistry.h:424-425 (inherited); donner/svg/components/text/TextSystem.cc:61-111, :480-496; donner/svg/text/TextEngine.cc:7484-7507 donner/svg/components/text/tests/TextSystem_tests.cc:1662 CssWhiteSpaceNormalizesAllScalarModes, :1706 CssWhiteSpacePreLineTrimsAcrossSpans; donner/svg/renderer/tests/TextEngine_tests.cc:4645 WhiteSpacePreservesForcedBreaksWithoutInlineSize - - Both backends. The value definitions themselves belong to text_font_properties.md; only the SVG application is recorded here.
prop:text-overflow missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextOverflowProperty clip | ellipsis apply to text with a wrapping area whose content overflows a line; ellipsis is visual only and DOM methods ignore it; other values act as unspecified; no effect on pre-formatted text or text on a path. donner/svg/properties/PropertyRegistry.cc:2494 and donner/svg/SVGElementNames.h:94 (attribute name only; no parser entry) search for 'text-overflow' and 'textOverflow' outside tests: only those two name tables none low M Both backends.
val:text-overflow/clip missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextOverflowProperty Overflowing text is clipped at the wrapping area edge. none none none low S See prop:text-overflow.
val:text-overflow/ellipsis missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextOverflowProperty An ellipsis is drawn inside the area in place of the overflowing characters. none none none low M See prop:text-overflow.
prop:dominant-baseline legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DominantBaselineProperty Defined by CSS Inline 3; SVG 2 drops use-script, no-change and reset-size, makes the property inherited, and uses the value to align glyphs to x and y; for sideways vertical text auto aligns as central for compatibility. donner/svg/properties/PropertyRegistry.cc:575-607; donner/svg/properties/PropertyRegistry.cc:2841 donner/svg/properties/PropertyRegistry.h:466-469 (inherited); donner/svg/text/TextEngine.cc:900-923, :1002-1029, :6506-6525 (vertical auto uses the central origin) donner/svg/properties/tests/PropertyRegistry_tests.cc:1419; donner/svg/renderer/tests/TextEngine_tests.cc:368 ComputeBaselineShiftCoversBaselineKeywords, :1031 SidewaysVerticalGlyphCentersOnAscentDescentMidpoint; resvg third_party/resvg-test-suite/tests/text/dominant-baseline/* (reset-size.svg and use-script.svg marked deprecated) low S Both backends. The three removed keywords still parse; use-script and reset-size act as auto and no-change copies the parent value, where an invalid declaration would have inherited. Baseline positions are fixed fractions of ascent and descent, which is a CSS Inline matter for text_font_properties.md.
val:dominant-baseline/use-script legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DominantBaselineProperty Removed in SVG 2; should be an invalid value. donner/svg/properties/PropertyRegistry.cc:593-598 donner/svg/text/TextEngine.cc:900-915, :1008-1013 donner/svg/properties/tests/PropertyRegistry_tests.cc:1419 (accepted); resvg third_party/resvg-test-suite/tests/text/dominant-baseline/use-script.svg low S Both backends.
val:dominant-baseline/no-change legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DominantBaselineProperty Removed in SVG 2; should be an invalid value. donner/svg/properties/PropertyRegistry.cc:593-598 donner/svg/text/TextEngine.cc:900-915, :1008-1013 donner/svg/properties/tests/PropertyRegistry_tests.cc:1419 (accepted); resvg third_party/resvg-test-suite/tests/text/dominant-baseline/no-change.svg low S Both backends.
val:dominant-baseline/reset-size legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DominantBaselineProperty Removed in SVG 2; should be an invalid value. donner/svg/properties/PropertyRegistry.cc:593-598 donner/svg/text/TextEngine.cc:900-915, :1008-1013 donner/svg/properties/tests/PropertyRegistry_tests.cc:1419 (accepted); resvg third_party/resvg-test-suite/tests/text/dominant-baseline/reset-size.svg low S Both backends.
prop:alignment-baseline partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Defined by CSS Inline 3; SVG 2 removes auto, before-edge and after-edge, and maps text-before-edge to text-top and text-after-edge to text-bottom. donner/svg/properties/PropertyRegistry.cc:615-650; donner/svg/properties/PropertyRegistry.cc:2877 donner/svg/properties/PropertyRegistry.h:490-492 (not inherited); donner/svg/text/TextEngine.cc:917-919 (a non-auto value replaces the dominant baseline), :6488-6495 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444-1451; resvg third_party/resvg-test-suite/tests/text/alignment-baseline/* (four cases have placeholder references and run for no-crash only; hanging-on-vertical.svg skipped) low S Both backends. The two required legacy mappings are present; the three removed keywords are still accepted (auto as baseline, before-edge and after-edge as the text edges). How the chosen baseline is aligned against the parent is a CSS Inline matter for text_font_properties.md.
val:alignment-baseline/text-before-edge conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Maps to text-top. donner/svg/properties/PropertyRegistry.cc:638-641 donner/svg/text/TextEngine.cc:1023 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444; donner/svg/renderer/tests/TextEngine_tests.cc:368 - - Both backends.
val:alignment-baseline/text-after-edge conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Maps to text-bottom. donner/svg/properties/PropertyRegistry.cc:625-627 donner/svg/text/TextEngine.cc:1024-1025 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444; donner/svg/renderer/tests/TextEngine_tests.cc:368 - - Both backends.
val:alignment-baseline/auto legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Removed in SVG 2. donner/svg/properties/PropertyRegistry.cc:623-641 donner/svg/text/TextEngine.cc:917-919 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444 (accepted) low S Both backends. Accepted as baseline.
val:alignment-baseline/before-edge legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Removed in SVG 2. donner/svg/properties/PropertyRegistry.cc:623-641 donner/svg/text/TextEngine.cc:917-919 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444 (accepted) low S Both backends. Accepted as text-top.
val:alignment-baseline/after-edge legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#AlignmentBaselineProperty Removed in SVG 2. donner/svg/properties/PropertyRegistry.cc:623-641 donner/svg/text/TextEngine.cc:917-919 donner/svg/properties/tests/PropertyRegistry_tests.cc:1444 (accepted) low S Both backends. Accepted as text-bottom.
prop:baseline-shift partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#BaselineShiftProperty Defined by CSS Inline 3 (<length-percentage> | sub | super | top | center | bottom); SVG 2 notes the 'baseline' keyword was removed; shifts nest additively. donner/svg/properties/PropertyRegistry.cc:808-834; donner/svg/properties/PropertyRegistry.cc:2868 donner/svg/properties/PropertyRegistry.h:484-485; donner/svg/text/TextEngine.cc:944-977 (ancestor shifts collected), :2900-2946 (font sub/super metrics, nested sum) donner/svg/properties/tests/PropertyRegistry_tests.cc:854, :1802; donner/svg/renderer/tests/TextEngine_tests.cc:807 ComputeSpanBaselineShiftUsesFontMetricsAndLengthFallbacks; resvg third_party/resvg-test-suite/tests/text/baseline-shift/* (two cases thresholded) low S Both backends. Gaps: 'baseline' still accepted; top, center and bottom absent; percentages are taken of font-size; sub and super are stored as the sentinel lengths -0.33em and 0.4em, so an authored length with exactly that value is treated as the keyword (donner/svg/text/TextEngine.cc:949-953). Value-level conformance belongs to the CSS Inline rows of text_font_properties.md.
val:baseline-shift/baseline legacy https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#BaselineShiftProperty Removed keyword (redundant with a zero length). donner/svg/properties/PropertyRegistry.cc:815-817 donner/svg/text/TextEngine.cc:2900-2946 resvg third_party/resvg-test-suite/tests/text/baseline-shift/nested-with-baseline-1.svg low S Both backends.
prop:vertical-align missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#BaselineShiftProperty Shorthand for alignment-baseline and baseline-shift, preferred in new content. search for 'vertical-align' in donner/svg/properties/PropertyRegistry.cc: no match none none low S Both backends. Definition lives in CSS Inline 3.
prop:glyph-orientation-horizontal not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationHorizontalProperty Removed in SVG 2. donner/svg/properties/PropertyRegistry.cc:2465 (name kept in the presentation attribute name table; no parser entry) none resvg third_party/resvg-test-suite/tests/text/glyph-orientation-horizontal/simple-case.svg marked deprecated (the TextGlyphOrientationHorizontal registration in donner/svg/renderer/tests/resvg_test_suite.cc) - - Removed; Donner does not implement it.
prop:glyph-orientation-vertical conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Obsolete; kept as an alias shorthand of text-orientation: auto to mixed, 0 and 0deg to upright, 90 and 90deg to sideways; anything else invalid. donner/svg/properties/PropertyRegistry.cc:771-803; donner/svg/properties/PropertyRegistry.cc:2904-2911 (writes the text-orientation slot) donner/svg/text/TextEngine.cc:898, :6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525, :1648; resvg third_party/resvg-test-suite/tests/text/glyph-orientation-vertical/simple-case.svg renders without a comparison (undefined behavior: Noto Sans has no vertical metrics); RendererRegressionTests.GlyphOrientationVerticalZeroDrawsUprightGlyphs checks the alias - - Both backends.
val:glyph-orientation-vertical/auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Alias of text-orientation mixed. donner/svg/properties/PropertyRegistry.cc:771-797 donner/svg/text/TextEngine.cc:6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525 - - Both backends.
val:glyph-orientation-vertical/0 conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Alias of text-orientation upright. donner/svg/properties/PropertyRegistry.cc:771-797 donner/svg/text/TextEngine.cc:6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525 - - Both backends.
val:glyph-orientation-vertical/0deg conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Alias of text-orientation upright. donner/svg/properties/PropertyRegistry.cc:771-797 donner/svg/text/TextEngine.cc:6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525 - - Both backends.
val:glyph-orientation-vertical/90 conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Alias of text-orientation sideways. donner/svg/properties/PropertyRegistry.cc:771-797 donner/svg/text/TextEngine.cc:6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525 - - Both backends.
val:glyph-orientation-vertical/90deg conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Alias of text-orientation sideways. donner/svg/properties/PropertyRegistry.cc:771-797 donner/svg/text/TextEngine.cc:6999-7024 donner/svg/properties/tests/PropertyRegistry_tests.cc:1525 - - Both backends.
val:glyph-orientation-vertical/other conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphOrientationVerticalProperty Any other value is invalid. donner/svg/properties/PropertyRegistry.cc:771-803 (only 0 and 90 pass; other numbers, other units and other keywords are parse errors) none donner/svg/properties/tests/PropertyRegistry_tests.cc:1525-1560 - - Both backends.
prop:kerning not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#KerningProperty Removed in SVG 2 (replaced by font-kerning). search for '"kerning"' in donner/svg/properties/PropertyRegistry.cc: no match none resvg third_party/resvg-test-suite/tests/text/kerning/0.svg, 10percent.svg marked deprecated (the TextKerning registration in donner/svg/renderer/tests/resvg_test_suite.cc) - - Removed; not implemented.
prop:letter-spacing divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LetterSpacingProperty SVG 2 removes percentage values; otherwise as CSS Text 3. donner/svg/properties/PropertyRegistry.cc:836-848 (ParseSpacingValue accepts a percentage) donner/svg/text/TextEngine.cc:398-399, :940-941 (percentage resolved against the viewport width) donner/svg/tests/SVGTextElement_tests.cc:984 LetterSpacingAffectsCharacterPositions; resvg third_party/resvg-test-suite/tests/text/letter-spacing/* low S Both backends. Only the SVG-specific rule is audited here.
prop:word-spacing divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#WordSpacingProperty SVG 2 redefines percentages as a fraction of the affected character's advance, no longer of the viewport. donner/svg/properties/PropertyRegistry.cc:836-848 donner/svg/text/TextEngine.cc:400-401, :942-943 (percentage resolved against the viewport width); donner/svg/text/TextEngine.cc:6237-6241 (applies to U+0020 only) donner/svg/tests/SVGTextElement_tests.cc:957 WordSpacingAffectsCharacterPositions; resvg third_party/resvg-test-suite/tests/text/word-spacing/* low S Both backends.
prop:line-height missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LineHeightProperty Sets the leading between lines of multi-line SVG text, horizontal or vertical; not applicable to text on a path. donner/svg/properties/PropertyRegistry.cc:2270-2300 (validated only inside the font shorthand) donner/svg/text/TextEngine.cc:7493-7499 (line advance is ascent minus descent plus line gap of the base font, or 1.2 em) none medium M Both backends.
prop:direction partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DirectionProperty Sets the inline base direction of a text or tspan element, defining start and end for text-anchor and inline-size and the bidi paragraph direction. donner/svg/properties/PropertyRegistry.cc:2776-2784 donner/svg/text/TextEngine.cc:847-849 (horizontal progression off a path), :4575 (paragraph base and plaintext), :4769-4800 (inline directional controls) donner/svg/tests/SVGTextElement_tests.cc:1065 RtlDirectionMirrorsStartAndEndAnchors; donner/svg/renderer/tests/TextEngine_tests.cc:1137 BidiRtlParagraphSendsTrailingPunctuationToTheLineStart; resvg third_party/resvg-test-suite/tests/text/direction/rtl.svg compared on the full-text tier, rtl-with-vertical-writing-mode.svg run for no-crash only medium M Both backends. A tspanโ€™s direction controls anchoring and its inline unicode-bidi embedding, override or isolate. Right-to-left progression on a path or in vertical text remains unimplemented.
prop:writing-mode spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#WritingModeProperty SVG 1.1 values must still be supported by converting them to CSS Writing Modes values 'as follows'. donner/svg/properties/PropertyRegistry.cc:714-747 donner/svg/text/TextEngine.cc:397 resvg third_party/resvg-test-suite/tests/text/writing-mode/* (several skipped or full backend only) low - The CR sentence announces a mapping table that is absent from the published HTML (checked in the page source). Donner follows the CSS Writing Modes 3 table (lr, lr-tb, rl, rl-tb to horizontal-tb; tb, tb-rl to vertical-rl; tb-lr to vertical-lr).

Definitions, characters and glyphs (11.1)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-addressable-collapsed-whitespace conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermAddressableCharacter Characters discarded by white space collapsing or trimming are not addressable by positioning attributes. n/a donner/svg/components/text/TextSystem.cc:480-496 (collapse and trim before counting), :714-715 (count taken from the collapsed text) donner/svg/components/text/tests/TextSystem_tests.cc:1457 ChunkStartsAtAddressableCharacterWithResolvedPosition, :1526 WhitespaceTspanBoundarySpace; resvg third_party/resvg-test-suite/tests/text/tspan/nested-whitespaces.svg - - Both backends.
feat:svg2/text-addressable-display-none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermAddressableCharacter Characters inside an element with display:none are not addressable. n/a donner/svg/components/text/TextSystem.cc:723-731 (hidden spans get no lists and do not advance subtree offsets) donner/svg/components/text/tests/TextSystem_tests.cc:1481 DisplayNoneConsumesRotateIndices (despite the name, asserts the hidden span takes no index); resvg third_party/resvg-test-suite/tests/text/tspan/rotate-and-display-none.svg - - Both backends.
feat:svg2/text-addressable-codepoint-index conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermAddressableCharacter Positioning attributes index by Unicode code point. n/a donner/svg/components/text/TextSystem.cc:33-41; donner/svg/text/TextEngine.cc:1061-1076 donner/svg/components/text/tests/TextSystem_tests.cc:983 CodepointCountingTreatsEmojiAsOneAttributeCharacter; donner/svg/renderer/tests/TextEngineScripted_tests.cc:726 AllPositioningAttributesUseUnicodeCodepointIndices, :679 SupplementaryCoordinatesUseCodepointSlot - - Both backends. Malformed UTF-8 consumes one index per replacement (donner/svg/components/text/tests/TextSystem_tests.cc:1183).
feat:svg2/text-addressable-utf16-dom-index conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermAddressableCharacter DOM text methods index by UTF-16 code unit. n/a donner/svg/text/TextEngine.cc:3512-3565 (supplementary code points get two aliased entries) donner/svg/renderer/tests/TextEngine_tests.cc:1292 BidiNormalDomIndicesKeepUtf16AliasesAndExcludeSourceControls - - Both backends.
feat:svg2/text-addressable-bidi-controls conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Bidi control characters discarded during layout are not addressable. n/a donner/svg/components/text/TextSystem.cc:38 (controls excluded from the count); donner/svg/text/TextEngine.cc:1044-1046, :6914-6916 donner/svg/renderer/tests/TextEngine_tests.cc:1269 BidiNormalControlsDoNotConsumePositionValuesOrProduceGlyphs, :1402 - - Both backends.
feat:svg2/text-addressable-soft-hyphen missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm A soft hyphen discarded during layout is not addressable. n/a search for 0xAD, 0x00AD and 'soft hyphen' in donner/svg/text/TextEngine.cc and donner/svg/components/text/TextSystem.cc: no match none low S Both backends. U+00AD is shaped like any other character and takes an index; whether it paints depends on the font and shaper (simple backend draws the font's glyph for it).
feat:svg2/text-addressable-before-text-transform conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermAddressableCharacter Indexes are assigned before text-transform conversions. n/a donner/svg/text/TextEngine.cc:4730-4745 (full-width mapping keeps source byte offsets) none - - Both backends. Verified for full-width only; the case-mapping transforms were not traced: unverified.
feat:svg2/text-white-space-characters conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermWhiteSpaceCharacter White space characters are tab, form feed, carriage return, line feed and space. n/a donner/svg/components/text/TextSystem.cc:61-96 (CR and CRLF normalized, tab, LF and space collapsed) donner/svg/components/text/tests/TextSystem_tests.cc:1718 CssWhiteSpaceNormalizesCarriageReturns, :1662 - - Both backends. Form feed is not handled but cannot appear in XML 1.0 character data.
feat:svg2/text-typographic-character-clusters conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TermTypographicCharacterUnit Repositioning acts on typographic characters; later code points of one typographic character are 'middle' and never start a chunk or take an absolute position. n/a donner/svg/text/TextEngine.cc:252-311 (combining ranges, joiners, variation selectors), :1032-1058, :6906-6924 (position applied once per group) donner/svg/renderer/tests/TextEngineScripted_tests.cc:795 CombiningGroupSkipsAbsoluteAndCarriesRelativePositions; donner/svg/renderer/tests/TextEngine_tests.cc:1708 BidiNormalPositionOnJoinerCannotSplitTheShapingChunk; resvg third_party/resvg-test-suite/tests/text/text/complex-graphemes-and-coordinates-list.svg, compound-emojis-and-coordinates-list.svg (full backend only) - - The cluster interior is a fixed table of combining ranges plus ZWJ and variation selectors, combined with shaped clusters on the HarfBuzz backend. The basic backend forms no ligatures, so only the table applies there.
feat:svg2/text-ligature-not-across-text-nodes partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs Ligatures should not form between characters in different DOM text nodes. n/a donner/svg/text/TextEngine.cc:6881 (cross-span kerning context), :4593-4616 (bidi paragraph shaping contexts span paint spans) resvg third_party/resvg-test-suite/tests/text/tspan/text-shaping-across-multiple-tspan-1.svg, -2.svg (run; they expect joining across tspans) low S HarfBuzz backend: required joining across tspans is deliberate and matches the reference renderer; whether an optional ligature can form across a tspan boundary was not established: unverified. Basic backend: no ligatures at all.
feat:svg2/text-ligature-not-across-chunks conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs Ligatures should not form across text chunks. n/a donner/svg/text/TextEngine.cc:1032-1058 (shaping ranges split at every absolute position) donner/svg/renderer/tests/TextEngine_tests.cc:411 ByteMappingsAndChunkRangesUseCodepointIndices; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-multiple-values-and-arabic-text.svg (full backend only) - - Both backends.
feat:svg2/text-ligature-letter-spacing missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs Discretionary ligatures should not be used when letter-spacing is non-default. n/a donner/svg/text/TextBackendFull.cc:1504-1526 (optional features are disabled only when suppressOptionalSubstitutions is set); donner/svg/text/TextEngine.cc:5592, :5677 are the only setters and both are overflow-wrap analysis passes none low S HarfBuzz backend: normal layout never disables liga, clig, dlig or hlig for spaced text, so a spaced 'fi' still ligates. Basic backend: not applicable (no ligatures). Ligature suppression under letter-spacing is therefore not implemented.
feat:svg2/text-ligature-dx-textlength-keep conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs dx, textLength and textPath spacing do not break discretionary ligatures. n/a donner/svg/text/TextEngine.cc:1032-1058 (only absolute x or y split shaping), :6234-6251 none - - Both backends, by code reading.
feat:svg2/text-initial-position-default-zero conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics Without x (y) the initial current text position coordinate is 0. n/a donner/svg/text/TextEngine.cc:6532-6539 resvg third_party/resvg-test-suite/tests/text/text/no-coordinates.svg, dx-and-dy-instead-of-x-and-y.svg (run) - - Both backends.
feat:svg2/text-advance-fallback-vertical-em conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics When a glyph has no advance for the current orientation an approximation is used; the em size is suggested for vertical text. n/a donner/svg/text/TextEngine.cc:7017-7019 (upright vertical advance falls back to the font size) none - - Both backends, by code reading.
feat:svg2/text-bidi-chunk-independent-blocks conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics Each text chunk is an independent block for the Unicode bidi algorithm. n/a donner/svg/text/TextEngine.cc:4696-4708 (a new paragraph at each absolute position) donner/svg/renderer/tests/TextEngine_tests.cc:1109, :1123, :2738 BidiNormalContinuationOriginOwnsItsLeadingEmbeddingControls; donner/svg/text/tests/BidiParagraphConformance_tests.cc - - Requires a text-enabled build (donner/svg/text/TextEngine.cc:4321 conditional); both backends share the plan.
feat:svg2/text-bidi-attribute-reordering conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TSpanNotes When characters are reordered, dx, dy and rotate values move with their characters. n/a donner/svg/text/TextEngine.cc:7189-7212 (placements keyed by logical character), :7786-7840 donner/svg/renderer/tests/TextEngine_tests.cc:1223 BidiNormalDisplacementsAndRotationsUseLogicalCodepointSlots; resvg third_party/resvg-test-suite/tests/text/text/rotate-on-Arabic.svg (full backend only) - - Both backends.
feat:svg2/text-bidi-scope-all-layouts partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics The bidi processing model applies to all SVG text: wrapped, multi-line, vertical and on a path. n/a donner/svg/text/TextEngine.cc:4453-4481 (the paragraph reordering plan is skipped when inline-size is greater than 0, when any span is on a path, when any span preserves segment breaks and contains a newline or tab, in a vertical writing mode with an upright span, and in a vertical writing mode where a non-negative textLength is set on the text element, a span or a managed length owner) donner/svg/renderer/tests/TextEngine_tests.cc:1388 BidiNormalInlineSizeKeepsTheExistingSimpleShapingScope; donner/svg/renderer/tests/TextEngine_tests.cc:5468 RtlPreservedNewlineKeepsHebrewLinesInSourceOrder (pins current behavior) high L Reordered: horizontal text with no inline-size, no path and no preserved newline or tab, including multi-chunk text positioned by x/y lists; and vertical text with mixed or sideways orientation and no textLength. Outside the plan the basic backend lays characters out in logical order left to right and the HarfBuzz backend relies on per-run direction detection, so mixed-direction text is not reordered across runs. Separately, the paragraph base direction is ignored in every vertical writing mode and on a path (donner/svg/text/TextEngine.cc:842-844, :4372-4379). The same scope is recorded in text_font_properties.md (feat:uax9/application-scope, val:direction/rtl).
feat:svg2/text-bidi-orientation-change-blocks missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics A change of glyph orientation (text-orientation or glyph-orientation-vertical) starts a new independent bidi block. n/a donner/svg/text/TextEngine.cc:4454-4467 (vertical upright text has no bidi plan); search for orientation-based paragraph breaks in the plan (donner/svg/text/TextEngine.cc:4696-4708): none none low M Both backends.
feat:svg2/text-object-bounding-box-whole-text conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ObjectBoundingBoxUnitsTextObjects objectBoundingBox units for paint, clip, mask or filter on text resolve against the whole text element even when applied to a tspan or textPath. n/a donner/svg/text/TextEngine.cc:8668-8678; donner/svg/renderer/RendererDriver.cc:714-745 (span paint resolved from the nearest styled ancestor) donner/svg/tests/SVGTextElement_tests.cc:1495 ObjectBoundingBoxDiffersFromInkBoundingBox; resvg third_party/resvg-test-suite/tests/text/tspan/tspan-bbox-1.svg (run), tspan-bbox-2.svg (resvg v0.49.0 reference at default settings) - - Both backends. The renderer-side choice of the root box for a tspan gradient was confirmed through the resvg cases, not line by line: unverified in code.

x, y, dx, dy and rotate distribution rules (11.2.1, 11.2.2)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-xy-list-per-character conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute n values give absolute positions for the first n addressable characters of the subtree. n/a donner/svg/components/text/TextSystem.cc:643-655; donner/svg/text/TextEngine.cc:6906-6924 donner/svg/components/text/tests/TextSystem_tests.cc:187 PerCharacterPositioning; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-multiple-values.svg - - Both backends.
feat:svg2/text-xy-extra-values-ignored conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute Values beyond the number of characters have no effect. n/a donner/svg/components/text/TextSystem.cc:625-627 donner/svg/components/text/tests/TextSystem_tests.cc:998 RotateListStopsWhenGlobalIndicesRunOut; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-more-values-than-characters.svg, dx-and-dy-with-more-values-than-characters.svg - - Both backends.
feat:svg2/text-xy-ancestor-fallback conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute A character without its own value uses the nearest ancestor text or tspan value for that character, else continues from the current text position. n/a donner/svg/components/text/TextSystem.cc:616-641 donner/svg/components/text/tests/TextSystem_tests.cc:163 PositioningInheritedFromRoot, :1414 NoDoubleApplication, :1435 ChildTspanPreservesListZero; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-multiple-values-and-tspan.svg - - Both backends.
feat:svg2/text-dxdy-list-cumulative conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDXAttribute Each dx (dy) value shifts the current text position before its character; shifts accumulate. n/a donner/svg/text/TextEngine.cc:7101-7103, :7110-7112 donner/svg/components/text/tests/TextSystem_tests.cc:210 DxDyPositioning; resvg third_party/resvg-test-suite/tests/text/text/dx-and-dy-with-multiple-values.svg, x-and-y-with-dx-and-dy-lists.svg - - Both backends.
feat:svg2/text-dxdy-ancestor-fallback conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementDXAttribute A character without its own dx (dy) takes the nearest ancestor's value for that character, else no shift. n/a donner/svg/components/text/TextSystem.cc:616-641 donner/svg/components/text/tests/TextSystem_tests.cc:1101 PositioningAttributesUseCodepointsAcrossTransparentSpans; donner/svg/renderer/tests/RendererAnimationTextPosition_tests.cc:32 LocalListAnimationRetainsAncestorFallback - - Both backends.
feat:svg2/text-rotate-list-last-value-repeats conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute With fewer values than characters the last value applies to the remaining characters. n/a donner/svg/text/TextEngine.cc:6999-7007; donner/svg/components/text/TextSystem.cc:298-300 donner/svg/tests/SVGTextElement_tests.cc:937 GetRotationOfCharLastValueRepeats; resvg third_party/resvg-test-suite/tests/text/text/rotate-with-less-values-than-characters.svg - - Both backends.
feat:svg2/text-rotate-ancestor-propagation conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute A tspan without rotate uses the nearest ancestor's list at that character's index within the ancestor, with last-value repetition; the ancestor's index advances over descendants that have their own list. n/a donner/svg/components/text/TextSystem.cc:287-317, :668-678 donner/svg/components/text/tests/TextSystem_tests.cc:1013, :1029 NestedRotateUsesAncestorSubtreeIndicesAndOverrides; resvg third_party/resvg-test-suite/tests/text/tspan/nested-rotate.svg - - Both backends.
feat:svg2/text-rotate-no-effect-on-advance conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute Rotation does not change how the current text position advances. n/a donner/svg/text/TextEngine.cc:7125-7141, :7162-7174 donner/svg/tests/SVGTextElement_tests.cc:922; resvg third_party/resvg-test-suite/tests/text/text/rotate.svg - - Both backends.
feat:svg2/text-rotate-supplemental-to-path-and-orientation conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementRotateAttribute Rotation adds to the rotation from text on a path and from vertical orientation. n/a donner/svg/text/TextEngine.cc:1407-1424, :7012, :7023 donner/svg/tests/SVGTextElement_tests.cc:325 PathEndpointIncludesAuthoredRotationInBothWritingModes; resvg third_party/resvg-test-suite/tests/text/textPath/with-rotate.svg - - Both backends.
feat:svg2/text-list-one-char-multiple-glyphs conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TSpanNotes When one character yields several glyphs, position values apply before the first glyph and rotation applies to the group. n/a donner/svg/text/TextEngine.cc:6917-6923, :7133-7150 donner/svg/renderer/tests/TextEngine_tests.cc:3995 RotatesCombiningMarkOffsetsWithBaseGlyph; resvg third_party/resvg-test-suite/tests/text/text/rotate-with-multiple-values-and-complex-text.svg (full backend only) - - Both backends.
feat:svg2/text-list-ligature-skip-and-carry conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TSpanNotes When several characters form one typographic character, x, y and rotate of the later characters are skipped (the final rotate still propagates) and their dx and dy accumulate onto the next typographic character. n/a donner/svg/text/TextEngine.cc:6234-6251 (pending displacement carried to the next group start), :6253-6257 donner/svg/renderer/tests/TextEngineScripted_tests.cc:795 CombiningGroupSkipsAbsoluteAndCarriesRelativePositions; resvg third_party/resvg-test-suite/tests/text/text/complex-graphemes-and-coordinates-list.svg (full backend only) - - HarfBuzz backend forms ligatures; the basic backend only groups combining marks.
feat:svg2/text-list-ignored-in-auto-wrap divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TSpanNotes For auto-wrapped text, x, y, dx, dy and rotate are ignored except that x and y of the first rendered character set the initial position. n/a donner/svg/text/TextEngine.cc:3015-3018 and :3224-3232 (later absolute x or y restart the line origin or block line), :3084-3098 (dx accumulates into wrapped origins), :7129 (rotation assigned regardless of wrapping) donner/svg/renderer/tests/TextEngine_tests.cc:4955 WrappedExplicitPositionStartsIndependentAnchorChunk, :5371 WrappedRelativeInlineShiftSurvivesFollowingLines; donner/svg/renderer/tests/TextIndent_tests.cc:553, :565 (these assert the divergent behavior) medium M Both backends. Content that carries x/y fallbacks for SVG 1.1 renderers, which the spec tells SVG 2 renderers to ignore, is not reflowed. rotate is also honored.
feat:svg2/text-xy-not-presentation-attributes conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementXAttribute x and y on text and tspan are not presentation attributes and cannot be set from CSS. donner/svg/components/text/TextPositioningPresentation.cc:74-91 (only the raw attribute form is handled) n/a none - - Both backends, by code reading.
feat:svg2/text-list-invalid-attribute-empty-list divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning An invalid x, y, dx, dy or rotate attribute contributes an empty list. donner/svg/parser/AttributeParser.cc:1929-1978 (bad tokens skipped, good ones kept; a list syntax error keeps the items parsed so far) versus donner/svg/components/text/TextPositioningPresentation.cc:18-61 (whole list rejected) n/a donner/svg/tests/SVGTextElement_tests.cc:127 SetAttributeRejectsInvalidPositioningLists (setAttribute path only); resvg third_party/resvg-test-suite/tests/text/text/rotate-with-an-invalid-angle.svg (single token) low S Both backends. The two entry points for the same attribute disagree; only the setAttribute path matches the spec.

Text layout algorithm (11.3 to 11.5)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-algo-css-stage-block-inline conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm text is laid out as a block and tspan, textPath and 'a' as inlines; border, float, margin, padding, position and text-align take their initial values. n/a donner/svg/components/text/TextSystem.cc:534-550 (flat inline span list per text root); none of the listed CSS properties exist in donner/svg/properties/PropertyRegistry.h none - - Both backends. Satisfied by absence: no box properties are implemented for text.
feat:svg2/text-algo-nonrendered-descendants conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Descendants of text that are not correctly parented text content child elements or 'a' have used display none. n/a donner/svg/components/text/TextSystem.cc:323-326, :562-569, :359-361 donner/svg/components/text/tests/TextSystem_tests.cc:819 NonTextChildrenAreIgnoredDuringSpanCollection, :797, :841 - - Both backends.
feat:svg2/text-algo-setup conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Setup: lay out the subtree as one absolutely positioned block (one line unless white-space forces breaks), with per-character records; an empty result returns early. n/a donner/svg/components/text/TextSystem.cc:539-549; donner/svg/text/TextEngine.cc:6332-6362 donner/svg/components/text/tests/TextSystem_tests.cc:110 BasicTextElement, :279 EmptyTextElement - - Both backends. Donner keeps per-span lists and per-glyph records in place of one per-character array; the observable outputs match.
feat:svg2/text-algo-flags-anchored-chunk-line-start conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm A typographic character at the start of a line starts an anchored chunk, so chunks never span lines. n/a donner/svg/text/TextEngine.cc:3357-3379 (a new anchor group at every line or chunk change) donner/svg/renderer/tests/TextEngine_tests.cc:4803 WhiteSpacePreWrapCountsSpacesBeforeForcedBreakForAnchor, :4994, :5013 - - Both backends.
feat:svg2/text-algo-resolve-character-positioning conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning Recursive resolution: values on a node apply to its whole subtree by addressable index and descendants override ancestors. n/a donner/svg/components/text/TextSystem.cc:616-655, :668-678 donner/svg/components/text/tests/TextSystem_tests.cc:163, :297, :1101, :1414 - - Both backends.
feat:svg2/text-algo-new-chunk-count conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning Outside a textPath, the first max(len x, len y) addressable characters of a node each start an anchored chunk. n/a donner/svg/text/TextEngine.cc:6952-6958, :6547-6554; donner/svg/components/text/TextSystem.cc:711-712 donner/svg/renderer/tests/TextEngineScripted_tests.cc:906 TextAnchorAdjustsIndependentHorizontalChunks, :863 VerticalLayoutStartsNewChunksForLaterAbsoluteCoordinates; resvg third_party/resvg-test-suite/tests/text/text-anchor/coordinates-list.svg - - Both backends.
feat:svg2/text-algo-in-text-path-ignore-cross-axis partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning Inside a textPath only x (horizontal) or only y (vertical) counts; the other absolute attribute is ignored and starts no chunk. n/a donner/svg/text/TextEngine.cc:6542-6544 (y list cleared for horizontal path text only), :1283-1305 (path chunks and offsets always read the x list) donner/svg/renderer/tests/TextEngineScripted_tests.cc:1982 HorizontalTextPathIgnoresYOnlyPositioningAndChunkBoundaries; donner/svg/renderer/tests/TextEngine_tests.cc:4416 TextPathTspanCoordinatesAffectPathLocalPlacement low S Both backends. Horizontal is right. For vertical text on a path the roles are not swapped: x still gives the offset along the path and y is not used as one; by code reading, no test.
feat:svg2/text-algo-textpath-starts-chunk conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning The first character of a textPath always starts an anchored chunk. n/a donner/svg/text/TextEngine.cc:6428-6437, :1308-1333 donner/svg/renderer/tests/TextEngine_tests.cc:749 ApplyTextAnchorSkipsOnPathRunsAndUsesFirstGlyphSpanAnchor; donner/svg/renderer/tests/TextEngineScripted_tests.cc:957 TextPathUsesAnchorContinuationAndVisibility - - Both backends.
feat:svg2/text-algo-adjust-dx-dy conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Cumulative dx and dy shifts are added to the CSS positions. n/a donner/svg/text/TextEngine.cc:7093-7113, :6960-6987 donner/svg/components/text/tests/TextSystem_tests.cc:210; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-dx-and-dy.svg - - Both backends.
feat:svg2/text-algo-textlength-child-first conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveTextLength textLength is resolved for children before parents; a descendant with its own textLength counts as one fixed unit in the ancestor. n/a donner/svg/text/TextEngine.cc:2052-2140, :2284-2305 donner/svg/renderer/tests/TextEngineScripted_tests.cc:1701 TextPathLengthPreservesNestedOverrides, :1850 TextPathLengthKeepsThreeLevelsOfOverrides; donner/svg/renderer/tests/TextEngine_tests.cc:2012; resvg third_party/resvg-test-suite/tests/text/textLength/on-text-and-tspan.svg - - Both backends.
feat:svg2/text-algo-textlength-forced-break-skip divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveTextLength A node containing a forced line break receives no textLength adjustment; other nodes still do. n/a donner/svg/text/TextEngine.cc:7484-7507 (any preserved line feed or tab sends the whole text through the wrap pass), :7514-7521 (wrapped text returns before any textLength step) none low S Both backends. A tspan with textLength and no break loses its adjustment when another part of the same text has a preserved break.
feat:svg2/text-algo-textlength-spacing-distribution conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveTextLength delta = textLength minus the measured extent; the last typographic character moves by delta; one suggested distribution divides delta over n-1 gaps, with middle characters and resolved descendants not counted separately. n/a donner/svg/text/TextEngine.cc:2255-2269, :2284-2305 donner/svg/renderer/tests/TextEngine_tests.cc:456, :502; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1690 TextPathLengthSpacingCountsChildBoundaries; resvg third_party/resvg-test-suite/tests/text/textLength/150.svg - - Both backends.
feat:svg2/text-algo-textlength-direction conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveTextLength The shift is along +x for ltr, -x for rtl, +y for vertical. n/a donner/svg/text/TextEngine.cc:1642-1810 (visual-order items for reordered runs), :2255-2262 (vertical axis) donner/svg/renderer/tests/TextEngine_tests.cc:1869 BidiNormalTextLengthUsesVisualExtentAcrossRealDomPaintSpans, :693; resvg third_party/resvg-test-suite/tests/text/textLength/arabic.svg (full backend only), third_party/resvg-test-suite/tests/text/lengthAdjust/vertical.svg - - Both backends.
feat:svg2/text-algo-textlength-not-with-inline-size divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementTextLengthAttribute textLength applies only when the wrapping area is not defined by inline-size. n/a donner/svg/text/TextEngine.cc:3469-3495 (the wrap pass reports 'wrapped' only when more than one line or a break results), :7514-7527 (textLength runs whenever it did not) donner/svg/renderer/tests/TextEngine_tests.cc:5397 SinglePreWrapLineHangsOverflowingSpacesAfterTextLength; donner/svg/renderer/tests/TextIndent_tests.cc:454 GlobalAndSpanTextLengthDoNotScaleLeadingMargin (assert textLength inside an inline-size area) low S Both backends. With inline-size set and content that fits on one line, textLength is still applied. textLength is skipped only when wrapping actually produces more than one line or a break.
feat:svg2/text-algo-adjust-x-y conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Absolute x and y replace the position of their character and shift what follows until the next absolute value. n/a donner/svg/text/TextEngine.cc:7098-7109, :2284-2292 (absolute resets survive length adjustment) donner/svg/renderer/tests/TextEngineScripted_tests.cc:1722 TextPathLengthAppliesChildCoordinateResetsAfterAdjustment; donner/svg/renderer/tests/TextEngine_tests.cc:658 - - Both backends.
feat:svg2/text-algo-chunk-not-mid-typographic-character conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm An anchored chunk never starts in the middle of a typographic character; the flag moves to the next character. n/a donner/svg/text/TextEngine.cc:1047-1053, :4696-4708 donner/svg/renderer/tests/TextEngine_tests.cc:1708 BidiNormalPositionOnJoinerCannotSplitTheShapingChunk; donner/svg/renderer/tests/TextBidiConvergence_tests.cc:229 - - Both backends. Donner ignores the mid-cluster position instead of moving the chunk start to the following character; the rendered difference appears only when the next character has no absolute position: unverified which reading tests expect.
feat:svg2/text-algo-anchoring-extents conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Per chunk, a and b are the minimum and maximum of every character position and position plus advance; the chunk shifts so the anchor point lands on the chunk's first position. n/a donner/svg/text/TextEngine.cc:2643-2668, :2800-2840 donner/svg/renderer/tests/TextEngine_tests.cc:5086 WrappedAndOrdinaryAnchorsSharePenExtentRules, :5032; donner/svg/renderer/tests/TextEngineScripted_tests.cc:906; resvg third_party/resvg-test-suite/tests/text/text-anchor/* - - Both backends.
feat:svg2/text-algo-anchoring-direction partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm start and end swap for rtl; the direction is that of the element holding the chunk's first character. n/a donner/svg/text/TextEngine.cc:842-853, :2843-2856 donner/svg/tests/SVGTextElement_tests.cc:1065 RtlDirectionMirrorsStartAndEndAnchors; resvg third_party/resvg-test-suite/tests/text/text-anchor/on-tspan-with-arabic.svg (full backend only) low M Both backends. Correct for horizontal flat text. On a path and in vertical writing modes direction rtl is ignored (donner/svg/text/TextEngine.cc:840-844 says so), which also drops the rtl cases of the closed-path circuit rule.
feat:svg2/text-algo-path-side-reverse conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm side=right reverses the path before measuring. n/a donner/svg/components/text/TextSystem.cc:249-252 donner/svg/components/text/tests/TextSystem_tests.cc:670, :684; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1283 PostTextPathCursorReversedPathUsesEffectiveEndpoint - - Both backends.
feat:svg2/text-algo-path-offset-pathlength missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm The start offset is adjusted for a pathLength attribute on the referenced element. n/a donner/svg/components/text/TextSystem.cc:134-161; search for 'pathLength' attribute use in donner/svg/components/text and donner/svg/text: none none low S Both backends.
feat:svg2/text-algo-path-mid-hidden-open conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm On an open path a typographic character whose midpoint is before the start or past the end is hidden. n/a donner/svg/text/TextEngine.cc:1373-1378, :1426-1430 (hidden glyphs get glyph id 0, which the renderers skip: donner/svg/renderer/PlacedTextGeometry.cc:98) donner/svg/renderer/tests/TextEngineScripted_tests.cc:1164 PostTextPathCursorClippedTailStillUsesEndpoint, :1174; resvg third_party/resvg-test-suite/tests/text/textPath/startOffset=9999.svg, very-long-text.svg (golden override) - - Both backends.
feat:svg2/text-algo-path-closed-wrap conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm On a single closed subpath text runs for at most one circuit from the anchored start: 0 to length for start, plus or minus half the length for middle, minus length to 0 for end; positions wrap modulo the length. n/a donner/svg/text/TextEngine.cc:1335-1350, :1364-1389 donner/svg/renderer/tests/TextEngineScripted_tests.cc:1308 PostTextPathCursorClosedLoopAdjustsStartOffset, :1351 PostTextPathCursorClosedChunkUsesItsActualAnchorAndReference, :1457 ClosedTextPathAbsoluteXRetainsSingleCircuitClipping; resvg third_party/resvg-test-suite/tests/text/textPath/closed-path.svg (golden override), m-L-Z-path.svg - - Both backends. The rtl variants fall under feat:svg2/text-algo-anchoring-direction.
feat:svg2/text-algo-path-position-and-angle conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm The character is placed at the path point at its midpoint, moved back by half its advance along the tangent and offset along the normal by its y; its angle is its own rotation plus the tangent angle. n/a donner/svg/text/TextEngine.cc:1392-1432 donner/svg/tests/SVGTextElement_tests.cc:308 AlignEndpointFollowsTheSlopedPathFrame; donner/svg/renderer/tests/TextEngineScripted_tests.cc:2001 HorizontalTextPathCarriesDyAlongThePathNormal; resvg third_party/resvg-test-suite/tests/text/textPath/simple-case.svg, with-baseline-shift.svg (golden overrides) - - Both backends.
feat:svg2/text-algo-path-vertical partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules Vertical text on a path: advance uses the vertical advance, glyph default orientation is 180 degrees from the tangent normal rule, dy moves along the path and dx across it. n/a donner/svg/text/TextEngine.cc:1256-1262 (vertical glyphs re-expressed in path-local axes), :1250-1251 (dx always advances along the path and dy always offsets along the normal) donner/svg/renderer/tests/TextPathConvergence_tests.cc:29 VerticalStraightPathMatchesOrdinaryVerticalText; donner/svg/tests/SVGTextElement_tests.cc:278; resvg third_party/resvg-test-suite/tests/text/textPath/writing-mode=tb.svg (run) low S Both backends. Placement and advances are covered; the dx/dy role swap for vertical flows is not implemented, by code reading.
feat:svg2/text-algo-path-middle-flag conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Later characters of a typographic character take the position and angle of the first. n/a donner/svg/text/TextEngine.cc:1249-1268 (one cluster record per typographic character) donner/svg/renderer/tests/TextEngine_tests.cc:4222 TextPathSpacingPreservesFullShapingCombiningMarkCluster - - Both backends.
feat:svg2/text-algo-after-path-continuation conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules Text after a textPath without its own absolute position starts at the end point of the path (adjusted for startOffset on a single closed loop), not after the last glyph. n/a donner/svg/text/TextEngine.cc:1434-1444, :1557-1598 donner/svg/renderer/tests/TextEngine_tests.cc:4529 TextAfterTextPathStartsAtGeometricEndpoint; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1083-1351 PostTextPathCursor* (about 30 cases); donner/svg/renderer/tests/TextEngineScripted_tests.cc:4863 PostTextPathCursorBoundarySpaceStaysOnThePath; resvg third_party/resvg-test-suite/tests/text/textPath/mixed-children-2.svg compares against a Donner golden matching Chrome (the vendored reference continues after the last glyph) - - Both backends.
feat:svg2/text-algo-after-path-anchored-chunk-resets conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm An anchored chunk after the path cancels the path-end offset. n/a donner/svg/text/TextEngine.cc:1523-1578 donner/svg/renderer/tests/TextEngineScripted_tests.cc:1104 PostTextPathCursorExplicitXYOverridesEndpoint, :1112, :1124 - - Both backends.
feat:svg2/text-algo-order-of-operations conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm Order: dx and dy, then textLength, then x and y, then anchoring, then path placement. n/a donner/svg/text/TextEngine.cc:6345-6357, :7514-7527 donner/svg/renderer/tests/TextEngineScripted_tests.cc:1722 TextPathLengthAppliesChildCoordinateResetsAfterAdjustment; donner/svg/renderer/tests/TextEngine_tests.cc:573 ZeroTextLengthAnchorsNotoSansUsingCompressedPenExtents - - Both backends. Donner applies x, y, dx and dy while advancing the pen and re-applies absolute resets inside the length plan; path glyphs are placed before the flat anchoring pass, with their own anchoring. Outputs match for the cases tested.

Pre-formatted text (11.6)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-pre-no-auto-wrap conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutPre Without a content area there is no automatic line breaking; the text is one line. n/a donner/svg/text/TextEngine.cc:7480-7491 donner/svg/renderer/tests/TextEngine_tests.cc:4579 InlineSizeUnsetKeepsSingleLine - - Both backends.
feat:svg2/text-pre-forced-breaks-white-space conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutPreMultiline With white-space pre or pre-line a line feed or carriage return is a forced break that starts a new line box stacked per CSS. n/a donner/svg/components/text/TextSystem.cc:74-96; donner/svg/text/TextEngine.cc:7484-7507, :3196-3261 donner/svg/renderer/tests/TextEngine_tests.cc:4645 WhiteSpacePreservesForcedBreaksWithoutInlineSize, :4702, :4723 WhiteSpaceVerticalForcedBreaksAndTabs - - Both backends. Line advance comes from font metrics because line-height is missing (see prop:line-height).
feat:svg2/text-pre-properties-not-applied conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutPre text-align, text-align-last, line-break, word-break, hyphens, word-wrap and overflow-wrap do not apply to pre-formatted text. n/a donner/svg/text/TextEngine.cc:6340-6344 (overflow-wrap is consulted only with a positive inline-size); the other properties are absent from donner/svg/properties/PropertyRegistry.h none - - Both backends.
feat:svg2/text-pre-reposition-order conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutPreAdjustments Absolute repositioning from x, y and forced breaks, influenced by text-anchor, then relative dx and dy and rotation. n/a donner/svg/text/TextEngine.cc:7093-7113, :2875-2896 donner/svg/renderer/tests/TextEngineScripted_tests.cc:639 HorizontalLayoutCoversChunkAndSpanPositioningBranches; resvg third_party/resvg-test-suite/tests/text/text/x-and-y-with-dx-and-dy-lists.svg - - Both backends.

Auto-wrapped text (11.4, 11.7)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-wrap-inline-size-content-area conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutContentArea inline-size on text defines a rectangular wrapping area, unbounded in the block direction, and text wraps inside it per CSS. n/a donner/svg/text/TextEngine.cc:3469-3495, :3196-3261 donner/svg/text/tests/InlineSizeWrap_tests.cc:83 GreedyWrapAtSpaces; donner/svg/renderer/tests/TextEngine_tests.cc:4593 - - Both backends.
feat:svg2/text-wrap-inline-size-zero-disables conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty A value of zero creates no wrapping area. n/a donner/svg/text/TextEngine.cc:7484 donner/svg/text/tests/InlineSizeWrap_tests.cc:198 ZeroMeasureIsNoOp - - Both backends.
feat:svg2/text-wrap-initial-position conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty The initial position comes from x and y of the text (or first tspan): left edge of the area for ltr, right edge for rtl, top for vertical. n/a donner/svg/text/TextEngine.cc:3084-3098, :3379-3394 donner/svg/text/tests/InlineSizeWrap_tests.cc:187 NonZeroOriginPreserved; donner/svg/renderer/tests/TextEngine_tests.cc:3184 OverflowWrapRtlCoordinatesRetainSvgListsAndPerLineAnchors - - Both backends.
feat:svg2/text-wrap-anchor-per-line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSize Each line box is shifted by text-anchor; no other post-processing. n/a donner/svg/text/TextEngine.cc:3340-3379 donner/svg/text/tests/InlineSizeWrap_tests.cc:156 PerLineTextAnchorMiddle, :172 PerLineTextAnchorEnd - - Both backends. 'No other post-processing' is not met: see feat:svg2/text-list-ignored-in-auto-wrap.
feat:svg2/text-wrap-vertical conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InlineSizeProperty For vertical text inline-size limits the height and lines stack horizontally. n/a donner/svg/text/TextEngine.cc:3379-3394 (vertical placement: lines step along x, direction by vertical-rl or vertical-lr) none found that wraps vertical text by inline-size - - Both backends, by code reading.
feat:svg2/text-wrap-css-line-breaking partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAuto Wrapping follows CSS line breaking (soft wrap opportunities, line-break, word-break, hyphens). n/a donner/svg/text/TextEngine.cc:3162-3167 (soft breaks only after spaces), :6340-6344 (overflow-wrap emergency breaks) donner/svg/text/tests/InlineSizeWrap_tests.cc:83, :121; donner/svg/renderer/tests/TextEngine_tests.cc:2974 medium L Both backends. Defined by CSS Text; recorded here because the SVG chapter makes it the wrapping rule.
feat:svg2/text-wrap-first-line-shift spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAutoNotesStart In a shaped wrapping area the first line box moves until it fits. n/a none none - - The CR keeps this note but no longer defines any way to make a non-rectangular wrapping area.
feat:svg2/text-wrap-broken-lines spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAutoNotesBrokenLines A line split by a shape gets one line box per part, all of equal height. n/a none none - - Same as the previous row.

Text on a path (11.8)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/textpath-path-over-href-precedence conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElement path wins over href when it yields geometry. donner/svg/parser/AttributeParser.cc:2163-2174 donner/svg/components/text/TextSystem.cc:165-170 donner/svg/components/text/tests/TextSystem_tests.cc:549 TextPathInlinePathTakesPrecedenceOverHref; resvg third_party/resvg-test-suite/tests/text/textPath/with-path-and-xlink-href.svg - - Both backends.
feat:svg2/textpath-href-over-xlink-href divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElement href wins over xlink:href when both are present. donner/svg/parser/AttributeParser.cc:2161-2162 donner/svg/SVGTextPathElement.cc:14-19 (one field) none with both attributes low S Both backends, by code reading: the attribute applied last wins, which is always xlink:href whatever the source order, because attributes are applied sorted by local name and then prefix (see feat:xlink/href-precedence#2 in xml_data_formats.md).
feat:svg2/textpath-path-error-fallback conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElement A path with no valid segment falls back to href; a path with a valid prefix is used up to the error. donner/svg/parser/AttributeParser.cc:2165-2174 donner/svg/components/text/TextSystem.cc:165-174 donner/svg/components/text/tests/TextSystem_tests.cc:563, :578, :595; resvg third_party/resvg-test-suite/tests/text/textPath/with-invalid-path-and-xlink-href.svg - - Both backends.
feat:svg2/textpath-basic-shape-reference conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutPath href may point to a basic shape, whose equivalent path is used. n/a donner/svg/components/text/TextSystem.cc:184-204 donner/svg/components/text/tests/TextSystem_tests.cc:608 TextPathHrefToRectUsesShapeEquivalentPath, :629 TextPathHrefToCircleUsesShapeEquivalentPath; resvg third_party/resvg-test-suite/tests/text/textPath/link-to-rect.svg - - Both backends.
feat:svg2/textpath-invalid-reference-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementHrefAttribute An invalid reference means the textPath content is not rendered. n/a donner/svg/components/text/TextSystem.cc:687-696; donner/svg/text/TextEngine.cc:6438-6441 donner/svg/components/text/tests/TextSystem_tests.cc:500, :516 TextPathWithEmptyReferencedPathMarksFailure; resvg third_party/resvg-test-suite/tests/text/textPath/invalid-link.svg, invalid-textPath-in-the-middle.svg - - Both backends.
feat:svg2/textpath-coordinate-system conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementHrefAttribute Referenced path data is read in the text element's coordinate system; the referenced element's own transform applies as a supplemental transform and its ancestors' transforms do not. n/a donner/svg/components/text/TextSystem.cc:206-237 donner/svg/components/text/tests/TextSystem_tests.cc:369 TextPathWithAbsoluteStartOffsetAndTransform, :1262, :1322; resvg third_party/resvg-test-suite/tests/text/textPath/with-transform-on-a-referenced-path.svg, with-transform-outside-a-referenced-path.svg - - Both backends.
feat:svg2/textpath-startoffset-percent conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextPathElementStartOffsetAttribute A percentage is a fraction of the total path length; negative and over-100% values are allowed. donner/svg/parser/AttributeParser.cc:2175-2178 donner/svg/components/text/TextSystem.cc:155-156 donner/svg/components/text/tests/TextSystem_tests.cc:346; donner/svg/tests/SVGTextPathElement_tests.cc:98; resvg third_party/resvg-test-suite/tests/text/textPath/startOffset=10percent.svg, startOffset=-100.svg (resvg v0.49.0 references) - - Both backends.
feat:svg2/textpath-anchor-on-path conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules On a path text-anchor moves the start point back by half (middle) or all (end) of the total advance from the startOffset point. n/a donner/svg/text/TextEngine.cc:1308-1333 donner/svg/renderer/tests/TextEngineScripted_tests.cc:2030 TextPathAnchorUsesIntermediateGlyphExtents, :1735 TextPathLengthAnchorsTheWholeScopeAtStartOffset; resvg third_party/resvg-test-suite/tests/text/textPath/with-text-anchor.svg - - Both backends.
feat:svg2/textpath-layout-midpoint-rule conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules Each glyph is positioned by its midpoint on the path between start and end points one advance apart, oriented with the path there. n/a donner/svg/text/TextEngine.cc:1392-1432 donner/svg/tests/SVGTextElement_tests.cc:402 PathEndpointUsesAdvanceDirectionAcrossAContourCorner; resvg third_party/resvg-test-suite/tests/text/textPath/complex.svg has a placeholder reference - - Both backends. Donner orients by the tangent at the midpoint (the algorithm section's rule); the prose rule uses the chord between start and end points. Both readings are in the CR.
feat:svg2/textpath-x-as-path-offset conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules For horizontal flows x on text or tspan is an absolute offset along the path; y is ignored. n/a donner/svg/text/TextEngine.cc:1289-1305 donner/svg/renderer/tests/TextEngine_tests.cc:4416; donner/svg/renderer/tests/TextEngineScripted_tests.cc:2023 TextPathAbsoluteXPreservesSameGlyphDx; resvg third_party/resvg-test-suite/tests/text/textPath/tspan-with-absolute-position.svg (golden override), with-coordinates-on-text.svg (resvg v0.49.0 reference) - - Both backends. Vertical flows: see feat:svg2/text-algo-in-text-path-ignore-cross-axis.
feat:svg2/textpath-baseline-and-dy conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules Glyphs are aligned across the path by alignment-baseline and dy. n/a donner/svg/text/TextEngine.cc:1251-1253, :1401-1404 donner/svg/renderer/tests/TextEngineScripted_tests.cc:2001, :2016 TextPathDyResetsForConsecutivePaths; resvg third_party/resvg-test-suite/tests/text/textPath/with-baseline-shift.svg, tspan-with-relative-position.svg, third_party/resvg-test-suite/tests/text/alignment-baseline/two-textPath-with-middle-on-first.svg - - Both backends.
feat:svg2/textpath-spacing-properties-along-path conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextpathLayoutRules Kerning, letter-spacing, word-spacing and dx adjust the distance along the path. n/a donner/svg/text/TextEngine.cc:1246-1278 donner/svg/renderer/tests/TextSpanPositioning_tests.cc:227 SimpleBackendTextPathSplitPreservesPairKerning; resvg third_party/resvg-test-suite/tests/text/textPath/with-letter-spacing.svg, with-big-letter-spacing.svg - - Both backends.
feat:svg2/textpath-line-height-not-applicable conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LineHeightProperty line-height does not apply to text on a path. n/a donner/svg/text/TextEngine.cc:3041-3044 (path runs are excluded from line assignment) donner/svg/renderer/tests/TextEngine_tests.cc:4745 WhiteSpaceFlatForcedBreakSurvivesTextPathSibling (related) - - Both backends.

Rendering order, decoration, white space, bounding boxes, selection, fonts

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-render-chunk-document-order conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextRenderingOrder Chunks are rendered one after another in document order. n/a donner/svg/renderer/RendererTinySkia.cc:2960-3290 (runs painted in span order) resvg third_party/resvg-test-suite/tests/text/text/nested.svg, third_party/resvg-test-suite/tests/text/tspan/sequential.svg (run) - - Both backends; CPU renderer read, GPU renderer not read line by line.
feat:svg2/text-render-chunk-fill-stroke-as-one partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextRenderingOrder Each chunk is filled and stroked as one path: all glyphs of the chunk filled, then all stroked (or the reverse per paint-order). n/a donner/svg/renderer/RendererTinySkia.cc:2987-2990, :3268-3287 (fill pass and stroke pass per span run, not per chunk) donner/svg/renderer/tests/TextDecorationPaintOrder_tests.cc:83; resvg third_party/resvg-test-suite/tests/text/tspan/style-override.svg (run) low S Both backends. When a chunk holds several spans, an earlier span's stroke is painted before a later span's fill, so overlapping glyphs of adjacent tspans layer per span. This is not equivalent to the per-chunk order when glyphs of adjacent spans overlap.
feat:svg2/text-render-fill-rule-not-applied conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextRenderingOrder fill-rule does not apply to text. n/a donner/svg/renderer/RendererTinySkia.cc:3156, :3262 (glyph fills always use the nonzero rule) resvg third_party/resvg-test-suite/tests/text/text/fill-rule=evenodd.svg (full backend only) - - CPU renderer verified; GPU renderer unverified.
feat:svg2/text-pseudo-first-line-first-letter missing https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextProperties ::first-line and ::first-letter must be supported on text; ::selection in interactive modes; ::before and ::after must not apply. donner/css/selectors/PseudoElementSelector.h:68 (selector syntax parses) search for 'first-line', 'first-letter' and '::selection' in donner/svg/text and donner/svg/components: no consumer none low M Both backends. ::before and ::after not applying is satisfied by absence.
feat:svg2/text-xml-space-default divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LegacyXMLSpace xml:space=default: remove newlines, turn tabs into spaces, strip leading and trailing spaces, collapse runs. donner/svg/components/text/TextSystem.cc:43-59 (attribute read from the nearest ancestor that sets it) donner/svg/components/text/TextSystem.cc:74-96, :98-111 (default goes through CSS white-space: normal, so a newline becomes a space) donner/svg/components/text/tests/TextSystem_tests.cc:1526, :1553, :1598; resvg third_party/resvg-test-suite/tests/text/text/xml-space.svg, third_party/resvg-test-suite/tests/text/tspan/xml-space-1.svg, mixed-xml-space-1.svg (run) low S Both backends. Text 'a', newline, 'b' renders 'a b' where the legacy rule gives 'ab'. The CR also says white space is governed by the white-space property and that this section should be recast as a user agent style sheet rule, which is the behavior implemented and the one the reference cases expect.
feat:svg2/text-xml-space-preserve conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LegacyXMLSpace xml:space=preserve: newlines and tabs become spaces and every space is kept; the attribute inherits. donner/svg/components/text/TextSystem.cc:43-59 donner/svg/components/text/TextSystem.cc:98-107, :591-593 donner/svg/components/text/tests/TextSystem_tests.cc:1205 XmlSpacePreserveKeepsWhitespaceAndInheritance, :1576, :1619; resvg third_party/resvg-test-suite/tests/text/tspan/mixed-xml-space-2.svg, -3.svg - - Both backends.
feat:svg2/text-xml-space-duplicate-directives conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DuplicateWhiteSpace If white-space is set on an element, xml:space is ignored. n/a donner/svg/components/text/TextSystem.cc:589-593 (xml:space applies only where white-space is not specified on that element) donner/svg/components/text/tests/TextSystem_tests.cc:1682 CssWhiteSpaceCascadeOverridesLegacySpace, :1693 - - Both backends. 'Set on any element' is read as the element itself; an inherited white-space does not disable a descendant's xml:space.
feat:svg2/text-xml-space-index-after-processing conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LegacyXMLSpace Character indexes for x, y, dx, dy and rotate count characters after white space processing. n/a donner/svg/components/text/TextSystem.cc:709-710 donner/svg/components/text/tests/TextSystem_tests.cc:1457; resvg third_party/resvg-test-suite/tests/text/tspan/nested-whitespaces.svg - - Both backends.
feat:svg2/text-whitespace-glyph-blank conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#LegacyXMLSpace A white space character is shown as blank space even if the font's glyph is not blank. n/a donner/svg/text/TextEngine.cc:304-306, :4746 (line feed and tab shaped as a space) donner/svg/renderer/tests/TextEngine_tests.cc:4840 WhiteSpaceTextPathControlsShapeAsBlanks - - Both backends.
feat:svg2/text-decoration-paint conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextDecorationProperties A decoration is painted with the fill and stroke of the element where text-decoration is declared, not of the decorated descendants. n/a donner/svg/renderer/RendererDriver.cc:536-560, :609-640 donner/svg/renderer/tests/TextDecorationPaintOrder_tests.cc:67 AncestorLinesKeepOrderAroundDescendantGlyphs, :83; resvg third_party/resvg-test-suite/tests/text/text-decoration/* (run) - - Both backends. An authored text-decoration-color replaces the fill paint (donner/svg/renderer/RendererDriver.cc:556-559), a CSS Text Decoration behavior.
feat:svg2/text-decoration-paint-order conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextDecorationProperties Decoration fill and stroke order follows paint-order at the declaring element; decoration and text order follow CSS Text Decoration. n/a donner/svg/renderer/RendererDriver.cc:553; donner/svg/renderer/RendererTinySkia.cc:3169, :3287 donner/svg/renderer/tests/TextDecorationPaintOrder_tests.cc:50 UnderlineAndOverlineBeneathGlyphsLineThroughAbove, :83 DecorationFillAndStrokeFollowDeclaringPaintOrder - - Both backends.
feat:svg2/text-bbox-glyph-cells conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ObjectBoundingBoxUnitsTextObjects The text bounding box is the union of glyph cells (advance by em height), not of ink. n/a donner/svg/text/TextEngine.cc:8061-8082, :8668-8678 donner/svg/tests/SVGTextElement_tests.cc:1495 ObjectBoundingBoxDiffersFromInkBoundingBox; donner/svg/renderer/tests/TextEngineScripted_tests.cc:303 ReferenceFillBoundsIncludeHiddenCellsWithoutDecodingOutlines; resvg third_party/resvg-test-suite/tests/text/text/filter-bbox.svg, real-text-height.svg - - Both backends. Which font metrics define the cell top and bottom was not traced: unverified.
feat:svg2/text-selection not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextSelection Interactive viewers support pointer selection of text and copy to the clipboard, in logical order for bidi text. n/a donner/svg/SVGTextContentElement.h:176-181 (selectSubString declaration) donner/svg/tests/SVGTextElement_tests.cc:604 SelectSubstringIsNoOp - - Donner is a rendering library without a selection user interface; hosts implement selection from the character geometry methods.
feat:svg2/text-hit-char-at-position conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InterfaceSVGTextContentElement getCharNumAtPosition returns the first character of the typographic character whose cell contains the point, or -1. n/a donner/svg/text/TextEngine.cc:8741-8750 donner/svg/tests/SVGTextElement_tests.cc:1520 GetCharNumAtPositionFindsCorrectChar, :1289 GetCharNumAtPositionReturnsNegativeForMiss - - Both backends. The tie-break among overlapping cells (first match in logical order) was not compared with the full CR algorithm text: unverified.
feat:svg2/text-dom-lengths-and-counts conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InterfaceSVGTextContentElement getNumberOfChars counts addressable UTF-16 units of rendered content; getComputedTextLength and getSubStringLength sum advances, assigning a typographic character's advance to its first character. n/a donner/svg/text/TextEngine.cc:8680-8703, :3554-3565 donner/svg/renderer/tests/TextEngine_tests.cc:1292; donner/svg/tests/SVGTextElement_tests.cc:511 and neighbors - - Both backends. Whether letter-spacing and word-spacing after a character are included in its advance was not traced: unverified.
feat:svg2/text-dom-positions-extents-rotation conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InterfaceSVGTextContentElement Start and end positions, cell extent and rotation are reported per typographic character. n/a donner/svg/text/TextEngine.cc:8705-8739, :8129-8241 donner/svg/tests/SVGTextElement_tests.cc:511 EndPositionOfCharReturnsComputedValue, :940, :955 - - Both backends.
feat:svg2/text-dom-index-errors divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#InterfaceSVGTextContentElement An out-of-range character index raises IndexSizeError. n/a donner/svg/text/TextEngine.cc:8694-8728 (returns a zero point, empty box or 0) none low S Both backends. The C++ interface has no error channel here.
feat:svg2/text-font-fallback partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs Glyph selection follows CSS font matching with fallback for characters the chosen font lacks; downloadable fonts including WOFF must be supported. n/a donner/svg/text/TextEngine.cc:216-250, :3968-4022 (per-cluster coverage fallback); donner/svg/text/TextEngine.cc:245-250 (a backend that needs trusted font data swaps untrusted document fonts for the embedded fallback) donner/svg/renderer/tests/TextEngine_tests.cc:3779 UsesCoverageFallbackForVerticalJapaneseText; donner/svg/renderer/tests/TextSpanPositioning_tests.cc:87 SimpleBackendFallsBackFromUntrustedDocumentFont medium M HarfBuzz backend: per-cluster fallback. Basic backend: document-supplied fonts are replaced by the built-in fallback by design. Font matching itself belongs to the CSS Fonts rows of text_font_properties.md.
feat:svg2/text-missing-glyph partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#FontsGlyphs Characters with no glyph in any available font are shown per the font rules (a missing-glyph indicator is the usual CSS Fonts behavior; from memory, unverified). n/a donner/svg/renderer/PlacedTextGeometry.cc:98, :184; donner/svg/renderer/RendererTinySkia.cc:3182 (glyph id 0 is never painted) none low S Both backends. An unsupported character keeps its advance but paints nothing, and glyph id 0 doubles as the 'hidden on path' marker (donner/svg/text/TextEngine.cc:1427-1429). The SVG chapter itself states no rule; the normative text is in CSS Fonts.
feat:svg2/text-a-inline partial https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextLayoutAlgorithm An 'a' element inside text is an inline; it has no positioning attributes of its own. donner/svg/parser/AttributeParser.cc:1998-2070 ('a' accepts x, y, dx, dy, rotate, textLength, lengthAdjust) donner/svg/components/text/TextSystem.cc:616-641 (any ancestor with positioning data inside the text root is consulted) donner/svg/components/text/tests/TextSystem_tests.cc:1082 RotationInsideTextAnchorUsesTextRootAndNestedOverrides, :1139 low S Both backends. Inline treatment is right; honoring positioning attributes written on 'a' is an extension beyond the CR.

Vertical text

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/text-vertical-flow-and-advance conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#GlyphsMetrics In vertical writing modes text flows top to bottom, advances use the vertical advance, and lines stack right to left or left to right by writing-mode. n/a donner/svg/text/TextEngine.cc:6999-7077, :3379-3394 donner/svg/renderer/tests/TextEngineScripted_tests.cc:830 VerticalLayoutCoversSidewaysUprightSpacingAndRotation; donner/svg/renderer/tests/MixedVerticalTextConvergence_tests.cc; resvg third_party/resvg-test-suite/tests/text/writing-mode/* (three cases skipped, several full backend only) - - Both backends. The upright versus sideways decision for mixed orientation is a code point threshold (donner/svg/text/TextEngine.cc:7001-7002), a CSS Writing Modes matter for text_font_properties.md.
feat:svg2/text-vertical-anchor conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextAnchorProperty In vertical text start, middle and end anchor the top, middle and bottom of the chunk. n/a donner/svg/text/TextEngine.cc:2739-2752, :2873-2896 donner/svg/renderer/tests/TextEngine_tests.cc:770 ApplyTextAnchorAdjustsVerticalMiddleChunks, :3541, :3598 - - Both backends.
feat:svg2/text-vertical-baseline-central-compat conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#DominantBaselineProperty For sideways vertical text with dominant-baseline auto, glyphs align to x and y on the central baseline. n/a donner/svg/text/TextEngine.cc:6502-6525, :7007-7011 donner/svg/renderer/tests/TextEngine_tests.cc:1031 SidewaysVerticalGlyphCentersOnAscentDescentMidpoint - - Both backends.
feat:svg2/text-vertical-positioning-lists conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#TextElementYAttribute x, y, dx, dy and rotate apply to vertical text by the same indexing rules. n/a donner/svg/text/TextEngine.cc:6960-6987 donner/svg/renderer/tests/TextEngineScripted_tests.cc:761 VerticalPositioningAttributesUseUnicodeCodepointIndices, :863 - - Both backends.
feat:svg2/text-vertical-textlength conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveTextLength textLength adjusts along y in vertical text; spacingAndGlyphs stretches along the inline axis. n/a donner/svg/text/TextEngine.cc:1611-1640, :2255-2262 donner/svg/renderer/tests/TextEngine_tests.cc:693, :3673; donner/svg/renderer/tests/TextEngineScripted_tests.cc:1886; resvg third_party/resvg-test-suite/tests/text/lengthAdjust/vertical.svg - - Both backends.

Tests to create

  • attr:x@text, attr:y@text, attr:dx@text, attr:dy@text (https://www.w3.org/TR/2026/CR-SVG2-20261006/text.html#ResolveGlyphPositioning): <text x="10 bogus 90">ABC</text> parsed from a document; expected per spec: the attribute is invalid and all three characters flow from 0.
  • attr:x@tspan (same anchor): <text font-size="10"><tspan font-size="40" dx="1em">A</tspan></text>; expected shift 40, not 10.
  • attr:rotate@text (#TextElementRotateAttribute): rotate="10deg 20" parsed from a document; expected invalid.
  • attr:href@textPath and feat:svg2/textpath-href-over-xlink-href (#TextPathElement): textPath with xlink:href after href, pointing at different paths; expected href wins in either attribute order.
  • attr:path@textPath (#TextPathElementPathAttribute): path="M 10 10" with a valid href; expected fallback to href.
  • attr:startOffset@textPath and feat:svg2/text-algo-path-offset-pathlength (#TextLayoutAlgorithm): referenced path of length 200 with pathLength="100" and startOffset="50"; expected start at the midpoint. Second case: startOffset="2em" under font-size="30".
  • el:textPath (#elementdef-textPath): <text><a href="#"><textPath href="#p">X</textPath></a></text>; expected the text renders on the path.
  • prop:inline-size (#InlineSizeProperty): vertical text with inline-size: 50% in a 400 by 200 viewport; expected measure 100. Second case: inline-size: -10px is an invalid declaration.
  • prop:text-overflow, val:text-overflow/clip, val:text-overflow/ellipsis (#TextOverflowProperty): the CR example (three lines, inline-size 100, white-space pre).
  • prop:line-height (#LineHeightProperty): two-line white-space: pre text with line-height: 2; expected baseline distance of twice the font size.
  • prop:vertical-align (#BaselineShiftProperty): vertical-align: super on a tspan equals baseline-shift: super.
  • val:dominant-baseline/use-script, /no-change, /reset-size, val:alignment-baseline/auto, /before-edge, /after-edge, val:baseline-shift/baseline (#DominantBaselineProperty, #AlignmentBaselineProperty, #BaselineShiftProperty): each as a declaration after a valid one; expected the earlier valid value survives.
  • prop:letter-spacing, prop:word-spacing (#LetterSpacingProperty, #WordSpacingProperty): letter-spacing: 10% is invalid; word-spacing: 100% doubles each space advance.
  • feat:svg2/text-addressable-soft-hyphen (#TextLayoutAlgorithm): <text x="0 20 40">a&#xAD;b</text>; expected b at 20.
  • feat:svg2/text-addressable-before-text-transform (#TermAddressableCharacter): text-transform: uppercase on a string with U+00DF and an x list; indexes follow the source characters.
  • feat:svg2/text-ligature-letter-spacing (#FontsGlyphs): "fi" in a font with an fi ligature, letter-spacing: 5px, HarfBuzz backend; expected two glyphs.
  • feat:svg2/text-ligature-not-across-text-nodes (#FontsGlyphs): f<tspan>i</tspan> in the same font; expected no ligature.
  • feat:svg2/text-ligature-dx-textlength-keep (#FontsGlyphs): "fi" with dx="0 3"; expected the ligature is kept.
  • feat:svg2/text-advance-fallback-vertical-em (#GlyphsMetrics): upright vertical text in a font without vertical metrics; expected 1 em advances.
  • feat:svg2/text-bidi-scope-all-layouts (#GlyphsMetrics): mixed Latin and Hebrew with inline-size, with white-space: pre and a line feed, and inside a textPath; expected visual reordering in each.
  • feat:svg2/text-bidi-orientation-change-blocks (#GlyphsMetrics): vertical text mixing upright and sideways spans with rtl content.
  • feat:svg2/text-list-ignored-in-auto-wrap (#TSpanNotes): inline-size text whose tspans carry x, y, dx and rotate fallbacks; expected plain reflow from the first position.
  • feat:svg2/text-xy-not-presentation-attributes (#TextElementXAttribute): <text style="x: 50px">; expected no effect.
  • feat:svg2/text-algo-textlength-forced-break-skip (#ResolveTextLength): white-space: pre text with a line feed in one tspan and textLength on a sibling tspan; expected the sibling is adjusted.
  • feat:svg2/text-algo-textlength-not-with-inline-size (#TextElementTextLengthAttribute): short text with inline-size="500" and textLength="300"; expected natural width.
  • feat:svg2/text-algo-in-text-path-ignore-cross-axis, feat:svg2/text-algo-path-vertical (#TextpathLayoutRules): vertical textPath with a tspan carrying y="40" and another with dy="10"; expected both act along the path, and x/dx do not.
  • feat:svg2/text-algo-anchoring-direction (#TextLayoutAlgorithm): direction: rtl on a textPath over an open path and over a circle with each text-anchor value.
  • feat:svg2/text-wrap-vertical (#InlineSizeProperty): the CR vertical wrapping example.
  • feat:svg2/text-render-chunk-fill-stroke-as-one (#TextRenderingOrder): one chunk of two tspans with tight negative dx so glyphs overlap, thick strokes of different colors; expected all fills below all strokes.
  • feat:svg2/text-pseudo-first-line-first-letter (#TextProperties): text::first-letter { fill: red }.
  • feat:svg2/text-xml-space-default (#LegacyXMLSpace): "a", line feed, "b" under the default; the legacy rule expects "ab".
  • feat:svg2/text-dom-index-errors (#InterfaceSVGTextContentElement): index past the end on each character geometry method; expected an error result.
  • feat:svg2/text-missing-glyph (#FontsGlyphs): a private-use code point with no coverage; expected a visible missing-glyph box.
  • feat:svg2/text-algo-css-stage-block-inline, feat:svg2/text-pre-properties-not-applied (#TextLayoutAlgorithm, #TextLayoutPre): text-align: center, margin and float on text and tspan have no effect.
  • feat:svg2/textpath-line-height-not-applicable (#LineHeightProperty): once line-height exists, a textPath sibling keeps its position.

Unverified / could not fetch

  • Only the SVG 2 text chapter was fetched (successfully); statements about what CSS Text, CSS Fonts, CSS Inline or CSS Writing Modes require are limited to what the SVG chapter itself says, and the one statement made from memory (feat:svg2/text-missing-glyph) is marked.
  • Animation of the enumerated attributes (lengthAdjust, method, spacing, side) and of href and path was not traced; the list and length attributes have an animation path.
  • Not traced line by line and marked in their rows: the use shadow-tree text path, markers on text, the drop of transform on tspan, case-mapping text-transform against indexing, optional ligatures across tspan boundaries, the font metrics behind the glyph cell top and bottom, the GPU renderer's text painting order and fill rule, the tie-break in the character hit test, and whether trailing spacing is part of a character's reported advance.
  • feat:svg2/text-algo-chunk-not-mid-typographic-character: the spec moves the chunk start to the next character; Donner drops the mid-cluster position. Which outcome existing tests pin was not established.