Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Coordinate systems, transforms and units

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

Scope: SVG 2 chapter 8 (Coordinate Systems, Transformations and Units) in full, CSS Transforms Module Level 1 and Level 2, and Geometry Interfaces Level 1 where Donner has a C++ equivalent. All Donner behavior statements are by code reading of the Donner source; nothing was executed. Layout (viewports, transforms, units, bounding boxes) is computed once in the ECS under donner/svg/components/ and consumed by both the CPU renderer and the GPU renderer, so unless a row says otherwise a rule holds, or fails, identically in both.

Specs read

Spec Level Maturity Dated URL read
SVG 2, chapter 8 Coordinate Systems, Transformations and Units 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html
SVG 2, chapter 4 Basic Data Types and Interfaces (sections 4.1, 4.2 only: invalid values, attribute parsing) 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html
CSS Transforms Module Level 1 1 Candidate Recommendation, 14 February 2019 (latest published TR) https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/
CSS Transforms Module Level 2 2 Working Draft, 9 November 2021 (latest published TR) https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/
Geometry Interfaces Module Level 1 1 Candidate Recommendation Draft, 4 December 2025 (latest published TR) https://www.w3.org/TR/2025/CRD-geometry-1-20251204/

Inventory

Derivation. SVG 2 chapter 8: one feat:svg2/coords-... row per normative rule, walking sections 8.1 to 8.14 in order (each step of the equivalent-transform algorithm in 8.2, each branch of the intrinsic ratio algorithm in 8.12, each unit of CSS Values Level 3 for 8.9, each step of the bounding box algorithm in 8.10, each row of the table in 8.11 as a cross-reference), plus prop:/val: rows for vector-effect (8.13) and val: rows for every preserveAspectRatio keyword. CSS Transforms Level 1: the property index (transform, transform-origin, transform-box) with a val: row per keyword and per function, every grammar production of section 7.2, and one feat:css-transforms-1/... row per rule in sections 2 to 14. CSS Transforms Level 2: the property index (translate, rotate, scale, transform-style, perspective, perspective-origin, backface-visibility), every 3D function of section 12.2, and the rules of sections 3, 6, 11, 15, 17. Geometry Interfaces: only members with a C++ counterpart in donner/base/Transform.h, Box.h, Vector2.h.

Out of scope for a user agent without script, each still given a not-applicable row: the SVG DOM interfaces of coords 8.14, section 7.5 of css-transforms-1, CSSOM serialization, the CSS box model consequences of transforms (stacking contexts, containing blocks, overflow), 3D rendering (Level 2 section 3 lets a 2D-only user agent reject it), and the IDL-only parts of Geometry Interfaces. The viewBox, preserveAspectRatio, transform, gradientTransform and patternTransform attribute-index rows themselves belong to the element ledgers; this ledger covers their grammar and semantics as features. Value rows for properties that are not implemented at all are folded into the property row.

Row keys (254):

  • SVG 2 coords 8.1 to 8.4: viewports and the initial coordinate system: feat:svg2/coords-viewport-model, feat:svg2/coords-initial-viewport-from-attributes, feat:svg2/coords-initial-viewport-css-sizing, feat:svg2/coords-initial-viewport-unitless-is-px, feat:svg2/coords-initial-coordinate-system, feat:svg2/coords-px-real-world-size, feat:svg2/coords-canvas-api-sizing
  • SVG 2 coords 8.12: intrinsic sizing: feat:svg2/coords-intrinsic-dimensions, feat:svg2/coords-intrinsic-ratio-step1-absolute-sizes, feat:svg2/coords-intrinsic-ratio-step2-active-view, feat:svg2/coords-intrinsic-ratio-step3-viewbox, feat:svg2/coords-intrinsic-ratio-step4-none, feat:svg2/coords-intrinsic-ratio-ignores-preserveAspectRatio, feat:svg2/coords-default-sizing-algorithm, feat:svg2/coords-default-object-size-300x150, feat:svg2/coords-outermost-size-negative-or-zero
  • SVG 2 coords 8.6: viewBox: feat:svg2/coords-viewbox-grammar, feat:svg2/coords-viewbox-separators, feat:svg2/coords-viewbox-wrong-count, feat:svg2/coords-viewbox-negative-size, feat:svg2/coords-viewbox-zero-size, feat:svg2/coords-viewbox-surrounding-whitespace, feat:svg2/coords-viewbox-own-geometry-unaffected, feat:svg2/coords-viewbox-applicable-elements, feat:svg2/coords-viewbox-animatable, feat:svg2/coords-transform-then-viewbox-order, feat:svg2/coords-transform-on-outermost-svg
  • SVG 2 coords 8.7 and 8.2: preserveAspectRatio and the equivalent transform: feat:svg2/coords-par-grammar, val:preserveAspectRatio/none, val:preserveAspectRatio/xMinYMin, val:preserveAspectRatio/xMidYMin, val:preserveAspectRatio/xMaxYMin, val:preserveAspectRatio/xMinYMid, val:preserveAspectRatio/xMidYMid, val:preserveAspectRatio/xMaxYMid, val:preserveAspectRatio/xMinYMax, val:preserveAspectRatio/xMidYMax, val:preserveAspectRatio/xMaxYMax, val:preserveAspectRatio/meet, val:preserveAspectRatio/slice, feat:svg2/coords-par-initial-value, feat:svg2/coords-par-ignored-without-viewbox, feat:svg2/coords-par-surrounding-whitespace, feat:svg2/coords-par-invalid-value, feat:svg2/coords-par-applicable-elements, feat:svg2/coords-par-animatable, feat:svg2/coords-equivalent-transform-inputs, feat:svg2/coords-equivalent-transform-initial-scale, feat:svg2/coords-equivalent-transform-meet, feat:svg2/coords-equivalent-transform-slice, feat:svg2/coords-equivalent-transform-initial-translate, feat:svg2/coords-equivalent-transform-align-x, feat:svg2/coords-equivalent-transform-align-y, feat:svg2/coords-equivalent-transform-result
  • SVG 2 coords 8.8: establishing viewports: feat:svg2/coords-nested-svg-viewport-bounds, feat:svg2/coords-nested-svg-auto-size, feat:svg2/coords-viewport-established-by-svg, feat:svg2/coords-viewport-established-by-symbol-instance, feat:svg2/coords-pattern-marker-no-viewport, feat:svg2/coords-foreignobject-containing-block, feat:svg2/coords-image-document-viewport, feat:svg2/coords-viewport-overflow-clip, feat:svg2/coords-zero-size-viewport
  • SVG 2 coords 8.9: units: feat:svg2/coords-units-css-values-types, feat:svg2/coords-units-user-units, feat:svg2/coords-unit-px, feat:svg2/coords-unit-in, feat:svg2/coords-unit-cm, feat:svg2/coords-unit-mm, feat:svg2/coords-unit-q, feat:svg2/coords-unit-pt, feat:svg2/coords-unit-pc, feat:svg2/coords-unit-em, feat:svg2/coords-unit-ex, feat:svg2/coords-unit-ch, feat:svg2/coords-unit-rem, feat:svg2/coords-unit-vw, feat:svg2/coords-unit-vh, feat:svg2/coords-unit-vmin, feat:svg2/coords-unit-vmax, feat:svg2/coords-units-percent-x, feat:svg2/coords-units-percent-y, feat:svg2/coords-units-percent-normalized-diagonal
  • SVG 2 coords 8.10: bounding boxes: feat:svg2/coords-bbox-definition, feat:svg2/coords-object-bounding-box, feat:svg2/coords-stroke-bounding-box, feat:svg2/coords-decorated-bounding-box, feat:svg2/coords-bbox-paint-properties-ignored, feat:svg2/coords-bbox-curves-exclude-control-points, feat:svg2/coords-bbox-nonrendered-element-own-bbox, feat:svg2/coords-bbox-nonrendered-not-contributing, feat:svg2/coords-bbox-text-glyph-cells, feat:svg2/coords-bbox-zero-extent-elements, feat:svg2/coords-bbox-no-geometry-at-origin, feat:svg2/coords-bbox-unresolved-reference, feat:svg2/coords-bbox-alg-shape-fill, feat:svg2/coords-bbox-alg-shape-stroke, feat:svg2/coords-bbox-alg-shape-markers, feat:svg2/coords-bbox-alg-clipped, feat:svg2/coords-bbox-alg-container, feat:svg2/coords-bbox-alg-use, feat:svg2/coords-bbox-alg-image-foreignobject, feat:svg2/coords-bbox-alg-nested-svg, feat:svg2/coords-bbox-effects-do-not-change-bbox, feat:svg2/coords-bbox-reflects-current-values, feat:svg2/coords-bbox-non-graphics-elements
  • SVG 2 coords 8.11: object bounding box units: feat:svg2/coords-obb-supplemental-transform, feat:svg2/coords-obb-percent-equals-fraction, feat:svg2/coords-obb-content-percentages, feat:svg2/coords-obb-values-outside-unit-range, feat:svg2/coords-obb-zero-size-bbox, feat:svg2/coords-context-linearGradient-gradientUnits, feat:svg2/coords-context-radialGradient-gradientUnits, feat:svg2/coords-context-pattern-patternUnits, feat:svg2/coords-context-pattern-patternContentUnits, feat:svg2/coords-context-clipPath-clipPathUnits, feat:svg2/coords-context-mask-maskUnits, feat:svg2/coords-context-mask-maskContentUnits, feat:svg2/coords-context-filter-filterUnits, feat:svg2/coords-context-filter-primitiveUnits, feat:svg2/coords-context-marker-markerUnits
  • SVG 2 coords 8.13: vector effects: prop:vector-effect, val:vector-effect/none, val:vector-effect/non-scaling-stroke, val:vector-effect/non-scaling-size, val:vector-effect/non-rotation, val:vector-effect/fixed-position, feat:svg2/coords-vector-effect-combinations, feat:svg2/coords-vector-effect-host-space, feat:svg2/coords-vector-effect-nested-viewport-keywords, feat:svg2/coords-vector-effect-3d-context
  • SVG 2 coords 8.5 and css-transforms-1 sections 3, 4, 10: the transform property: feat:svg2/coords-transform-property-support, prop:transform, val:transform/none, val:transform/transform-list, feat:css-transforms-1/transform-function-list-order, feat:css-transforms-1/transformation-matrix-computation, feat:css-transforms-1/ctm-accumulation, feat:css-transforms-1/transformable-elements, feat:css-transforms-1/presentation-attribute-cascade, feat:css-transforms-1/non-invertible-matrix-not-rendered, feat:css-transforms-1/mathematical-description, feat:css-transforms-1/css-box-model-effects, feat:css-transforms-1/serialization
  • css-transforms-1 section 7: the SVG transform attribute grammar: feat:css-transforms-1/svg-wsp, feat:css-transforms-1/svg-comma-wsp, feat:css-transforms-1/svg-number, feat:css-transforms-1/svg-translate-production, feat:css-transforms-1/svg-scale-production, feat:css-transforms-1/svg-rotate-production, feat:css-transforms-1/svg-skewX-production, feat:css-transforms-1/svg-skewY-production, feat:css-transforms-1/svg-matrix-production, feat:css-transforms-1/svg-function-name-syntax, feat:css-transforms-1/svg-transforms-separator, feat:css-transforms-1/svg-transform-list-production, feat:css-transforms-1/svg-attribute-css-only-functions, feat:css-transforms-1/svg-function-mapping, val:transform/rotate-three-argument-attribute-form, feat:svg2/coords-transform-attribute-css-syntax, feat:css-transforms-1/transform-attribute-error-handling, feat:css-transforms-1/transform-property-error-handling, feat:css-transforms-1/gradientTransform-mapping, feat:css-transforms-1/patternTransform-mapping, feat:css-transforms-1/user-coordinate-space, feat:css-transforms-1/svg-dom-transform-list
  • css-transforms-1 section 9: 2D transform functions (CSS syntax): val:transform/matrix(), val:transform/translate(), val:transform/translateX(), val:transform/translateY(), val:transform/scale(), val:transform/scaleX(), val:transform/scaleY(), val:transform/rotate(), val:transform/skew(), val:transform/skewX(), val:transform/skewY(), feat:css-transforms-1/angle-units, feat:css-transforms-1/css-function-syntax, feat:css-transforms-1/percentages-reference-box
  • css-transforms-1 section 5: transform-origin: prop:transform-origin, val:transform-origin/left, val:transform-origin/right, val:transform-origin/top, val:transform-origin/bottom, val:transform-origin/center, val:transform-origin/length-percentage, val:transform-origin/one-value-form, val:transform-origin/two-value-form, val:transform-origin/three-value-form, feat:css-transforms-1/transform-origin-svg-initial, feat:css-transforms-1/view-box-reference-box-origin, feat:css-transforms-1/reference-box-of-sized-elements, feat:css-transforms-1/transform-origin-font-relative-lengths, feat:css-transforms-1/transform-origin-on-paint-servers-and-clippath, feat:css-transforms-1/transform-origin-presentation-attribute
  • css-transforms-1 section 6: transform-box: prop:transform-box, val:transform-box/content-box, val:transform-box/border-box, val:transform-box/fill-box, val:transform-box/stroke-box, val:transform-box/view-box, feat:css-transforms-1/transform-box-svg-mappings
  • css-transforms-1 sections 8, 11 to 13: animation and interpolation: feat:css-transforms-1/svg-animate-and-set-transform, feat:css-transforms-1/neutral-element-for-addition, feat:css-transforms-1/attributeName-transform-alias, feat:svg2/coords-supplemental-motion-transform-order, feat:css-transforms-1/interpolation-of-transform-lists, feat:css-transforms-1/interpolation-of-primitives-and-derived-functions, feat:css-transforms-1/matrix-decomposition-2d, feat:css-transforms-1/matrix-interpolation-2d, feat:css-transforms-1/matrix-recomposition-2d, feat:css-transforms-1/interpolation-non-invertible-fallback
  • css-transforms-2: 3D functions, individual properties, 3D properties: feat:css-transforms-2/two-dimensional-subset, val:transform/matrix3d(), val:transform/translate3d(), val:transform/translateZ(), val:transform/scale3d(), val:transform/scaleZ(), val:transform/rotate3d(), val:transform/rotateX(), val:transform/rotateY(), val:transform/rotateZ(), val:transform/perspective(), feat:css-transforms-2/svg-and-3d-functions, prop:translate, prop:rotate, prop:scale, feat:css-transforms-2/ctm-with-individual-properties, prop:transform-style, prop:perspective, prop:perspective-origin, prop:backface-visibility, feat:css-transforms-2/addition-and-accumulation, feat:css-transforms-2/new-presentation-attributes
  • SVG 2 coords 8.14: DOM interfaces: feat:svg2/coords-dom-SVGTransform, feat:svg2/coords-dom-SVGTransformList, feat:svg2/coords-dom-SVGAnimatedTransformList, feat:svg2/coords-dom-SVGPreserveAspectRatio, feat:svg2/coords-dom-SVGAnimatedPreserveAspectRatio
  • Geometry Interfaces Level 1 (only where a C++ equivalent exists): feat:geometry-1/dompoint, feat:geometry-1/dompoint-matrixtransform, feat:geometry-1/domrect, feat:geometry-1/domquad, feat:geometry-1/dommatrix-2d-components, feat:geometry-1/dommatrix-multiply, feat:geometry-1/dommatrix-inverse, feat:geometry-1/dommatrix-translate, feat:geometry-1/dommatrix-scale, feat:geometry-1/dommatrix-rotate, feat:geometry-1/dommatrix-skewx, feat:geometry-1/dommatrix-skewy, feat:geometry-1/dommatrix-isidentity, feat:geometry-1/dommatrix-3d-and-mutators

Row count by class: conformant 112, conformant-untested 29, partial 37, divergent 14, missing 19, not-applicable 39, spec-ambiguity 4.

Matrix

SVG 2 coords 8.1 to 8.4: viewports and the initial coordinate system

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-viewport-model conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Introduction Every SVG viewport has a viewport coordinate system and a user coordinate system; viewports nest, and percentages resolve against the nearest ancestor viewport element. n/a (structural) donner/svg/components/layout/LayoutSystem.cc:288-327 (getViewBox cascade), donner/svg/components/layout/LayoutSystem.cc:488-557 (absolute transform cascade) LayoutSystemTest.ViewportRoot, ViewportNestedSvg; resvg structure/svg/nested-svg.svg (run, no skip) - - Layout is computed once in the ECS and consumed by both renderers, so the rule holds for the CPU and the GPU renderer alike.
feat:svg2/coords-initial-viewport-from-attributes conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewportSpace The initial viewport width and height come from the width and height presentation attributes of the outermost svg unless CSS positioning establishes them. donner/svg/components/layout/LayoutSystem.cc:48-86 (x, y, width, height parse functions) donner/svg/components/layout/LayoutSystem.cc:872-891 (calculateRawDocumentSize) LayoutSystemTest.CalculateDocumentSizeWithWidthHeight; SVGDocument.CanvasFromDocumentTransformScaling - - Both renderers size their surface from the same document size.
feat:svg2/coords-initial-viewport-css-sizing divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewportSpace When the outermost svg is styled with CSS sizing properties, those properties establish the viewport width and height. donner/svg/components/layout/LayoutSystem.cc:114-129 (ApplyUnparsedProperties exists for sized elements) donner/svg/components/layout/LayoutSystem.cc:872-881 (reads only the authored SizedElementComponent, never the cascaded CSS width/height) none low S Nested svg, image and use do apply cascaded CSS sizes (donner/svg/components/layout/LayoutSystem.cc:725-731); only the root document size path skips them.
feat:svg2/coords-initial-viewport-unitless-is-px conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewportSpace Unitless width or height on the outermost svg is treated as the same number of px. donner/svg/parser/LengthPercentageParser.cc:18-23 donner/base/Length.h:166 (Unit::None returns the value), donner/svg/components/layout/LayoutSystem.cc:143-148 LayoutSystemTest.CalculateDocumentSizeWithWidthHeight - - -
feat:svg2/coords-initial-coordinate-system conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InitialCoordinateSystem Initial viewport and user coordinate systems are identical, origin top-left, x to the right, y down, one unit equals one CSS px. n/a donner/svg/components/layout/LayoutSystem.cc:398-412 (getCanvasFromDocumentTransform), donner/svg/renderer/RenderingContext.cc:474-480 SVGDocument.CanvasFromDocumentTransformIdentity; every resvg image comparison - - Holds in both renderers (shared canvas-from-document transform).
feat:svg2/coords-px-real-world-size conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InitialCoordinateSystem The user agent picks the real-world size of a px consistently with CSS (96 px per inch); device scale is a host matter. n/a donner/base/RelativeLengthMetrics.h:50-53 (96 dpi constants), donner/svg/renderer/RendererDriver.cc:281 (devicePixelRatio is a separate viewport input) LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-canvas-api-sizing partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS In every host context the intrinsic aspect ratio must be respected when the viewport is sized (here: how the embedding API sizes the canvas). n/a (API: donner/svg/SVGDocument.h:449-457 setCanvasSize, :533 useAutomaticCanvasSize) donner/svg/components/layout/LayoutSystem.cc:337-368 (uniform fit into the caller canvas, 8192 px clamp), donner/svg/components/layout/LayoutSystem.cc:845-855 LayoutSystemTest.CanvasScaledDocumentSizeNonSquareViewBox, CanvasScaledDocumentSizeClampsLargeDocuments low S The caller canvas is a contain constraint, so the ratio is kept. By code reading, a root svg without viewBox gets a resized canvas but no content scale (donner/svg/core/PreserveAspectRatio.cc:9-11 returns only a translation), documented as API policy on the resvg row structure/svg/no-size.svg, which compares against a Donner golden.

SVG 2 coords 8.12: intrinsic sizing

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-intrinsic-dimensions partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS Intrinsic width and height come from the width and height sizing properties; auto and percentages never give an intrinsic dimension. donner/svg/components/layout/LayoutSystem.cc:131-148 (IsAbsolute, GetDefiniteSize) donner/svg/components/layout/LayoutSystem.cc:881-925 LayoutSystemTest.PercentageWidthHeightOnRootFallsBackToViewBox, PercentageWidthHeightNoViewBox low S Percentages are excluded as required, but so are em, ex, ch, rem and viewport units (donner/base/Length.h:135-138): a root width of 10em is treated like auto instead of a 160px intrinsic width.
feat:svg2/coords-intrinsic-ratio-step1-absolute-sizes conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS If width and height are both absolute, the ratio is width divided by height. donner/svg/components/layout/LayoutSystem.cc:131-140 donner/svg/components/layout/LayoutSystem.cc:265-269 none for the ratio function itself (CalculateDocumentSizeWithWidthHeight covers the size, not intrinsicAspectRatio) - - -
feat:svg2/coords-intrinsic-ratio-step2-active-view missing https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS If an SVG view is active, its viewBox gives the ratio. grep ElementType.h for View: no element type donner/svg/components/layout/LayoutSystem.cc:271 (TODO) none low M Depends on view element and fragment identifier support, owned by the linking ledger.
feat:svg2/coords-intrinsic-ratio-step3-viewbox conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS Otherwise a correctly specified viewBox gives width divided by height. donner/svg/parser/ViewBoxParser.cc:16-36 donner/svg/components/layout/LayoutSystem.cc:274-278, :902-911 LayoutSystemTest.IntrinsicAspectRatioWithViewBox, DefiniteHeightUsesIntrinsicAspectRatio - - -
feat:svg2/coords-intrinsic-ratio-step4-none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS Otherwise there is no intrinsic ratio. n/a donner/svg/components/layout/LayoutSystem.cc:280-281 LayoutSystemTest.IntrinsicAspectRatioMissingReturnsNullopt - - -
feat:svg2/coords-intrinsic-ratio-ignores-preserveAspectRatio divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS The ratio algorithm does not consult preserveAspectRatio, and the ratio must be respected when sizing. n/a donner/svg/components/layout/LayoutSystem.cc:902-903 (ratio skipped when preserveAspectRatio equals none) none low S With one absolute dimension, a viewBox and preserveAspectRatio=none, the other dimension comes from the default size instead of the viewBox ratio. The comparison is also exact, so 'none slice' takes the other branch.
feat:svg2/coords-default-sizing-algorithm partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS The concrete size follows the CSS Images default sizing algorithm with the specified size and the intrinsic dimensions as inputs. n/a donner/svg/components/layout/LayoutSystem.cc:884-956 LayoutSystemTest.DefiniteDimensionWithoutAspectRatioUsesDefaultCanvasDimension, CalculateDocumentSizeFromViewBox low S With no specified size and a viewBox, the automatic canvas is the viewBox size itself (donner/svg/components/layout/LayoutSystem.cc:941-943) instead of a contain fit into the default object size; the viewBox is used as if it gave natural dimensions.
feat:svg2/coords-default-object-size-300x150 divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#SizingSVGInCSS With no usable size and no ratio the default object size of the host applies (300 by 150 CSS px in CSS replaced-element sizing). n/a donner/svg/components/layout/LayoutSystem.cc:39-40 (512 by 512), :346, :879, :934 LayoutSystemTest.PercentageWidthHeightNoViewBox pins 512; resvg structure/svg/no-size.svg compares against a Donner golden as API policy low S Deliberate API default, documented at donner/svg/SVGDocument.h:449-452 and :531. A host that wants 300x150 must call setCanvasSize.
feat:svg2/coords-outermost-size-negative-or-zero partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewportSpace A negative width or height is invalid and behaves as auto; a zero size disables rendering. donner/svg/components/layout/LayoutSystem.cc:48-86 (negative lengths are accepted by the length parser) donner/svg/components/layout/LayoutSystem.cc:343-350 (non-positive or non-finite document size returns the caller canvas or 512x512, or a zero size, depending on the caller) LayoutSystemTest.CanvasScaledDocumentSizeInvalidReturnsZeroOrDefault; resvg structure/svg/zero-size.svg and negative-size.svg have no vendored reference image low S Negative sizes fall back to the default size, close to auto. A zero size does not reliably disable rendering: with the ReturnDefault behavior the document is drawn on the default canvas. Nested svg and image negative sizes belong to the geometry ledger.

SVG 2 coords 8.6: viewBox

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-viewbox-grammar conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute viewBox is four numbers min-x, min-y, width, height. donner/svg/parser/ViewBoxParser.cc:16-36 (readNumbers of four, end of string required) donner/svg/components/layout/LayoutSystem.cc:651-657, donner/svg/core/PreserveAspectRatio.cc:7-28 ViewBoxParser.Valid; SVGSVGElementTests.ViewBoxParsing; resvg structure/svg/nested-svg-with-viewBox.svg - - -
feat:svg2/coords-viewbox-separators conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Numbers are separated by whitespace and/or one optional comma. donner/base/parser/details/ParserBase.cc:21-34, :86-101 same as above ViewBoxParser.Commas (accepts '0 , 0, 1 ,1', rejects '0,,0 1 1') - - -
feat:svg2/coords-viewbox-wrong-count conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute A value that is not exactly four numbers fails to parse and the attribute behaves as if not specified. donner/svg/parser/ViewBoxParser.cc:18-33 donner/svg/parser/AttributeParser.cc:280-285 (error becomes a warning, viewBox is not set) ViewBoxParser.Empty, ViewBoxParser.ExtraData ('0 0 1 1 more') - - -
feat:svg2/coords-viewbox-negative-size conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Negative width or height is an error: the attribute is treated as not specified. donner/svg/parser/ViewBoxParser.cc:22-26 donner/svg/parser/AttributeParser.cc:280-285 ViewBoxParser.InvalidSize - - -
feat:svg2/coords-viewbox-zero-size partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute Zero width or height disables rendering of the element. donner/svg/parser/ViewBoxParser.cc:22-36 (zero accepted; ViewBoxParser.Valid pins '0 0 0 0') donner/svg/core/PreserveAspectRatio.cc:13 (divides the element size by the viewBox size; no disable path), donner/svg/renderer/RenderingContext.cc:447-459 (only the element bounds are tested for emptiness) LayoutSystemTest.ZeroSizeViewBoxDoesNotCrash, ZeroWidthViewBoxDoesNotCrash, ZeroHeightViewBoxDoesNotCrash assert only survival low S The half that exists is parsing; nothing suppresses the subtree, so the outcome depends on infinite or NaN scale propagation in each renderer (unverified, by code reading).
feat:svg2/coords-viewbox-surrounding-whitespace divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#attribute-css-value Attributes defined with CSS value syntax are parsed as CSS, so leading and trailing whitespace (and comments) are permitted. donner/svg/parser/ViewBoxParser.cc:16-33; donner/base/parser/NumberParser.cc:195-222 (no whitespace skip) donner/svg/parser/AttributeParser.cc:280-285 (raw attribute value passed through, attribute dropped on error) ViewBoxParser.ExtraData pins ' 0 0 1 1' and '0 0 1 1 ' as errors medium S A viewBox written with a leading newline or a trailing space is silently ignored, which changes the whole document scale.
feat:svg2/coords-viewbox-own-geometry-unaffected conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttributeEffectOnSiblingAttributes The viewBox transform does not affect x, y, width, height of the element itself; it applies to its other attributes and to descendants. n/a donner/svg/components/layout/LayoutSystem.cc:735-748 (bounds resolved against the parent viewBox), :458-474 LayoutSystemTest.NestedSvgContentTransform, GetEntityContentTransform; resvg structure/svg/nested-svg-with-rect-and-viewBox-1.svg - - -
feat:svg2/coords-viewbox-applicable-elements partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute viewBox applies to svg, symbol, marker, pattern and view. donner/svg/parser/AttributeParser.cc:1546 (pattern), :1664 (svg), :1820 (marker), :1882 (symbol) donner/svg/SVGSVGElement.cc:15, SVGSymbolElement.cc:30, SVGMarkerElement.cc:28, SVGPatternElement.cc:38 SVGMarkerElementTests.ViewBoxPreserveAspectRatioAndMarkerUnits, SVGPatternElementTests.SetViewBoxPreserveAspectRatioAndHref low M The view element is not an element type (grep of donner/svg/ElementType.h), so viewBox on view is missing; owned by the linking ledger.
feat:svg2/coords-viewbox-animatable conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute viewBox is animatable. donner/svg/renderer/AnimationAttributes.cc:997-1003 donner/svg/renderer/AnimationAttributes.cc:1057 (viewport invalidation) RendererAnimation.AnimatedViewBoxMatchesIndependentStaticViewport - - Animation engine details belong to the animation ledger.
feat:svg2/coords-transform-then-viewbox-order conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute On an element with transform and viewBox, transform creates the first coordinate system and viewBox the second; the first is post-multiplied by the second (transform sits outside the viewBox mapping). n/a donner/svg/components/layout/LayoutSystem.cc:559-574 (content-from-entity viewBox mapping, then entity-from-parent transform) none: no unit test or corpus case puts a transform on an svg element (grep for '<svg' with transform= over resvg, donner/svg tests) low S Correct for nested svg by code reading, but see the reference box row: the pivot used for a nested svg with x/y is wrong.
feat:svg2/coords-transform-on-outermost-svg divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute transform on the svg element applies conceptually outside the element, as if a parent carried it, also for the outermost svg. donner/svg/properties/PropertyRegistry.cc:3594-3611 (transform is parsed on every element, including the root) donner/svg/components/layout/LayoutSystem.cc:458-459 (the root is excluded from the content transform), donner/svg/renderer/RenderingContext.cc:474-480 (world transform, which already contains the root transform, is multiplied by the root viewBox mapping afterwards) none medium S The root transform is applied, but inside the viewBox mapping (in viewBox user units) instead of outside it, while its 50% 50% origin is computed from the canvas-pixel box (donner/svg/components/layout/LayoutSystem.cc:845-855). Wrong whenever the root has a viewBox whose scale is not 1 or whose origin is not 0.

SVG 2 coords 8.7 and 8.2: preserveAspectRatio and the equivalent transform

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-par-grammar conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute Value is an align keyword optionally followed by meet or slice; keywords are case-sensitive. donner/svg/parser/PreserveAspectRatioParser.cc:11-73 donner/svg/components/PreserveAspectRatioComponent.h; donner/svg/components/layout/LayoutSystem.cc:106-112 PreserveAspectRatioParser.AlignOnly, None, BadToken, InvalidMeetOrSlice - - The removed defer keyword is rejected (BadToken path).
val:preserveAspectRatio/none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign none: no uniform scaling; the viewBox is stretched to fill the viewport and meetOrSlice is ignored. donner/svg/parser/PreserveAspectRatioParser.cc:17-18 donner/svg/core/PreserveAspectRatio.cc:13-20 PreserveAspectRatioParser.None; PreserveAspectRatio.None; LayoutSystemTest.PreserveAspectRatioNone; resvg structure/svg/preserveAspectRatio=none.svg (AA threshold) - - -
val:preserveAspectRatio/xMinYMin conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMin: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) PreserveAspectRatio.MinMaxMeet, MinMaxSlice; resvg structure/svg/preserveAspectRatio=xMinYMin.svg (AA threshold) and =xMinYMin-slice.svg - - -
val:preserveAspectRatio/xMidYMin conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMin: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMaxYMin conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMin: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMinYMid conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMid: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMidYMid conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMid: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) PreserveAspectRatio.Defaults, Slice; resvg structure/svg/preserveAspectRatio=xMidYMid.svg (AA threshold) and =xMidYMid-slice.svg - - -
val:preserveAspectRatio/xMaxYMid conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMid: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMinYMax conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMinYMax: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMidYMax conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMidYMax: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) parse only: PreserveAspectRatioParser.AlignOnly. No test asserts the resulting transform for this mixed alignment. low S The transform comes from the same multiplier table as the tested alignments.
val:preserveAspectRatio/xMaxYMax conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#DataTypeAlign xMaxYMax: uniform scaling with the named x and y alignment of the viewBox inside the viewport. donner/svg/parser/PreserveAspectRatioParser.cc:19-36 donner/svg/core/PreserveAspectRatio.cc:22-27; donner/svg/core/PreserveAspectRatio.h:62-91 (alignment multipliers) PreserveAspectRatio.MinMaxMeet, MinMaxSlice; resvg structure/svg/preserveAspectRatio=xMaxYMax.svg (AA threshold) and =xMaxYMax-slice.svg - - -
val:preserveAspectRatio/meet conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute meet: keep the ratio, show the whole viewBox, scale up as far as possible. donner/svg/parser/PreserveAspectRatioParser.cc:53-54 donner/svg/core/PreserveAspectRatio.cc:15-16 PreserveAspectRatio.Defaults, MinMaxMeet; resvg structure/image/preserveAspectRatio=xMidYMid-meet.svg - - -
val:preserveAspectRatio/slice conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute slice: keep the ratio, cover the whole viewport, scale down as far as possible. donner/svg/parser/PreserveAspectRatioParser.cc:55-56 donner/svg/core/PreserveAspectRatio.cc:17-18 PreserveAspectRatio.Slice, MinMaxSlice; resvg structure/svg/preserveAspectRatio=xMidYMid-slice.svg - - -
feat:svg2/coords-par-initial-value conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute Initial value is xMidYMid meet. n/a donner/svg/core/PreserveAspectRatio.h:38-50; donner/svg/components/layout/LayoutSystem.cc:106-112 PreserveAspectRatio.Defaults; SVGImageElementTests.PreserveAspectRatioDefault - - -
feat:svg2/coords-par-ignored-without-viewbox conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute On viewport elements, marker, pattern and view the attribute only applies when viewBox is also given. n/a donner/svg/core/PreserveAspectRatio.cc:9-11 PreserveAspectRatio.TransformEmptyViewBox, NoViewBoxNonEmptySize - - -
feat:svg2/coords-par-surrounding-whitespace divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#attribute-css-value As a CSS-syntax attribute, leading and trailing whitespace is allowed. donner/svg/parser/PreserveAspectRatioParser.cc:15-17 (no leading skip), :64-69 (anything after meet or slice is an error) donner/svg/parser/AttributeParser.cc:287-294 (attribute dropped on error) PreserveAspectRatioParser.InvalidWhitespace pins ' ' and 'none slice ' as errors low S types.html makes CSS parsing normative for this attribute. Trailing whitespace after a lone align keyword is accepted, after meet or slice it is not.
feat:svg2/coords-par-invalid-value conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax A value that fails to parse behaves as the initial value. donner/svg/parser/PreserveAspectRatioParser.cc:37-45, :57-62 donner/svg/parser/AttributeParser.cc:287-294 (component keeps its default) parser errors: PreserveAspectRatioParser.BadToken; fallback to the default is by code reading - - -
feat:svg2/coords-par-applicable-elements partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute Applies to viewport-establishing elements plus image, marker, pattern and view (feImage per the attribute index). donner/svg/parser/AttributeParser.cc:278-299 (svg, symbol, marker, pattern), :1074 (feImage), :1468 (image) donner/svg/components/layout/LayoutSystem.cc:651-668; donner/svg/renderer/RendererDriver.cc:770-773 (pattern) SVGImageElementTests.PreserveAspectRatioParsedSlice; SVGMarkerElementTests.ViewBoxPreserveAspectRatioAndMarkerUnits; resvg structure/image/preserveAspectRatio=*.svg low M view is unsupported (no element type). feImage silently ignores an invalid value without a warning.
feat:svg2/coords-par-animatable conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#PreserveAspectRatioAttribute preserveAspectRatio is animatable. donner/svg/renderer/AnimationAttributes.cc:1004-1017 same RendererAnimationPresentation.PreserveAspectRatioAnimatesAndRestores - - -
feat:svg2/coords-equivalent-transform-inputs conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform Inputs: viewBox rectangle, element position and size, align (default xMidYMid), meetOrSlice (default meet). n/a donner/svg/core/PreserveAspectRatio.cc:7-12 PreserveAspectRatio.Defaults - - Shared by svg, symbol instances, marker and pattern content; renderer independent.
feat:svg2/coords-equivalent-transform-initial-scale conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform scale-x = e-width / vb-width and scale-y = e-height / vb-height. n/a donner/svg/core/PreserveAspectRatio.cc:13 PreserveAspectRatio.None - - -
feat:svg2/coords-equivalent-transform-meet conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform If align is not none and meetOrSlice is meet, both scales become the smaller one. n/a donner/svg/core/PreserveAspectRatio.cc:14-16 PreserveAspectRatio.Defaults, MinMaxMeet - - -
feat:svg2/coords-equivalent-transform-slice conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform If align is not none and meetOrSlice is slice, both scales become the larger one. n/a donner/svg/core/PreserveAspectRatio.cc:17-19 PreserveAspectRatio.Slice, MinMaxSlice - - -
feat:svg2/coords-equivalent-transform-initial-translate conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform translate = element position minus viewBox origin times scale. n/a donner/svg/core/PreserveAspectRatio.cc:22 LayoutSystemTest.ViewBoxNegativeCoordinates, ViewBoxNegativeCoordinatesWithScaling; resvg structure/svg/viewBox-not-at-zero-pos.svg - - -
feat:svg2/coords-equivalent-transform-align-x conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform xMid adds half of (e-width - vb-width * scale-x); xMax adds all of it. n/a donner/svg/core/PreserveAspectRatio.cc:23-27; donner/svg/core/PreserveAspectRatio.h:62-75 PreserveAspectRatio.MinMaxMeet; resvg structure/svg/preserveAspectRatio=xMaxYMax.svg - - -
feat:svg2/coords-equivalent-transform-align-y conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform YMid adds half of (e-height - vb-height * scale-y); YMax adds all of it. n/a donner/svg/core/PreserveAspectRatio.cc:23-27; donner/svg/core/PreserveAspectRatio.h:78-91 PreserveAspectRatio.MinMaxMeet; resvg structure/svg/preserveAspectRatio=xMaxYMax.svg - - -
feat:svg2/coords-equivalent-transform-result conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ComputingAViewportsTransform Result is translate(tx, ty) scale(sx, sy): content is scaled first, then translated. n/a donner/svg/core/PreserveAspectRatio.cc:26-27 (Scale then Translate under the left-first operator) LayoutSystemTest.GetEntityContentTransform, NestedSvgDifferentViewBoxTransformChaining - - -

SVG 2 coords 8.8: establishing viewports

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-nested-svg-viewport-bounds conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#EstablishingANewSVGViewport x, y, width, height of a nested svg define the new viewport; its coordinate systems start at (x, y) with the parent's unit size and orientation. donner/svg/components/layout/LayoutSystem.cc:48-86 donner/svg/components/layout/LayoutSystem.cc:845-870, donner/svg/core/PreserveAspectRatio.cc:9-11, donner/svg/components/layout/LayoutSystem.cc:458-474 LayoutSystemTest.GetEntityContentTransform, NestedSvgContentTransform; resvg structure/svg/nested-svg-with-rect.svg, nested-svg-with-rect-and-percent-values.svg - - -
feat:svg2/coords-nested-svg-auto-size conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#EstablishingANewSVGViewport Omitted (auto) width and height on a nested svg are 100 percent of the parent viewport. n/a donner/svg/components/layout/LayoutSystem.cc:184-212 LayoutSystemTest.NestedSvgOmittedDimensionsUseParentViewportWithViewBox, NestedSvgCssWideDimensionsUseParentViewport - - The explicit auto keyword is not parsed (geometry ledger).
feat:svg2/coords-viewport-established-by-svg conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports The svg element establishes a new SVG viewport. donner/svg/SVGSVGElement.cc:15-17 donner/svg/components/layout/LayoutSystem.cc:150-170 LayoutSystemTest.ViewportNestedSvg; resvg structure/svg/nested-svg-with-viewBox-and-percent-values.svg - - -
feat:svg2/coords-viewport-established-by-symbol-instance conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports A symbol instanced by use establishes a viewport, sized by the use width and height. donner/svg/SVGSymbolElement.cc:29-33 donner/svg/components/layout/LayoutSystem.cc:414-454, :958-1016 LayoutSystemTest.CreateShadowSizedElementComponent, CreateShadowSizedElementComponentForSvgTarget; resvg structure/symbol (category run without overrides) - - Symbol structure belongs to the structure ledger; refX and refY use default font metrics (donner/svg/components/layout/LayoutSystem.cc:442-443).
feat:svg2/coords-pattern-marker-no-viewport divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports pattern and marker (and clipPath, mask) do not create a viewport even with a viewBox: percentages in their content are not relative to them. donner/svg/SVGPatternElement.cc:38, donner/svg/SVGMarkerElement.cc:28 (ViewBoxComponent attached) donner/svg/components/layout/LayoutSystem.cc:150-158 (any element with a viewBox becomes the percentage basis for its descendants) LayoutSystemTest.ViewportPattern, ViewportPatternWithComputedComponents pin the pattern viewBox as getViewBox low S clipPath and mask carry no ViewBoxComponent, so their content correctly uses the ancestor viewport. Percentage lengths inside pattern or marker content are rare.
feat:svg2/coords-foreignobject-containing-block not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports foreignObject establishes a CSS containing block for its children. grep ForeignObject in donner/svg/ElementType.h: 0 matches n/a none - - foreignObject is not an element type; owned by the embedded content ledger.
feat:svg2/coords-image-document-viewport not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ElementsThatEstablishViewports An image creates a document viewport for the referenced document. n/a donner/svg/components/layout/LayoutSystem.cc:488-536 (worldIsCanvas rebasing for sub-documents) resvg structure/image/preserveAspectRatio=*-on-svg.svg (owned elsewhere) - - Cross-reference only: covered by the embedded content ledger.
feat:svg2/coords-viewport-overflow-clip conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#EstablishingANewSVGViewport Whether a new viewport clips is decided by the overflow property of the establishing element. donner/svg/core/UserAgentStylesheet.h:19 donner/svg/renderer/RenderingContext.cc:462-469, donner/svg/components/layout/LayoutSystem.cc:829-843 LayoutSystemTest.ClipRectForNestedSvg; resvg structure/svg/nested-svg-with-overflow-auto.svg, nested-svg-with-overflow-visible.svg - - Clip rectangle is produced by layout and applied by both renderers.
feat:svg2/coords-zero-size-viewport conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute A zero-sized viewport is not rendered. n/a donner/svg/renderer/RenderingContext.cc:447-459 (empty sized-element bounds skip the instance) none found for a nested zero-size svg low S -

SVG 2 coords 8.9: units

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-units-css-values-types partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units Lengths, numbers and percentages follow CSS Values and Units for attributes, presentation attributes and properties. donner/svg/parser/LengthPercentageParser.cc:5-30; donner/base/parser/LengthParser.cc:22-55 donner/base/Length.h:162-209 LengthTest.ToPixelsCoversAbsoluteUnits; resvg shapes/rect/*-values.svg medium M No calc() or other math functions anywhere a length is parsed (grep for calc under donner/css, donner/svg, donner/base finds no evaluator). Owned by the CSS values ledger.
feat:svg2/coords-units-user-units conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units A unitless length in an attribute is in user units; CSS declarations require units except for zero. donner/svg/parser/LengthPercentageParser.cc:18-23; donner/svg/properties/PropertyParsing.cc:51-55 donner/base/Length.h:166 TransformParserCss.TranslateParseErrors ('translate(2)' rejected); resvg shapes/rect/simple-case.svg - - Exception: geometry properties applied from CSS accept unitless values (geometry ledger) and transform-origin does too (see its row).
feat:svg2/coords-unit-px conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1px is one user unit. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:183 LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-unit-in conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1in = 96px. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:180 LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-unit-cm conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1cm = 96px / 2.54. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:177 LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-unit-mm conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1mm = 1cm / 10. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:178 LengthTest.ToPixelsCoversAbsoluteUnits; resvg shapes/rect/mm-values.svg - - -
feat:svg2/coords-unit-q conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1Q = 1cm / 40. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:179 LengthTest.ToPixelsCoversAbsoluteUnits; resvg shapes/rect/q-values.svg - - -
feat:svg2/coords-unit-pt conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1pt = 1in / 72. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:182 LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-unit-pc conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units 1pc = 1in / 6. donner/base/parser/LengthParser.cc:22-39 (case-insensitive suffix table) donner/base/Length.h:181 LengthTest.ToPixelsCoversAbsoluteUnits - - -
feat:svg2/coords-unit-em partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units em is relative to the computed font-size of the element. donner/base/parser/LengthParser.cc:31 donner/svg/components/shape/ShapeSystem.cc:62-104 (shapes: element font-size); donner/svg/components/layout/LayoutSystem.cc:376, :387, :406, :469, :676, :683 (default FontMetrics, 16px) LengthTest.ToPixelsCoversFontRelativeUnits; resvg shapes/rect/em-values.svg medium S Correct for basic shapes and stroke widths; x/y/width/height of svg, image, use and symbol, CSS translate() lengths and transform-origin lengths use a fixed 16px.
feat:svg2/coords-unit-ex partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units ex is the x-height of the element's first available font. donner/base/parser/LengthParser.cc:32 donner/base/RelativeLengthMetrics.h:18 (0.5em); donner/svg/properties/PropertyRegistry.cc:3709 (TODO to measure the font) LengthTest.ToPixelsCoversFontRelativeUnits; resvg shapes/rect/ex-values.svg low S Always half an em, never the font's real x-height; same default-metrics caveat as em.
feat:svg2/coords-unit-ch partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units ch is the advance of the 0 glyph of the element's font. donner/base/parser/LengthParser.cc:33 donner/svg/components/shape/ShapeSystem.cc:93-101 (measured through the text engine when text support is built in); donner/base/RelativeLengthMetrics.h:19-20 (0.5em otherwise) LengthTest.ToPixelsCoversFontRelativeUnits; resvg shapes/rect/ch-values.svg low S Measured for shapes only; sized elements and transforms use 0.5 of 16px.
feat:svg2/coords-unit-rem partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units rem is relative to the root element's font-size. donner/base/parser/LengthParser.cc:34 donner/svg/components/shape/ShapeSystem.cc:75-84 (root font-size for shapes); donner/svg/components/layout/LayoutSystem.cc:376-387 (default 16px elsewhere) LengthTest.ToPixelsCoversFontRelativeUnits; resvg shapes/rect/rem-values.svg low S Same default-metrics caveat as em.
feat:svg2/coords-unit-vw partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units vw is a percentage of the initial viewport (the outermost SVG viewport for a standalone document). donner/base/parser/LengthParser.cc:35-38 donner/base/Length.h:186-205 (caller canvas size when supplied, otherwise the nearest viewBox passed in); donner/svg/components/shape/ShapeSystem.cc:68-72 LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport, ToPixelsCoversViewportUnitsWithExplicitViewport; resvg shapes/rect/vw-and-vh-values.svg low S The basis is the caller canvas override when set, else the nearest viewBox (which may be a nested svg or a viewBox in user units), not the initial viewport. Layout paths never pass a viewport size.
feat:svg2/coords-unit-vh partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units vh is a percentage of the initial viewport (the outermost SVG viewport for a standalone document). donner/base/parser/LengthParser.cc:35-38 donner/base/Length.h:186-205 (caller canvas size when supplied, otherwise the nearest viewBox passed in); donner/svg/components/shape/ShapeSystem.cc:68-72 LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport, ToPixelsCoversViewportUnitsWithExplicitViewport; resvg shapes/rect/vw-and-vh-values.svg low S The basis is the caller canvas override when set, else the nearest viewBox (which may be a nested svg or a viewBox in user units), not the initial viewport. Layout paths never pass a viewport size.
feat:svg2/coords-unit-vmin partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units vmin is a percentage of the initial viewport (the outermost SVG viewport for a standalone document). donner/base/parser/LengthParser.cc:35-38 donner/base/Length.h:186-205 (caller canvas size when supplied, otherwise the nearest viewBox passed in); donner/svg/components/shape/ShapeSystem.cc:68-72 LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport, ToPixelsCoversViewportUnitsWithExplicitViewport; resvg shapes/rect/vmin-and-vmax-values.svg low S The basis is the caller canvas override when set, else the nearest viewBox (which may be a nested svg or a viewBox in user units), not the initial viewport. Layout paths never pass a viewport size.
feat:svg2/coords-unit-vmax partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units vmax is a percentage of the initial viewport (the outermost SVG viewport for a standalone document). donner/base/parser/LengthParser.cc:35-38 donner/base/Length.h:186-205 (caller canvas size when supplied, otherwise the nearest viewBox passed in); donner/svg/components/shape/ShapeSystem.cc:68-72 LengthTest.ToPixelsCoversViewportUnitsWithoutExplicitViewport, ToPixelsCoversViewportUnitsWithExplicitViewport; resvg shapes/rect/vmin-and-vmax-values.svg low S The basis is the caller canvas override when set, else the nearest viewBox (which may be a nested svg or a viewBox in user units), not the initial viewport. Layout paths never pass a viewport size.
feat:svg2/coords-units-percent-x conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units A percentage x coordinate or width is that percentage of the viewBox width of the nearest viewport, or of the viewport width without a viewBox. donner/svg/parser/LengthPercentageParser.cc:16-17 donner/base/Length.h:167-169; donner/svg/components/layout/LayoutSystem.cc:150-181 LengthTest.ToPixelsCoversPercentExtents; resvg shapes/rect/percentage-values-1.svg, structure/svg/nested-svg-with-viewBox-and-percent-values.svg - - -
feat:svg2/coords-units-percent-y conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units A percentage y coordinate or height uses the viewBox (or viewport) height. donner/svg/parser/LengthPercentageParser.cc:16-17 donner/base/Length.h:170-171 LengthTest.ToPixelsCoversPercentExtents; resvg shapes/rect/percentage-values-2.svg - - -
feat:svg2/coords-units-percent-normalized-diagonal conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units_viewport_percentage Any other percentage uses the normalized diagonal sqrt(w^2 + h^2) / sqrt(2). donner/svg/parser/LengthPercentageParser.cc:16-17 donner/base/Length.h:172-173, :268-274 LengthTest.ToPixelsCoversPercentExtents - - -

SVG 2 coords 8.10: bounding boxes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-bbox-definition conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TermBoundingBox The bounding box is the tightest rectangle, aligned with the element's own user coordinate system, enclosing the element and its descendants. n/a donner/svg/components/shape/ShapeSystem.cc:1053-1058 (world bounds mapped by the inverse of the element's world transform), :1236-1249, :810-822 ShapeSystemTest.GetShapeBounds, GetShapeBoundsGroupChildren; Path.TransformedBoundsUsesTightTransformedPathNotTransformedLocalAabb - - Computed in the shared ECS; consumed by both renderers for objectBoundingBox units.
feat:svg2/coords-object-bounding-box conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TermObjectBoundingBox The object bounding box contains only the geometric (fill) shape. n/a donner/svg/components/shape/ShapeSystem.cc:810-822 (path bounds; stroke only when requested) ShapeSystemTest.GetShapeBounds - - -
feat:svg2/coords-stroke-bounding-box conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TermStrokeBoundingBox The stroke bounding box contains the geometry and the stroke shape (caps, joins, miters), computed without dashes. n/a donner/svg/components/shape/ShapeSystem.cc:139-163 (width, cap, join, miter limit; no dash array), :197-236 (stroke outline bounds), :1060-1064 indirect only: CircleClipPath.NonScalingStrokeBoxUsesHostStrokeGeometry. No test calls getStrokeBounds directly (grep of *_tests.cc). low S Exact outline (strokeToFill), not a width inflation. stroke none or zero width contributes nothing, as specified.
feat:svg2/coords-decorated-bounding-box missing https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TermDecoratedBoundingBox The decorated bounding box adds the element's markers. n/a grep for decorated, includeMarkers, markerBounds under donner/svg/components and donner/svg/*.h: no matches none low M Only reachable through getBBox options in a browser; no rendering feature in this CR consumes it.
feat:svg2/coords-bbox-paint-properties-ignored conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes opacity, visibility, fill, fill-opacity, fill-rule, stroke-dasharray and stroke-dashoffset do not affect the bounding box. n/a donner/svg/components/shape/ShapeSystem.cc:770-786 (only display is consulted), :139-163 none low S -
feat:svg2/coords-bbox-curves-exclude-control-points conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes For curves the box encloses the curve itself; off-curve control points do not contribute. n/a donner/base/Path.cc:36 (bounds), :91 (transformedBounds) Path.BoundsCurvePath, BoundsQuadPath, TransformedBoundsCurves - - -
feat:svg2/coords-bbox-nonrendered-element-own-bbox divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes An element outside the rendering tree (display none, inside defs, an uninstanced symbol) still has the same bounding box it would have if rendered. n/a donner/svg/components/shape/ShapeSystem.cc:1240-1243 (display none returns no box) ShapeSystemTest.GetShapeBoundsDisplayNone pins the empty result low S API-level difference only (getBBox analogue); no rendering consequence because such elements are not painted.
feat:svg2/coords-bbox-nonrendered-not-contributing partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes An element that is not rendered does not contribute to the bounding box of any ancestor. n/a donner/svg/components/shape/ShapeSystem.cc:770-786 (the traversal prunes only display none), donner/svg/core/UserAgentStylesheet.h:16-17 (only style and symbol are display none) ShapeSystemTest.GetShapeBoundsGroupChildren covers rendered children only medium S Shapes under defs, clipPath, mask, marker, pattern, or in a non-selected switch branch inside a group still inflate the group's box, which feeds every objectBoundingBox consumer on that group.
feat:svg2/coords-bbox-text-glyph-cells conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TermFullGlyphCell For text, each glyph contributes its full glyph cell (advance by em box for horizontal text), not its ink. n/a donner/svg/text/TextEngine.cc:8657-8667 (em-box bounds for the text root, per-span cell unions), donner/svg/components/shape/ShapeSystem.cc:850-915 none named here; owned by the text ledger low S Cell construction for vertical and sideways text was not read (unverified); cross-reference to the text ledger.
feat:svg2/coords-bbox-zero-extent-elements conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Zero-width or zero-height elements still have a bounding box; zero-length subpaths count. n/a donner/svg/components/shape/ShapeSystem.cc:789-795 (any finite box is accepted, including degenerate ones) none low S -
feat:svg2/coords-bbox-no-geometry-at-origin partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes An element with no position (path with d none) is treated as positioned at (0,0). n/a donner/svg/components/shape/ShapeSystem.cc:810-814 (no computed path, no contribution; the result is an empty optional) ShapeSystemTest.GetShapeBoundsComputesEmptyStylePlaceholder (unverified what it asserts for an empty path) low S Reports no box instead of a 0x0 box at the origin; API-level difference.
feat:svg2/coords-bbox-unresolved-reference divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes An element with an unresolved reference still has a box from its own attributes, for example a use with a broken href is a 0x0 box at its x, y. n/a donner/svg/components/shape/ShapeSystem.cc:830-849 (only image contributes a positioning rectangle; use contributes through its instance subtree only) none low S By code reading. Makes a group's box ignore a broken use instead of extending to its x, y.
feat:svg2/coords-bbox-alg-shape-fill conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Shape step: when fill is requested the box is the tightest rectangle of the equivalent path in the target space. n/a donner/svg/components/shape/ShapeSystem.cc:810-822; donner/base/Path.cc:91 ShapeSystemTest.GetShapeBounds; Path.TransformedBoundsUsesTightTransformedPathNotTransformedLocalAabb - - -
feat:svg2/coords-bbox-alg-shape-stroke conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Shape step: when stroke is requested and stroke is not none, union with the box of the stroke shape assuming no dash pattern. n/a donner/svg/components/shape/ShapeSystem.cc:822-828, :197-236 indirect: CircleClipPath.NonScalingStrokeBoxUsesHostStrokeGeometry low S -
feat:svg2/coords-bbox-alg-shape-markers missing https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Shape step: when markers are requested, union the boxes of the rendered marker content. n/a no marker branch in donner/svg/components/shape/ShapeSystem.cc:770-786 none low M See the decorated bounding box row.
feat:svg2/coords-bbox-alg-clipped not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes When clipped is requested, intersect with clip-path, overflow and clip. n/a no clipped variant in donner/svg/components/shape/ShapeSystem.cc:1236-1249 none - - Object, stroke and decorated boxes are all defined with clipped false; the flag exists only for getBBox options (script).
feat:svg2/coords-bbox-alg-container partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ContainerElementBoudingBoxComputation Container step: union of the boxes of each rendered descendant graphics element, computed in the same target space. n/a donner/svg/components/shape/ShapeSystem.cc:1236-1249, :770-786 ShapeSystemTest.GetShapeBoundsGroupChildren medium S Each leaf is mapped directly into the target space (tight). The rendered test is only display none; see the non-contributing row.
feat:svg2/coords-bbox-alg-use conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ContainerElementBoudingBoxComputation use step: as a container, over the root of its shadow tree. n/a donner/svg/components/shape/ShapeSystem.cc:798-808 (instance entities resolve to their prepared path) none found that asserts the box of a use low S -
feat:svg2/coords-bbox-alg-image-foreignobject conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes image and foreignObject step: the positioning rectangle x, y, width, height; fill, stroke and markers flags do not matter. n/a donner/svg/components/shape/ShapeSystem.cc:830-849 (image only) none low S foreignObject is unsupported (other ledger).
feat:svg2/coords-bbox-alg-nested-svg conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ContainerElementBoudingBoxComputation A nested svg is a container: union of rendered descendants; its overflow clip is not applied when clipped is false. n/a donner/svg/components/shape/ShapeSystem.cc:1236-1249 (generic traversal, no viewport clip) none low S -
feat:svg2/coords-bbox-effects-do-not-change-bbox conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes clip-path, mask and filter applied to an element do not change its object bounding box. n/a donner/svg/components/shape/ShapeSystem.cc:770-786 (no clip, mask or filter lookup) none low S -
feat:svg2/coords-bbox-reflects-current-values conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes The box reflects the element's current (possibly animated) values at the time it is requested. n/a donner/svg/components/shape/ShapeSystem.cc:1236-1249 (computed on demand from current computed components) none low S -
feat:svg2/coords-bbox-non-graphics-elements not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Elements that are not graphics elements (for example gradients) have no bounding box interface. n/a n/a none - - DOM interface rule; no script.

SVG 2 coords 8.11: object bounding box units

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-obb-supplemental-transform conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits objectBoundingBox inserts the transform [w 0 0 h minx miny] mapping the unit square onto the applicable element's object bounding box. n/a donner/svg/renderer/RendererTinySkia.cc:783-791; donner/svg/renderer/RendererGeode.cc:617-622 resvg paint-servers/linearGradient/gradientUnits=objectBoundingBox-with-percent.svg; resvg structure/transform-origin/on-gradient-object-bounding-box.svg - - Read for gradients in both renderers; other consumers are cross-referenced below.
feat:svg2/coords-obb-percent-equals-fraction conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits With objectBoundingBox, a percentage in the vector, tile or region attributes equals the corresponding fraction. n/a donner/svg/renderer/RendererTinySkia.cc:726-735, :768-769 resvg paint-servers/linearGradient/gradientUnits=objectBoundingBox-with-percent.svg - - -
feat:svg2/coords-obb-content-percentages not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Percentages inside pattern, clipPath, mask or filter content follow the ordinary viewport percentage rules. n/a donner/svg/components/layout/LayoutSystem.cc:150-181 none - - Cross-reference: see feat:svg2/coords-pattern-marker-no-viewport for the one divergence found.
feat:svg2/coords-obb-values-outside-unit-range conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Fractions below 0 or above 1 and percentages outside 0 to 100 are allowed. donner/svg/parser/LengthPercentageParser.cc:5-30 (no range check) donner/svg/renderer/RendererTinySkia.cc:726-735 none named low S -
feat:svg2/coords-obb-zero-size-bbox conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits When the applicable element's geometry has zero width or height, an objectBoundingBox effect is ignored. n/a donner/svg/renderer/RendererTinySkia.cc:777-781 (gradient shader not created) none named for gradients low S Verified for gradients only. Clip paths may still scale by a degenerate box; that consumer belongs to the masking ledger and was not read here.
feat:svg2/coords-context-linearGradient-gradientUnits conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the gradient vector x1, y1, x2, y2 selected by the units attribute. n/a donner/svg/renderer/RendererTinySkia.cc:766-795; donner/svg/renderer/RendererGeode.cc:608-626 resvg paint-servers/linearGradient/gradientUnits=userSpaceOnUse-with-percent.svg, gradientUnits=objectBoundingBox-with-percent.svg - - Cross-reference; details owned by the paint server ledger.
feat:svg2/coords-context-radialGradient-gradientUnits conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the center, radius and focal point selected by the units attribute. n/a donner/svg/renderer/RendererTinySkia.cc:766-795; donner/svg/renderer/RendererGeode.cc:608-626 resvg paint-servers/linearGradient/gradientUnits=userSpaceOnUse-with-percent.svg, gradientUnits=objectBoundingBox-with-percent.svg - - Cross-reference; details owned by the paint server ledger.
feat:svg2/coords-context-pattern-patternUnits conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the pattern tile x, y, width, height selected by the units attribute. n/a donner/svg/renderer/RendererDriver.cc:766-799 SVGPatternElementTests.PatternTransformWithPatternUnitsRendering; resvg structure/transform-origin/on-pattern-object-bounding-box.svg - - Cross-reference; details owned by the paint server ledger.
feat:svg2/coords-context-pattern-patternContentUnits conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the pattern content coordinate system selected by the units attribute. n/a donner/svg/renderer/RendererDriver.cc:766-799 SVGPatternElementTests.PatternTransformWithPatternUnitsRendering; resvg structure/transform-origin/on-pattern-object-bounding-box.svg - - Cross-reference; details owned by the paint server ledger.
feat:svg2/coords-context-clipPath-clipPathUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the clipPath content coordinate system selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.
feat:svg2/coords-context-mask-maskUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the mask region selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.
feat:svg2/coords-context-mask-maskContentUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the mask content coordinate system selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.
feat:svg2/coords-context-filter-filterUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the filter region selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.
feat:svg2/coords-context-filter-primitiveUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the filter primitive lengths selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.
feat:svg2/coords-context-marker-markerUnits not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ObjectBoundingBoxUnits Coordinate system of the marker viewport and content scale selected by the units attribute. n/a not read in this ledger owned by the masking, filter or painting ledger - - Cross-reference only: covered by the owning ledger.

SVG 2 coords 8.13: vector effects

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:vector-effect partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty none | non-scaling-stroke | non-scaling-size | non-rotation | fixed-position; initial none; applies to graphics elements and use; not inherited; discrete animation; presentation attribute and CSS property. donner/svg/properties/PropertyRegistry.cc:1981-2005 (all five keywords, single value), :2497, :3113-3121 donner/svg/core/NonScalingStroke.cc:15-70; donner/svg/renderer/RendererDriver.cc:934-947; donner/svg/components/shape/ShapeSystem.cc:206-236 PropertyRegistry.VectorEffectParsing, IsPresentationAttributeInherited; RendererRegressionTests.VectorEffectNonScalingStrokeIsConstantWidth low M Three of five values are parse-only. The CR property index lists only 'non-scaling-stroke | none' while the definition lists five and flags three at risk.
val:vector-effect/none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty No vector effect. donner/svg/properties/PropertyRegistry.cc:1987-1988 donner/svg/core/NonScalingStroke.cc (scaling mode without the effect) NonScalingStroke.ModeIsScalingWithoutTheVectorEffect; PropertyRegistry.VectorEffectParsing - - -
val:vector-effect/non-scaling-stroke conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty Stroke width is constant in the host coordinate space regardless of the CTM. donner/svg/properties/PropertyRegistry.cc:1989-1990 donner/svg/renderer/RendererDriver.cc:297-340, :934-947 (shared driver, so both renderers) RendererRegressionTests.NonScalingStrokeIsExactUnderAnisotropicScale, NonScalingStrokeIsExactUnderNonUniformViewBox, NonScalingStrokeDashLengthIsExactUnderAnisotropicScale - - Stroke semantics are defined in the painting chapter. Text and pattern-painted strokes use an approximation under anisotropic transforms (donner/svg/core/VectorEffect.h:22-33).
val:vector-effect/non-scaling-size partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty non-scaling-size: constrained transformation of the element's user coordinate system (at risk in this CR). donner/svg/properties/PropertyRegistry.cc:1991-1997 donner/svg/core/VectorEffect.h:34-36 (documented as treated like none); no consumer PropertyRegistry.VectorEffectParsing (parse only) low M Parse half exists; no rendering effect.
val:vector-effect/non-rotation partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty non-rotation: constrained transformation of the element's user coordinate system (at risk in this CR). donner/svg/properties/PropertyRegistry.cc:1991-1997 donner/svg/core/VectorEffect.h:34-36 (documented as treated like none); no consumer PropertyRegistry.VectorEffectParsing (parse only) low M Parse half exists; no rendering effect.
val:vector-effect/fixed-position partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty fixed-position: constrained transformation of the element's user coordinate system (at risk in this CR). donner/svg/properties/PropertyRegistry.cc:1991-1997 donner/svg/core/VectorEffect.h:34-36 (documented as treated like none); no consumer PropertyRegistry.VectorEffectParsing (parse only) low M Parse half exists; no rendering effect.
feat:svg2/coords-vector-effect-combinations spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectsCalculation The prose says the values can be combined and gives seven combined formulas, while the value grammar is a single keyword. donner/svg/properties/PropertyRegistry.cc:1982 (exactly one component accepted) n/a none low - Donner follows the single-keyword grammar.
feat:svg2/coords-vector-effect-host-space conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectProperty The host coordinate space is the viewport coordinate system of the furthest ancestral SVG viewport. n/a donner/svg/core/NonScalingStroke.cc:55-70; donner/svg/renderer/RendererDriver.cc:297-340 (canvas space, which includes the root viewBox mapping) RendererRegressionTests.NonScalingStrokeIsExactUnderNonUniformViewBox - - The comment at donner/svg/core/VectorEffect.h:30-33 says SVG 2 uses the nearest viewport; that is stale for this CR, the implementation matches the CR.
feat:svg2/coords-vector-effect-nested-viewport-keywords spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#NestedVectorEffectsCalculation Section 8.13.2 refers to additional viewport and screen values that the property grammar does not define. donner/svg/properties/PropertyRegistry.cc:1981-2005 (not accepted) n/a none low - -
feat:svg2/coords-vector-effect-3d-context not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#VectorEffectsCalculation vector-effect has no effect on transformations in a 3D rendering context. n/a n/a none - - No 3D rendering contexts (2D subset).

SVG 2 coords 8.5 and css-transforms-1 sections 3, 4, 10: the transform property

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-transform-property-support partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#TransformProperty User agents must support the transform property and presentation attribute as defined in css-transforms-1. donner/svg/properties/PropertyRegistry.cc:3594-3611; donner/svg/components/layout/LayoutSystem.cc:762-787 donner/svg/components/layout/LayoutSystem.cc:381-396, :488-557 resvg structure/transform (19 cases, no overrides), structure/style/transform.svg, structure/style-attribute/transform.svg high M Attribute path conforms. Gaps are itemized below: reference box and pivot origin, transform:none, CSS function order, transform-box, root svg order.
prop:transform partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform none | <transform-list>; initial none; applies to transformable elements; not inherited; percentages refer to the reference box; computed as specified with absolute lengths; animatable as a transform list. attribute: donner/svg/parser/TransformParser.cc:13-157 via donner/svg/properties/PropertyRegistry.cc:3594-3611; CSS: donner/svg/parser/CssTransformParser.cc:158-246 via donner/svg/components/layout/LayoutSystem.cc:762-787 donner/svg/components/layout/LayoutSystem.cc:789-826 (computed local transform), :381-396 (pivot), :559-574 TransformParser.* and TransformParserCss.* unit suites; resvg structure/transform/*.svg; structure/style/transform.svg high M Initial none and not-inherited hold (donner/svg/properties/PropertyRegistry.cc:3642-3645). Works as presentation attribute and as CSS declaration (stylesheet and style attribute). Non-conformant parts: val:transform/none, function order in CSS, reference box rows.
val:transform/none divergent https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform none is a valid value: no transform, and as a CSS declaration it overrides a transform presentation attribute. donner/svg/parser/CssTransformParser.cc:170-246 (only function tokens accepted; the ident hits 'Expected a function' at :238-243); donner/svg/parser/TransformParser.cc:160-188 (attribute: 'none' is an error too) donner/svg/components/layout/LayoutSystem.cc:771-786 (the failed declaration is dropped and the attribute value stays) none (grep for transform:none and transform: none in tests finds only text-transform) medium S In the attribute the failure is harmless (an invalid attribute behaves as none). In CSS, 'transform: none' cannot cancel an attribute or a lower-priority rule.
val:transform/transform-list partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#typedef-transform-list One or more transform functions (whitespace separated in CSS). donner/svg/parser/CssTransformParser.cc:158-168 donner/svg/core/CssTransform.h:69-84 TransformParserCss.MultiplicationOrder, ParseErrors; TransformParserCss.Empty pins an empty list as identity low S An empty CSS value parses as identity although the grammar needs at least one function. Commas between CSS functions are correctly rejected.
feat:css-transforms-1/transform-function-list-order divergent https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-function-lists A list of functions is equivalent to nesting them in order: the resulting matrix is the left-to-right product, so the last function is applied to the geometry first. attribute: donner/svg/parser/TransformParser.cc:41-132 (each function is applied before the accumulated ones: correct). CSS: donner/svg/core/CssTransform.h:92-101 (appendTransform merges consecutive non-translate functions as earlier-then-later) donner/svg/core/CssTransform.h:69-84 (compute is correct across separate list entries, so the error is confined to runs of adjacent matrix, scale, rotate, skew functions) attribute: TransformParser.MultiplicationOrder, resvg structure/transform/transform-list.svg. CSS: TransformParserCss.CompositeCaseSensitivity pins skew(45deg) skewX(45deg) skewY(45deg) to matrix(1,1,2,3,0,0); the left-to-right product is matrix(3,1,2,1,0,0). TransformParserCss.MultiplicationOrder only uses uniform scale with rotation, which commute. high S Example: style="transform: rotate(90deg) scale(2,1)" rotates first and then scales, the reverse of the specification. translate() entries are stored separately, so lists that alternate translate with one other function are right. Renderer independent (layout).
feat:css-transforms-1/transformation-matrix-computation conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transformation-matrix-computation Matrix = translate(origin) times the functions left to right times translate(-origin). n/a donner/svg/components/layout/LayoutSystem.cc:381-396 LayoutSystemTest.TransformOriginSupport, TransformOriginPixels; resvg structure/transform-origin/on-shape.svg - - The formula is right; the origin value fed into it is wrong in the cases listed under the reference box rows.
feat:css-transforms-1/ctm-accumulation conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#current-transformation-matrix-computation The CTM is the product of the transformation matrices of the element and its ancestors up to the viewport. n/a donner/svg/components/layout/LayoutSystem.cc:488-557; donner/svg/renderer/RenderingContext.cc:474-480 LayoutSystemTest.DeeplyNestedTransforms, GetEntityFromWorldTransform; SVGElementTests.AbsoluteTransform; resvg structure/transform/nested-transforms-1.svg, nested-transforms-2.svg - - One cached world transform per entity, read by both renderers.
feat:css-transforms-1/transformable-elements conformant-untested https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transformable-element In SVG, transform applies to paint server elements, clipPath and renderable elements, but not to descendants of text content elements. donner/svg/SVGElement.cc:1110 (every element carries a transform component) donner/svg/components/layout/LayoutSystem.cc:559-574; donner/svg/SVGMaskElement.cc:23-24, donner/svg/SVGSymbolElement.cc:29 (self transform disabled for mask and symbol) resvg text/tspan/transform.svg is in the run set (tspan transform must be ignored); not read here low S Whether symbol counts as transformable was not checked against the structure chapter (unverified); Donner ignores transform on symbol.
feat:css-transforms-1/presentation-attribute-cascade conformant-untested https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-attribute-specificity transform, gradientTransform, patternTransform and transform-origin are presentation attributes; a transform style declaration overrides the attribute. donner/svg/properties/PropertyParsing.cc:51-55 (presentation attribute specificity) donner/svg/properties/PropertyParsing.h:101-104 (lower specificity never overwrites); donner/svg/components/layout/LayoutSystem.cc:762-787 none that sets both an attribute and a CSS transform on one element (grep); CSS-only: resvg structure/style/transform.svg low S -
feat:css-transforms-1/non-invertible-matrix-not-rendered conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-function-lists If a transform makes the CTM non-invertible, the element and its content are not displayed (also while animating through a singular state). n/a no explicit determinant test in the paint path; geometry collapses to zero area under the singular matrix (donner/svg/renderer/RenderingContext.cc:474-480 passes the matrix through); donner/svg/core/NonScalingStroke.cc:57-63 keeps non-finite matrices out of host-space stroking resvg structure/transform/zeroed-matrix.svg (run, no override, in every active renderer mode) - - A singular but non-zero matrix combined with non-scaling-stroke was not traced (unverified): the stroke is produced in host space there.
feat:css-transforms-1/mathematical-description conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#mathematical-description Matrices for matrix, translate, scale, rotate, skew, skewX, skewY (section 14). n/a donner/base/Transform.h:91-185; donner/svg/parser/CssTransformParser.cc:18-26 (skew) Transform.Rotate, Scale, Translate, SkewX, SkewY; TransformParserCss.Skew - - -
feat:css-transforms-1/css-box-model-effects not-applicable https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-rendering Stacking context, containing block, overflow area and fixed background rules for CSS boxes. n/a n/a none - - No CSS box layout in an SVG-only renderer.
feat:css-transforms-1/serialization not-applicable https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#serialization-of-transform-functions Serialization of transform functions and of the computed value (CSSOM). n/a donner/base/Transform.cc:12-60 (own writer for attribute write-back, not CSSOM) Transform.ToSVGTransformString* - - No CSSOM; script-less.

css-transforms-1 section 7: the SVG transform attribute grammar

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-transforms-1/svg-wsp conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-wsp wsp is LF, CR, TAB or SPACE. donner/base/parser/details/ParserBase.cc:36-49 n/a TransformParser.Empty (' \t\r
')
- - Form feed is not whitespace, matching the production (the railroad diagram shows \f, a spec inconsistency).
feat:css-transforms-1/svg-comma-wsp conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-comma-wsp comma-wsp is whitespace with at most one comma, or a comma followed by whitespace. donner/base/parser/details/ParserBase.cc:21-34 n/a TransformParser.Translate (' 5 \r,
3 '), Translate_ParseErrors
- - -
feat:css-transforms-1/svg-number conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-syntax Arguments are CSS number tokens: no units, no percentages. donner/base/parser/NumberParser.cc:195-260; donner/svg/parser/TransformParser.cc:43-132 n/a TransformParser.Translate ('translate(-1-2)'), Matrix ('matrix(-1-2-3-4-5-6)') - - A unit suffix leaves text before ')' and fails the attribute. Numbers may abut without a separator, as the grammar's optional comma-wsp allows.
feat:css-transforms-1/svg-translate-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-translate translate ( number [comma-wsp? number]? ): second value defaults to 0. donner/svg/parser/TransformParser.cc:43-64 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.Translate, Translate_ParseErrors; resvg structure/transform/translate.svg, translate-without-Y.svg - - -
feat:css-transforms-1/svg-scale-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-scale scale ( number [comma-wsp? number]? ): second value defaults to the first. donner/svg/parser/TransformParser.cc:66-86 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.Scale, Scale_ParseErrors; resvg structure/transform/scale.svg, scale-without-Y.svg - - -
feat:css-transforms-1/svg-rotate-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-rotate rotate ( number [comma-wsp? number comma-wsp? number]? ): one or three values, never two. donner/svg/parser/TransformParser.cc:88-114 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.Rotate_OneParameter, Rotate_WithCenter, Rotate_ParseErrors; resvg structure/transform/rotate.svg, rotate-at-position.svg - - -
feat:css-transforms-1/svg-skewX-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-skewX skewX ( number ). donner/svg/parser/TransformParser.cc:116-123 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.SkewX, SkewX_ParseErrors; resvg structure/transform/skewX.svg - - The published production for skewX literally spells the keyword "skewY" (spec typo); Donner uses skewX.
feat:css-transforms-1/svg-skewY-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-skewY skewY ( number ). donner/svg/parser/TransformParser.cc:125-132 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.SkewY, SkewY_ParseErrors; resvg structure/transform/skewY.svg - - -
feat:css-transforms-1/svg-matrix-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-matrix matrix ( six numbers with optional comma-wsp ). donner/svg/parser/TransformParser.cc:35-41 donner/svg/parser/TransformParser.cc:41-132 (composition) TransformParser.Matrix, Matrix_ParseErrors; resvg structure/transform/matrix.svg, matrix-no-commas.svg - - -
feat:css-transforms-1/svg-function-name-syntax conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-transform-function Function names are the literal keywords, with optional whitespace before the opening parenthesis and inside it. donner/svg/parser/TransformParser.cc:160-188 (case-sensitive compare, whitespace before '(' allowed) n/a TransformParser.Matrix (' matrix ( \t 7 8 9 ...'), ParseErrors; resvg structure/transform/extra-spaces.svg - - Case-sensitive in the attribute, case-insensitive in CSS.
feat:css-transforms-1/svg-transforms-separator spec-ambiguity https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-transforms The transforms production requires comma-wsp between consecutive functions (taken literally, 'rotate(1)scale(2)' is not in the language). donner/svg/parser/TransformParser.cc:19-22, :144-147 (zero or one comma with any whitespace between functions) n/a TransformParser.ParseErrors ('scale(1),,scale(1)' and ',scale(1)' rejected), MultiplicationOrder (comma and whitespace separators) low - Donner accepts adjacent functions with no separator, as browsers do. By code reading a trailing comma is an error (after the comma the parser demands another function at donner/svg/parser/TransformParser.cc:160-188); no test pins it.
feat:css-transforms-1/svg-transform-list-production conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-transform-list transform-list is optional whitespace, optional transforms, optional whitespace; the empty string is valid. donner/svg/parser/TransformParser.cc:13-22 n/a TransformParser.Empty; resvg structure/transform/empty.svg, numeric-character-references.svg - - -
feat:css-transforms-1/svg-attribute-css-only-functions conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-syntax translateX, translateY, scaleX, scaleY and skew are not available in the attributes. donner/svg/parser/TransformParser.cc:134-139 (any other name is an error) n/a TransformParser.ParseErrors ('invalid(' is rejected; no case names translateX specifically) - - -
feat:css-transforms-1/svg-function-mapping conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-transform-functions Attribute numbers map to px lengths (translate) and deg angles (rotate, skewX, skewY). donner/svg/parser/TransformParser.cc:98-99, :123, :132 donner/base/Transform.h:91-185 TransformParser.Rotate_OneParameter ('rotate(90)'), SkewX - - -
val:transform/rotate-three-argument-attribute-form conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-transform-functions rotate(a, cx, cy) in the attribute equals translate(cx, cy) rotate(a) translate(-cx, -cy); it has no CSS counterpart. donner/svg/parser/TransformParser.cc:101-114 n/a TransformParser.Rotate_WithCenter; resvg structure/transform/rotate-at-position.svg; CSS rejection: TransformParserCss.RotateParseErrors - - -
feat:svg2/coords-transform-attribute-css-syntax spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#presentation-attribute-css-value SVG 2 parses presentation attributes with the property grammar plus unitless numbers, which would make rotate(45deg) or translateX(10px) valid in the attribute; css-transforms-1 gives the attribute its own number-only grammar. donner/svg/parser/TransformParser.cc:13-157 (number-only grammar) n/a TransformParser.* pin the number-only grammar low - Units in the attribute make it invalid in Donner.
feat:css-transforms-1/transform-attribute-error-handling conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#syntax An attribute that fails to parse behaves as the initial value (none); no partial prefix is applied. donner/svg/parser/TransformParser.cc:26-29, :134-153 (first error aborts) donner/svg/properties/PropertyParsing.h:113-119 (property left untouched); donner/svg/properties/PropertyRegistry.cc:3594-3611 parser errors are tested (TransformParser.*_ParseErrors); the rendering fallback is by code reading low S -
feat:css-transforms-1/transform-property-error-handling conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#TermInvalidValue A CSS declaration with an invalid value is ignored, so the next value in the cascade (for example the attribute) applies. donner/svg/parser/CssTransformParser.cc:232-243 donner/svg/components/layout/LayoutSystem.cc:771-786 (error goes to the warning sink, stored value unchanged) none end to end low S This is the mechanism that makes unsupported 3D functions fall back.
feat:css-transforms-1/gradientTransform-mapping conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-attribute-specificity gradientTransform is a presentation attribute for the transform property on linearGradient and radialGradient. donner/svg/SVGElement.cc:639-647 donner/svg/renderer/RendererTinySkia.cc:737-754, :783-795; donner/svg/renderer/RendererGeode.cc:551-566, :608-626 SVGElementTests.PresentationProbeGradientTransformRetainsAuthoredName; SVGLinearGradientElementTests.RenderingTransform; resvg structure/transform-origin/on-gradient-user-space-on-use.svg - - Consumed in both renderers. Gradient semantics are owned by the paint server ledger.
feat:css-transforms-1/patternTransform-mapping conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-attribute-specificity patternTransform is a presentation attribute for the transform property on pattern. donner/svg/SVGElement.cc:639-647 donner/svg/renderer/RendererDriver.cc:776-799 (shared driver) SVGElementTests.PresentationProbePatternTransformRetainsAuthoredName; SVGPatternElementTests.PatternTransformRendering; resvg paint-servers/pattern/transform-and-patternTransform.svg (golden override) - - -
feat:css-transforms-1/user-coordinate-space conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-user-coordinate-space On pattern, gradients and clipPath the transform is an additional transform in that element's coordinate system; elsewhere it acts in the parent's user space. n/a donner/svg/renderer/RendererTinySkia.cc:783-795; donner/svg/renderer/RendererDriver.cc:776-799; donner/svg/components/layout/LayoutSystem.cc:559-574 resvg structure/transform-origin/on-clippath.svg, on-pattern-user-space-on-use.svg, on-gradient-user-space-on-use.svg - - clipPath path not read here (masking ledger).
feat:css-transforms-1/svg-dom-transform-list not-applicable https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-attribute-dom SVGAnimatedTransformList baseVal and animVal reflect the attribute and computed style. n/a n/a none - - SVG DOM, script only.

css-transforms-1 section 9: 2D transform functions (CSS syntax)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
val:transform/matrix() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-matrix matrix(a, b, c, d, e, f): six comma-separated numbers. donner/svg/parser/CssTransformParser.cc:300-316, :84-106 donner/svg/core/CssTransform.h:92-101 TransformParserCss.Matrix, MatrixParseErrors, MatrixCaseInsensitive - - -
val:transform/translate() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-translate translate(tx [, ty]?) with length-percentage arguments; ty defaults to 0. donner/svg/parser/CssTransformParser.cc:318-358 donner/svg/core/CssTransform.h:69-84 (resolved at layout time) TransformParserCss.Translate, TranslateUnits, TranslateParseErrors; resvg structure/style/transform.svg covers the CSS path - - Unitless non-zero values are rejected, zero is accepted. Percent and font-relative resolution is in feat:css-transforms-1/percentages-reference-box and feat:svg2/coords-unit-em. No calc().
val:transform/translateX() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-translatex translateX(length-percentage). donner/svg/parser/CssTransformParser.cc:179-185, :265-280 donner/svg/core/CssTransform.h:69-84 TransformParserCss.TranslateX, TranslateXParseErrors - - -
val:transform/translateY() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-translatey translateY(length-percentage). donner/svg/parser/CssTransformParser.cc:186-192 donner/svg/core/CssTransform.h:69-84 TransformParserCss.TranslateY, TranslateYParseErrors - - -
val:transform/scale() partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-scale scale() takes numbers (Level 1); Level 2 also allows percentages, equal to the number divided by 100. donner/svg/parser/CssTransformParser.cc:360-400 (number tokens only, donner/svg/parser/CssTransformParser.cc:65-82) donner/svg/core/CssTransform.h:92-101 TransformParserCss.Scale, ScaleParseErrors low S Level 1 grammar conforms. The Level 2 percentage form is rejected, which invalidates the whole declaration.
val:transform/scaleX() partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-scalex scaleX() takes numbers (Level 1); Level 2 also allows percentages, equal to the number divided by 100. donner/svg/parser/CssTransformParser.cc:195-201 (number tokens only, donner/svg/parser/CssTransformParser.cc:65-82) donner/svg/core/CssTransform.h:92-101 TransformParserCss.ScaleX, ScaleXParseErrors low S Level 1 grammar conforms. The Level 2 percentage form is rejected, which invalidates the whole declaration.
val:transform/scaleY() partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-scaley scaleY() takes numbers (Level 1); Level 2 also allows percentages, equal to the number divided by 100. donner/svg/parser/CssTransformParser.cc:202-208 (number tokens only, donner/svg/parser/CssTransformParser.cc:65-82) donner/svg/core/CssTransform.h:92-101 TransformParserCss.ScaleY, ScaleYParseErrors low S Level 1 grammar conforms. The Level 2 percentage form is rejected, which invalidates the whole declaration.
val:transform/rotate() partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-rotate rotate(angle | zero) about the transform origin. donner/svg/parser/CssTransformParser.cc:209-215; donner/svg/parser/AngleParser.cc:5-27 donner/base/Transform.h:91-102 TransformParserCss.Rotate, RotateUnits, RotateParseErrors low S Angles conform. The unitless zero is matched on the literal text '0' only (donner/svg/parser/AngleParser.cc:24), so 0.0, -0 or +0 without a unit are rejected.
val:transform/skew() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-skew skew(ax [, ay]?) with angle or zero; ay defaults to 0; not the product of skewX and skewY. donner/svg/parser/CssTransformParser.cc:402-442, :18-26 donner/svg/core/CssTransform.h:92-101 TransformParserCss.Skew, SkewParseErrors - - Same unitless-zero caveat as rotate().
val:transform/skewX() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-skewx skewX(angle | zero). donner/svg/parser/CssTransformParser.cc:218-224 donner/base/Transform.h:164-169 TransformParserCss.SkewX, SkewXParseErrors - - -
val:transform/skewY() conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#funcdef-transform-skewy skewY(angle | zero). donner/svg/parser/CssTransformParser.cc:225-231 donner/base/Transform.h:179-184 TransformParserCss.SkewY, SkewYParseErrors - - -
feat:css-transforms-1/angle-units conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-functions Angles accept deg, grad, rad and turn. donner/svg/parser/AngleParser.cc:7-14 (case-insensitive) n/a TransformParserCss.RotateUnits - - -
feat:css-transforms-1/css-function-syntax conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-functions CSS functions: case-insensitive names, no space before the parenthesis, comma-separated arguments. donner/svg/parser/CssTransformParser.cc:170-246, :84-106 n/a TransformParserCss.*CaseInsensitive, TranslateParseErrors ('translate(2px 4px)' and ' translate ( 3px )' rejected) - - -
feat:css-transforms-1/percentages-reference-box partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-functions Percentages in translations refer to the width and height of the reference box. donner/svg/parser/CssTransformParser.cc:108-123 donner/svg/components/layout/LayoutSystem.cc:794-819 (view-box size for ordinary elements; the element's own x/y/width/height box for svg, use, symbol instances) TransformParserCss.TranslateUnits (isolated); no layout test with a percentage translate low S For ordinary elements the basis is the nearest viewBox or viewport size, which matches view-box. For sized elements it is their own box.

css-transforms-1 section 5: transform-origin

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:transform-origin partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin One to three values (keywords, length-percentage, optional z length); initial 50% 50%; applies to transformable elements; not inherited; percentages refer to the reference box; presentation attribute and CSS property. donner/svg/properties/PropertyRegistry.cc:1248-1340, :2439, :3003-3010; donner/svg/properties/PropertyRegistry.h:199-203 (initial 50% 50%) donner/svg/components/layout/LayoutSystem.cc:790-815 LayoutSystemTest.TransformOrigin* (7 tests); resvg structure/transform-origin (23 cases at default settings; on-text and on-text-path compare against resvg v0.49.0 references) high S Keyword and length parsing is good; the three-value form, some two-keyword orders and CSS unit strictness diverge, and the computed origin is offset wrongly (reference box rows).
val:transform-origin/left conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-origin-left left is 0% horizontally. donner/svg/properties/PropertyRegistry.cc:1251-1270 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/left.svg; LayoutSystemTest.TransformOriginLeftTop - - -
val:transform-origin/right conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-origin-right right is 100% horizontally. donner/svg/properties/PropertyRegistry.cc:1251-1270 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/right.svg; LayoutSystemTest.TransformOriginRightBottom - - -
val:transform-origin/top conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-origin-top top is 0% vertically. donner/svg/properties/PropertyRegistry.cc:1251-1270 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/top.svg; LayoutSystemTest.TransformOriginLeftTop - - -
val:transform-origin/bottom conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-origin-bottom bottom is 100% vertically. donner/svg/properties/PropertyRegistry.cc:1251-1270 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/bottom.svg; LayoutSystemTest.TransformOriginRightBottom - - -
val:transform-origin/center conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-origin-center center is 50% on the axis it applies to. donner/svg/properties/PropertyRegistry.cc:1251-1270 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/center.svg; LayoutSystemTest.TransformOriginCenterKeyword - - -
val:transform-origin/length-percentage conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin A length or percentage is an offset from the top-left corner of the reference box. donner/svg/properties/PropertyRegistry.cc:1272 donner/svg/components/layout/LayoutSystem.cc:807-815 LayoutSystemTest.TransformOriginPixels, TransformOriginQuarterThreeQuarter; resvg structure/transform-origin/length-px.svg, length-percent.svg - - Unitless numbers are accepted in CSS declarations as well as in the attribute (donner/svg/properties/PropertyRegistry.cc:1272 always allows user units); CSS requires units.
val:transform-origin/one-value-form conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin With one value the other axis is center. donner/svg/properties/PropertyRegistry.cc:1299-1308 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/left.svg, top.svg, center.svg - - -
val:transform-origin/two-value-form partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin Two values: horizontal then vertical, or two keywords in either order. donner/svg/properties/PropertyRegistry.cc:1274-1328 donner/svg/components/layout/LayoutSystem.cc:807-815 resvg structure/transform-origin/top-left.svg, right-bottom.svg, keyword-length.svg; LayoutSystemTest.TransformOriginCenterKeyword low S By code reading: 'center left' and 'center right' (center first, horizontal keyword second) are rejected although valid, and 'top 10px' or 'bottom 10' (vertical keyword followed by a length) are accepted although the grammar has no such form.
val:transform-origin/three-value-form divergent https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin An optional third length gives the z offset. donner/svg/properties/PropertyRegistry.cc:1329-1337 (a third component is an error) n/a none low S The whole declaration is dropped. A 2D renderer can parse and ignore z.
feat:css-transforms-1/transform-origin-svg-initial conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin SVG elements without a CSS layout box use 0 0 as if set by the UA style sheet; the outermost svg keeps 50% 50%. donner/svg/core/UserAgentStylesheet.h:21-24 donner/svg/components/layout/LayoutSystem.cc:792 ElementStyle_tests.cc:21 (UA rule visible in the computed style dump); LayoutSystemTest.TransformOriginSupport (rect b) - - -
feat:css-transforms-1/view-box-reference-box-origin divergent https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-view-box With transform-box view-box (the initial value) the reference box sits at the origin of the user coordinate system established by the viewBox and has the viewBox width and height; a transform-origin of 0 0 therefore pivots at the user-space origin. n/a donner/svg/components/layout/LayoutSystem.cc:802-815 (origin = top-left of getViewBox(element) plus the offset); donner/svg/components/layout/LayoutSystem.cc:150-170 (that box is (min-x, min-y, w, h) for a viewBox, or (x, y, w, h) of a nested svg without viewBox) none with a non-zero box origin: every resvg structure/transform and transform-origin case uses viewBox='0 0 ...' (grep); LayoutSystemTest.NestedSvgWithoutViewBoxUsesBoundsAsViewBox pins the (x, y) box high S By code reading, not executed. Because the box origin is added even to the default 0 0, a plain transform='rotate(45)' or scale(2) on any element inside <svg viewBox='100 100 200 200'> pivots about (100,100) instead of (0,0); likewise inside a nested <svg x='50' y='50'> without viewBox. Translations are unaffected, which is why existing tests pass. This is a rendering bug, not only a specification ambiguity. Renderer independent.
feat:css-transforms-1/reference-box-of-sized-elements divergent https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-view-box For every SVG element without a layout box the view-box reference box is the nearest viewport, also for use and nested svg; x and y of use are an extra translate appended after the transform. n/a donner/svg/components/layout/LayoutSystem.cc:796-801 (svg, use and symbol instances take their own x/y/width/height box), :458-463 (use x/y applied as a content translate) none: no test combines x or y with a rotate, scale, skew or matrix transform on use or svg (scan of resvg and donner/svg sources) high S By code reading, not executed. For <use x='100' y='50' transform='scale(2)'> the pivot becomes (100,50), so the result is scale(p) + (x,y) instead of scale(p + (x,y)). Same for a nested svg with x/y and a non-translate transform. The use side is also recorded in structure.md (feat:svg2/use-xy-translate, partial for this reason).
feat:css-transforms-1/transform-origin-font-relative-lengths partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin Lengths in transform-origin compute against the element's font metrics. donner/svg/properties/PropertyRegistry.cc:1272 donner/svg/components/layout/LayoutSystem.cc:376, :387, :810-811 (default 16px metrics) none low S Same defect as feat:svg2/coords-unit-em: a fixed 16px is used.
feat:css-transforms-1/transform-origin-on-paint-servers-and-clippath conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-view-box For pattern, gradients and clipPath the reference box is defined by patternUnits, gradientUnits and clipPathUnits (the referencing element's box for objectBoundingBox). n/a donner/svg/renderer/RendererTinySkia.cc:737-754; donner/svg/renderer/RendererGeode.cc:551-566; donner/svg/renderer/RendererDriver.cc:776-790 resvg structure/transform-origin/on-gradient-object-bounding-box.svg, on-gradient-user-space-on-use.svg, on-pattern-object-bounding-box.svg, on-pattern-user-space-on-use.svg, on-clippath.svg, on-clippath-objectBoundingBox.svg (all in the run set, no overrides) - - The origin used is the one layout computed from the viewBox (donner/svg/components/layout/LayoutSystem.cc:802-815); how percentages map to the referencing box in objectBoundingBox mode was not traced (unverified beyond the passing cases).
feat:css-transforms-1/transform-origin-presentation-attribute conformant https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-attribute-specificity transform-origin is also a presentation attribute. donner/svg/properties/PropertyRegistry.cc:2439, :3003-3010 donner/svg/components/layout/LayoutSystem.cc:792 resvg structure/transform-origin/*.svg use the attribute form (23 files); RenderingContext_tests.cc:329 - - -

css-transforms-1 section 6: transform-box

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:transform-box missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-box content-box | border-box | fill-box | stroke-box | view-box; initial view-box; not inherited; selects the reference box for transform and transform-origin. grep for transform-box under donner/: no matches (not registered in donner/svg/properties/PropertyRegistry.cc) n/a none medium M The object and stroke boxes needed already exist (donner/svg/components/shape/ShapeSystem.cc:1053-1064).
val:transform-box/content-box missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-content-box content-box: the content box; for SVG elements without a layout box the used value is fill-box. no parser (grep transform-box) n/a none low S -
val:transform-box/border-box missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-border-box border-box: the border box; for SVG elements without a layout box the used value is stroke-box. no parser (grep transform-box) n/a none low S -
val:transform-box/fill-box missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-fill-box fill-box: the object bounding box is the reference box. no parser (grep transform-box) n/a none medium S fill-box with transform-origin center is the common idiom for rotating icons in place.
val:transform-box/stroke-box missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-stroke-box stroke-box: the stroke bounding box is the reference box. no parser (grep transform-box) n/a none low S -
val:transform-box/view-box partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-view-box view-box: the nearest SVG viewport is the reference box, positioned at the origin of the viewBox coordinate system with the viewBox width and height. no parser; behavior is hard-wired donner/svg/components/layout/LayoutSystem.cc:802-808 LayoutSystemTest.TransformOriginSupport (viewBox at 0 0) high S The only behavior available, and only correct when the box origin is (0,0): see feat:css-transforms-1/view-box-reference-box-origin.
feat:css-transforms-1/transform-box-svg-mappings missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-box Used-value mapping between CSS boxes and SVG boxes (content-box to fill-box, border-box to stroke-box for SVG; fill-box to content-box, stroke-box and view-box to border-box for elements with a layout box). n/a n/a none low S Follows from the missing property. The outermost svg is the one element that would take the border-box branch; Donner uses its canvas box (donner/svg/components/layout/LayoutSystem.cc:845-855).

css-transforms-1 sections 8, 11 to 13: animation and interpolation

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-transforms-1/svg-animate-and-set-transform partial https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-animate-element animate and set can target the transform list; additive animation post-multiplies onto the underlying value; to-animations and paced mode are undefined. donner/svg/parser/AttributeParser.cc:1715 (animateTransform); donner/svg/components/animation/AnimationSystem.cc:292-305 donner/svg/components/animation/AnimationValueSampler.cc:276-300 (typed animateTransform interpolation); donner/svg/components/animation/AnimationSystem.cc:573-576 (additive needs the underlying value) SVGAnimateTransformElement.ParseRotate, ParseTranslate, PacedTranslateUsesUnequalValueDistances low M animateTransform and set are implemented. A plain animate on transform has no transform-list interpolation (no list or matrix math in donner/svg/components/animation/AnimationValueMath.cc), so it cannot interpolate smoothly (by code reading; exact fallback unverified). Owned by the animation ledger.
feat:css-transforms-1/neutral-element-for-addition conformant-untested https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#neutral-element The neutral element for by-animations is 0 for every function argument, including scale(0). n/a donner/svg/components/animation/AnimationValueSampler.cc:192-199, :214-227 none named for a by-animation of scale low S Cross-reference to the animation ledger.
feat:css-transforms-1/attributeName-transform-alias conformant-untested https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#svg-attribute-name attributeName transform may be used to animate gradientTransform or patternTransform; both names address the same property. donner/svg/components/animation/AnimationSystem.cc:292-305 (transform accepted on any target; gradientTransform and patternTransform only on their elements) donner/svg/components/animation/AnimationBaseValue.cc:1098-1105 none low S -
feat:svg2/coords-supplemental-motion-transform-order conformant-untested https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#ctm Order of application: transform-origin offset, then (Level 2) translate, rotate, scale, then the motion transform, then transform, then the negated origin. For SVG animateMotion the supplemental matrix is applied on top of the element's transform. n/a donner/svg/components/animation/AnimationSystem.cc:608-626 (the motion transform is appended after the underlying transform list, so it is innermost); donner/svg/components/layout/LayoutSystem.cc:381-396 (origin wraps the whole list) motion sampling: RendererAnimationPathValue.InvalidCssPathRemainsUnavailableToMotion; no test asserts the order against a non-translate transform low S Matches the SVG animation rule (motion after transform). It differs from the css-transforms-2 order for the CSS offset property, which Donner does not implement. Cross-reference to the animation ledger.
feat:css-transforms-1/interpolation-of-transform-lists missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#interpolation-of-transforms List interpolation: none to none is none; shorter lists are padded with identity functions; matching function pairs interpolate numerically; from the first mismatch on, the remainders are multiplied out and interpolated as matrices. n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.
feat:css-transforms-1/interpolation-of-primitives-and-derived-functions missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#interpolation-of-transform-functions Functions of the same primitive (translate/translateX/translateY, scale/scaleX/scaleY) are converted to the primitive and interpolated numerically. n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.
feat:css-transforms-1/matrix-decomposition-2d missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#decomposing-a-2d-matrix 2D matrices are decomposed into translation, scale, angle and a residual 2x2 matrix (unmatrix method). n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.
feat:css-transforms-1/matrix-interpolation-2d missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#interpolation-of-decomposed-2d-matrix-values Decomposed values are fixed up (axis flips, shortest rotation) and interpolated linearly. n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.
feat:css-transforms-1/matrix-recomposition-2d missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#recomposing-to-a-2d-matrix Interpolated components are recomposed into a matrix. n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.
feat:css-transforms-1/interpolation-non-invertible-fallback missing https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#matrix-interpolation If either matrix is non-invertible the animation falls back to discrete. n/a grep -i 'decompos|unmatrix' under donner/base and donner/svg/components: no implementation; no CSS transitions or CSS animations engine none low M Only reachable through CSS transitions/animations (unsupported) or animate on transform. animateTransform uses its own typed tuples and needs none of this.

css-transforms-2: 3D functions, individual properties, 3D properties

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:css-transforms-2/two-dimensional-subset conformant https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#two-dimensional-subset A UA that cannot render 3D supports only the 2D subset: 3D functions and transform-style, perspective, perspective-origin, backface-visibility must not be supported, so declarations using them are invalid and fall back. donner/svg/parser/CssTransformParser.cc:232-237 (unknown function is an error); donner/svg/parser/TransformParser.cc:134-139 donner/svg/components/layout/LayoutSystem.cc:771-786 (declaration dropped) TransformParserCss.ParseErrors ('invalid(' and 'invalid2()' rejected); no case names a 3D function - - This is the rule that governs every 3D row below.
val:transform/matrix3d() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-matrix3d matrix3d() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/translate3d() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-translate3d translate3d() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/translateZ() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-translatez translateZ() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/scale3d() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-scale3d scale3d() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/scaleZ() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-scalez scaleZ() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/rotate3d() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-rotate3d rotate3d() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/rotateX() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-rotatex rotateX() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/rotateY() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-rotatey rotateY() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
val:transform/rotateZ() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-rotatez rotateZ() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole. rotateZ(a) could be accepted as rotate(a) at no cost.
val:transform/perspective() not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#funcdef-perspective perspective() is a 3D transform function (rotateZ is the 3D spelling of a 2D rotation). donner/svg/parser/CssTransformParser.cc:232-237 (rejected as an unexpected function; grep for the name under donner/ finds no handler) n/a generic: TransformParserCss.ParseErrors - - Not supported by design under the 2D subset; a declaration containing it is ignored as a whole.
feat:css-transforms-2/svg-and-3d-functions not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#svg-three-dimensional-functions 3D functions apply to SVG container and graphics elements; on clipPath, gradients and pattern a list containing a 3D function is ignored entirely. donner/svg/parser/CssTransformParser.cc:232-237 n/a none - - Under the 2D subset every list with a 3D function is ignored on every element, which includes the required behavior for clipPath, gradients and pattern.
prop:translate missing https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-translate Individual transform property translate: none | length-percentage [length-percentage length?]?; initial none; applied before transform inside the origin offsets. grep for the property name in donner/svg/properties/PropertyRegistry.cc: not registered (the only 'rotate' and 'scale' strings under donner/svg are the text rotate attribute and feDisplacementMap scale) n/a none low M Level 2 is a Working Draft; these are not SVG presentation attributes. Value rows are folded into this row because nothing is parsed.
prop:rotate missing https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-rotate Individual transform property rotate: none | angle | [x | y | z | number{3}] && angle; initial none; applied before transform inside the origin offsets. grep for the property name in donner/svg/properties/PropertyRegistry.cc: not registered (the only 'rotate' and 'scale' strings under donner/svg are the text rotate attribute and feDisplacementMap scale) n/a none low M Level 2 is a Working Draft; these are not SVG presentation attributes. Value rows are folded into this row because nothing is parsed.
prop:scale missing https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-scale Individual transform property scale: none | [number | percentage]{1,3}; initial none; applied before transform inside the origin offsets. grep for the property name in donner/svg/properties/PropertyRegistry.cc: not registered (the only 'rotate' and 'scale' strings under donner/svg are the text rotate attribute and feDisplacementMap scale) n/a none low M Level 2 is a Working Draft; these are not SVG presentation attributes. Value rows are folded into this row because nothing is parsed.
feat:css-transforms-2/ctm-with-individual-properties missing https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#ctm The matrix is origin, translate, rotate, scale, offset, transform functions, negated origin, in that order. n/a donner/svg/components/layout/LayoutSystem.cc:381-396 (origin and transform only) none low M -
prop:transform-style not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-transform-style transform-style: flat | preserve-3d (3D rendering). grep for '"transform-style"' under donner/svg/properties, donner/svg/components, donner/css: no matches n/a none - - Must not be supported in the 2D subset; the declaration is ignored as an unknown property. Value rows are folded into this row.
prop:perspective not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-perspective perspective: none | length (3D rendering). grep for '"perspective"' under donner/svg/properties, donner/svg/components, donner/css: no matches n/a none - - Must not be supported in the 2D subset; the declaration is ignored as an unknown property. Value rows are folded into this row.
prop:perspective-origin not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-perspective-origin perspective-origin: position (3D rendering). grep for '"perspective-origin"' under donner/svg/properties, donner/svg/components, donner/css: no matches n/a none - - Must not be supported in the 2D subset; the declaration is ignored as an unknown property. Value rows are folded into this row.
prop:backface-visibility not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#propdef-backface-visibility backface-visibility: visible | hidden (3D rendering). grep for '"backface-visibility"' under donner/svg/properties, donner/svg/components, donner/css: no matches n/a none - - Must not be supported in the 2D subset; the declaration is ignored as an unknown property. Value rows are folded into this row.
feat:css-transforms-2/addition-and-accumulation partial https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#combining-transform-lists Addition of transform lists is concatenation; accumulation adds matched function parameters (one-based values combine as a + b - 1). n/a donner/svg/components/animation/AnimationSystem.cc:619-626 (concatenation of underlying and animated lists); donner/svg/components/animation/AnimationValueSampler.cc:266-275 (numeric accumulation of typed tuples) none named low S Addition matches. Accumulation is plain addition per animateTransform tuple as in SMIL; the one-based rule for scale was not checked (unverified). Animation ledger.
feat:css-transforms-2/new-presentation-attributes not-applicable https://www.w3.org/TR/2021/WD-css-transforms-2-20211109/#svg-transform perspective, perspective-origin, transform-style, backface-visibility become presentation attributes. not in the presentation attribute table (donner/svg/properties/PropertyRegistry.cc:2425-2503) n/a none - - 2D subset.

SVG 2 coords 8.14: DOM interfaces

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/coords-dom-SVGTransform not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InterfaceSVGTransform IDL interface SVGTransform. n/a C++ analogues: donner/svg/SVGGraphicsElement.cc:118 (transform getter), donner/svg/SVGSVGElement.h (viewBox, preserveAspectRatio accessors) SVGElementTests.Transform, SetTransformDirectly; SVGSVGElementTest.SetAndGetViewBox - - Script interface; out of scope for a user agent without script.
feat:svg2/coords-dom-SVGTransformList not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InterfaceSVGTransformList IDL interface SVGTransformList. n/a C++ analogues: donner/svg/SVGGraphicsElement.cc:118 (transform getter), donner/svg/SVGSVGElement.h (viewBox, preserveAspectRatio accessors) SVGElementTests.Transform, SetTransformDirectly; SVGSVGElementTest.SetAndGetViewBox - - Script interface; out of scope for a user agent without script.
feat:svg2/coords-dom-SVGAnimatedTransformList not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InterfaceSVGAnimatedTransformList IDL interface SVGAnimatedTransformList. n/a C++ analogues: donner/svg/SVGGraphicsElement.cc:118 (transform getter), donner/svg/SVGSVGElement.h (viewBox, preserveAspectRatio accessors) SVGElementTests.Transform, SetTransformDirectly; SVGSVGElementTest.SetAndGetViewBox - - Script interface; out of scope for a user agent without script.
feat:svg2/coords-dom-SVGPreserveAspectRatio not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InterfaceSVGPreserveAspectRatio IDL interface SVGPreserveAspectRatio. n/a C++ analogues: donner/svg/SVGGraphicsElement.cc:118 (transform getter), donner/svg/SVGSVGElement.h (viewBox, preserveAspectRatio accessors) SVGElementTests.Transform, SetTransformDirectly; SVGSVGElementTest.SetAndGetViewBox - - Script interface; out of scope for a user agent without script.
feat:svg2/coords-dom-SVGAnimatedPreserveAspectRatio not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#InterfaceSVGAnimatedPreserveAspectRatio IDL interface SVGAnimatedPreserveAspectRatio. n/a C++ analogues: donner/svg/SVGGraphicsElement.cc:118 (transform getter), donner/svg/SVGSVGElement.h (viewBox, preserveAspectRatio accessors) SVGElementTests.Transform, SetTransformDirectly; SVGSVGElementTest.SetAndGetViewBox - - Script interface; out of scope for a user agent without script.

Geometry Interfaces Level 1 (only where a C++ equivalent exists)

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:geometry-1/dompoint not-applicable https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#DOMPoint DOMPoint: x, y, z, w with a perspective component. n/a donner/base/Vector2.h (2D vector only) donner/base/tests/Vector2_tests.cc - - IDL type; the C++ type has no z or w.
feat:geometry-1/dompoint-matrixtransform conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dompointreadonly-matrixtransform Transform a point by a matrix. n/a donner/base/Transform.h:272-275 (transformPosition), :253-256 (transformVector) Transform.TransformVectorOrPosition - - -
feat:geometry-1/domrect conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#DOMRect Rectangle with x, y, width, height and derived top, right, bottom, left. n/a donner/base/Box.h:55 (FromXYWH), :142-147 Box.WidthHeight, Size, Construct - - Stored as two corners; negative sizes are not normalized (not needed internally).
feat:geometry-1/domquad not-applicable https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#DOMQuad Quadrilateral of four points and its bounds. n/a grep for a Quad type in donner/base/*.h: only QuadraticSolution; donner/base/Transform.h:283-292 (transformBox returns the axis-aligned bounds directly) Transform.TransformBox - - No equivalent type.
feat:geometry-1/dommatrix-2d-components conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#DOMMatrix A 2D matrix is a, b, c, d, e, f = m11, m12, m21, m22, m41, m42. n/a donner/base/Transform.h:33-60 (data[0..5] = a..f) Transform.Construct; TransformParser.Matrix - - -
feat:geometry-1/dommatrix-multiply conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-multiply multiply post-multiplies: the argument is applied first. n/a donner/base/Transform.h:306-315 (A * B applies A first, then B, that is B.multiply(A)) Transform.MultiplicationOrder - - Operand order is the reverse of DOMMatrix.multiply by design and documented; every caller read in this audit follows it except the CSS list merge (see the function order row).
feat:geometry-1/dommatrix-inverse conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-inverse inverse returns the inverse; a non-invertible matrix yields all NaN. n/a donner/base/Transform.h:226-236 Transform.Inverse - - A singular matrix yields non-finite components (infinities and NaN), not uniformly NaN; callers test finiteness (donner/svg/components/shape/ShapeSystem.cc:789-795).
feat:geometry-1/dommatrix-translate conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-translate Matrix for translate matches the css-transforms definition. n/a donner/base/Transform.h:142-155 Transform.Translate - - -
feat:geometry-1/dommatrix-scale conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-scale Matrix for scale matches the css-transforms definition. n/a donner/base/Transform.h:110-135 Transform.Scale - - -
feat:geometry-1/dommatrix-rotate conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-rotate Matrix for rotate matches the css-transforms definition. n/a donner/base/Transform.h:91-102 (radians, not degrees) Transform.Rotate - - -
feat:geometry-1/dommatrix-skewx conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-skewx Matrix for skewx matches the css-transforms definition. n/a donner/base/Transform.h:164-169 (radians) Transform.SkewX - - -
feat:geometry-1/dommatrix-skewy conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-skewy Matrix for skewy matches the css-transforms definition. n/a donner/base/Transform.h:179-184 (radians) Transform.SkewY - - -
feat:geometry-1/dommatrix-isidentity conformant https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#dom-dommatrixreadonly-isidentity isIdentity is true for the identity matrix. n/a donner/base/Transform.h:190-193 (within a small tolerance, not exact) Transform.IsIdentity - - -
feat:geometry-1/dommatrix-3d-and-mutators not-applicable https://www.w3.org/TR/2025/CRD-geometry-1-20251204/#DOMMatrix is2D, the 4x4 members, flipX/flipY, rotateFromVector, rotateAxisAngle, in-place *Self mutators, setMatrixValue and string construction. n/a no equivalents in donner/base/Transform.h none - - No C++ equivalent; string parsing lives in the two transform parsers audited above.

Tests to create

  • feat:css-transforms-1/view-box-reference-box-origin (https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#valdef-transform-box-view-box): <svg viewBox="100 100 200 200"><rect x="150" y="150" width="50" height="50" transform="rotate(45)"/></svg>; the rect must rotate about user-space (0,0), not about (100,100). Second case: the same rect inside <svg x="50" y="50" width="100" height="100"> without viewBox.
  • feat:css-transforms-1/reference-box-of-sized-elements (same anchor): <use href="#r" x="100" y="50" transform="scale(2)"/> must equal transform="scale(2) translate(100,50)"; and a nested <svg x="20" y="20" width="50" height="50" transform="rotate(30)"> must rotate about the parent origin.
  • feat:css-transforms-1/transform-function-list-order (https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#transform-function-lists): style="transform: rotate(90deg) scale(2,1)" must render identically to transform="rotate(90) scale(2,1)"; unit test: skew(45deg) skewX(45deg) skewY(45deg) equals matrix(3,1,2,1,0,0).
  • val:transform/none (https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform): <rect transform="translate(50 0)" style="transform:none"> renders untranslated.
  • feat:css-transforms-1/presentation-attribute-cascade (#transform-attribute-specificity): the specification's own example, a class rule transform: translate(100px,100px) over transform="translate(200 200)".
  • feat:svg2/coords-transform-on-outermost-svg and feat:svg2/coords-transform-then-viewbox-order (https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#ViewBoxAttribute): <svg width="200" height="200" viewBox="0 0 100 100" transform="translate(20,0)"> shifts content by 20 viewport px (not 40); the same attributes on a nested svg.
  • feat:svg2/coords-viewbox-surrounding-whitespace and feat:svg2/coords-par-surrounding-whitespace (https://www.w3.org/TR/2026/CR-SVG2-20261006/types.html#attribute-css-value): viewBox=" 0 0 100 100 " and preserveAspectRatio=" xMinYMin slice " behave like their trimmed forms.
  • feat:svg2/coords-viewbox-zero-size (coords.html#ViewBoxAttribute): nested <svg viewBox="0 0 0 50"> with a rect inside paints no pixels (assert on output, not on survival).
  • feat:svg2/coords-zero-size-viewport: nested <svg width="0" height="50"> paints nothing.
  • val:preserveAspectRatio/xMidYMin, xMaxYMin, xMinYMid, xMaxYMid, xMinYMax, xMidYMax (coords.html#DataTypeAlign): one equivalent-transform assertion per alignment, meet and slice, with a non-square viewBox.
  • feat:svg2/coords-par-invalid-value: preserveAspectRatio="bogus" renders as xMidYMid meet.
  • feat:svg2/coords-initial-viewport-css-sizing (coords.html#ViewportSpace): <svg style="width:200px;height:100px"> produces a 200x100 canvas.
  • feat:svg2/coords-intrinsic-ratio-step1-absolute-sizes and feat:svg2/coords-intrinsic-ratio-ignores-preserveAspectRatio (coords.html#SizingSVGInCSS): ratio of width="10cm" height="5cm" is 2; width="100" viewBox="0 0 200 100" preserveAspectRatio="none" is 100x50.
  • feat:svg2/coords-intrinsic-dimensions: root width="10em" height="5em" sizes 160x80.
  • feat:svg2/coords-pattern-marker-no-viewport (coords.html#ElementsThatEstablishViewports): a pattern with viewBox="0 0 10 10" containing <rect width="50%" height="50%">; the percentage must resolve against the ancestor svg viewport.
  • feat:svg2/coords-unit-em and siblings (coords.html#Units): <svg font-size="20"><image width="10em" .../></svg> is 200 wide; style="transform: translate(1em, 0)" under font-size: 20px moves 20; transform-origin: 1em 1em.
  • feat:svg2/coords-unit-vw and siblings: width="50vw" inside a nested svg with its own viewBox resolves against the outermost viewport.
  • feat:svg2/coords-bbox-nonrendered-not-contributing (coords.html#BoundingBoxes): <g fill="url(#objectBoundingBoxGradient)"><circle .../><defs><rect x="500" .../></defs></g> with a group-level clip-path or mask in objectBoundingBox units sized from the circle only; same with a clipPath, mask, marker, pattern child and a non-selected switch branch.
  • feat:svg2/coords-stroke-bounding-box and feat:svg2/coords-bbox-alg-shape-stroke: direct assertions on the stroke bounds of a dashed, square-capped, mitered path (dashes ignored, caps and miters included).
  • feat:svg2/coords-bbox-paint-properties-ignored, feat:svg2/coords-bbox-zero-extent-elements, feat:svg2/coords-bbox-alg-use, feat:svg2/coords-bbox-alg-image-foreignobject, feat:svg2/coords-bbox-alg-nested-svg, feat:svg2/coords-bbox-effects-do-not-change-bbox: one object-bounds assertion each (visibility hidden shape, horizontal line, use of a rect with x/y, image rectangle, nested svg with overflow hidden, clipped group).
  • feat:svg2/coords-bbox-unresolved-reference: group containing <use href="#missing" x="10" y="10"/> has a box that includes (10,10).
  • feat:svg2/coords-obb-zero-size-bbox and feat:svg2/coords-obb-values-outside-unit-range (coords.html#ObjectBoundingBoxUnits): horizontal line stroked with an objectBoundingBox gradient paints nothing; gradient with x1="-50%" x2="150%".
  • val:transform-origin/two-value-form and val:transform-origin/three-value-form (https://www.w3.org/TR/2019/CR-css-transforms-1-20190214/#propdef-transform-origin): center left, left center, top 10px (invalid), 10px 10px 0.
  • feat:css-transforms-1/transform-attribute-error-handling and -property-error-handling: transform="translate(10) bogus(1)" applies no translation; style="transform: rotateX(30deg)" over transform="translate(10)" keeps the attribute.
  • feat:css-transforms-1/svg-transforms-separator: transform="scale(2)," (decide and pin), transform="rotate(10)scale(2)".
  • val:transform/rotate(): transform: rotate(0.0) and skewX(-0) are valid.
  • val:transform/scale(): transform: scale(150%).
  • feat:css-transforms-1/percentages-reference-box: style="transform: translate(50%, 0)" on a group inside viewBox="0 0 200 100" moves 100.
  • feat:css-transforms-1/transformable-elements: transform on tspan ignored (direct assertion), transform on mask and symbol ignored.
  • prop:transform-box and values: transform-box: fill-box; transform-origin: center; transform: rotate(45deg) rotates a rect about its own center.
  • feat:svg2/coords-supplemental-motion-transform-order: animateMotion on an element with transform="rotate(90)"; the motion path is traversed in the rotated space.
  • feat:css-transforms-1/attributeName-transform-alias and feat:css-transforms-1/neutral-element-for-addition: <animate attributeName="transform"> on a gradient; animateTransform type="scale" by="1" starts from scale(0).

Unverified / could not fetch

  • All four specification pages and the SVG 2 types chapter were fetched; nothing was filled from memory.
  • Every behavior claim is by code reading. The three high-impact rows (CSS function order, view-box reference box origin, reference box of sized elements) were derived by tracing donner/svg/core/CssTransform.h, donner/svg/components/layout/LayoutSystem.cc and the existing unit-test expectations; they should be confirmed by running the proposed tests before any fix.
  • Rendering outcome of a zero-size viewBox (infinite or NaN scale) in each renderer.
  • Whether a singular but non-zero CTM combined with non-scaling-stroke paints anything.
  • How transform-origin percentages are mapped for gradients, patterns and clipPath in objectBoundingBox mode beyond the fact that the six resvg cases are in the run set.
  • Whether symbol is a transformable element under the CR's structure chapter (not read for this ledger).
  • Glyph cell construction for vertical and sideways text in the text bounding box (text ledger).
  • Fallback behavior of a plain animate on transform, and the one-based accumulation rule for scale (animation ledger).
  • How the vendored resvg cases without a reference image (structure/svg/zero-size.svg, negative-size.svg) are treated by the harness.
  • Browser behavior was not consulted anywhere; classifications follow the published text only.