Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
Basic shapes, paths and geometry properties

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.

All behaviour statements are by code reading at Donner revision b39a524a2; nothing was built or run. Paths are checkout-relative.

Specs read

Spec Level Maturity Dated URL read
SVG 2, ch. 7 Geometry Properties 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html
SVG 2, ch. 9 Paths 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html
SVG 2, ch. 10 Basic Shapes 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html
SVG 2, ch. 8 Coordinate Systems (8.9 Units, 8.10 Bounding boxes only) 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html
SVG 2, ch. 13 Painting (linecap and dashing references only) 2 Candidate Recommendation Snapshot, 06 October 2026 https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html

Inventory

Derived from the CR element index (7 elements), the CR attribute index lines for these elements (pathLength, points x2, x1, x2, y1, y2), the geometry chapter property tables (cx, cy, r, rx, ry, x, y, width, height), the paths chapter property tables (d, path-length), and one feat:svg2/... row per prose rule, grammar detail, path command and algorithm step of the paths and shapes chapters. DOM interfaces (9.7, 10.8) are out of scope for a user agent without script. Stroking and markers are referenced, not audited. 156 rows.

  • Elements: el:path, el:rect, el:circle, el:ellipse, el:line, el:polyline, el:polygon
  • Attributes: attr:pathLength@circle, ellipse, line, path, polygon, polyline, rect, attr:points@polygon, attr:points@polyline, attr:x1@line, attr:x2@line, attr:y1@line, attr:y2@line
  • Geometry properties: prop:cx, prop:cy, prop:r, prop:rx, prop:ry, prop:x, prop:y, prop:width, prop:height, prop:d, prop:path-length
  • Geometry property values: val:cx/<length-percentage>, val:cy/<length-percentage>, val:r/<length-percentage>, val:x/<length-percentage>, val:y/<length-percentage>, val:rx/<length-percentage>, val:rx/auto, val:ry/<length-percentage>, val:ry/auto, val:width/<length-percentage>, val:width/auto, val:height/<length-percentage>, val:height/auto, val:d/none, val:d/<string>, val:path-length/none, val:path-length/<length>
  • Geometry property rules: feat:svg2/geometry-presentation-attribute-user-units, feat:svg2/geometry-css-declaration-requires-units, feat:svg2/geometry-css-overrides-presentation-attribute, feat:svg2/geometry-calc-values, feat:svg2/geometry-negative-cx-cy-x-y, feat:svg2/geometry-negative-r, feat:svg2/geometry-negative-rx-ry, feat:svg2/geometry-negative-width-height, feat:svg2/geometry-percent-horizontal, feat:svg2/geometry-percent-vertical, feat:svg2/geometry-percent-r-diagonal, feat:svg2/rect-radii-percent-reference
  • Path data commands: feat:svg2/path-command-M, feat:svg2/path-command-m, feat:svg2/path-command-Z, feat:svg2/path-command-z, feat:svg2/path-command-L, feat:svg2/path-command-l, feat:svg2/path-command-H, feat:svg2/path-command-h, feat:svg2/path-command-V, feat:svg2/path-command-v, feat:svg2/path-command-C, feat:svg2/path-command-c, feat:svg2/path-command-S, feat:svg2/path-command-s, feat:svg2/path-command-Q, feat:svg2/path-command-q, feat:svg2/path-command-T, feat:svg2/path-command-t, feat:svg2/path-command-A, feat:svg2/path-command-a
  • Path data command rules: feat:svg2/path-implicit-lineto-after-moveto, feat:svg2/path-first-relative-moveto-is-absolute, feat:svg2/path-command-repetition, feat:svg2/path-relative-coordinates-per-command, feat:svg2/path-closepath-next-subpath-start, feat:svg2/path-closepath-repeated, feat:svg2/path-closed-vs-open-subpath, feat:svg2/path-reflected-control-point, feat:svg2/path-closepath-segment-completing
  • Path data grammar: feat:svg2/path-grammar-first-command-moveto, feat:svg2/path-grammar-empty-string, feat:svg2/path-grammar-wsp, feat:svg2/path-grammar-comma-wsp, feat:svg2/path-grammar-number-forms, feat:svg2/path-grammar-exponent, feat:svg2/path-grammar-sign, feat:svg2/path-grammar-missing-separators, feat:svg2/path-grammar-trailing-decimal-point, feat:svg2/path-grammar-arc-flags, feat:svg2/path-grammar-arc-number-sign, feat:svg2/path-implementation-limits
  • Path data error handling: feat:svg2/path-error-render-up-to-error, feat:svg2/path-error-partial-compound-command, feat:svg2/path-error-reporting, feat:svg2/path-no-valid-commands-is-none, feat:svg2/path-moveto-only
  • Elliptical arc out-of-range parameters: feat:svg2/arc-identical-endpoints, feat:svg2/arc-zero-radius, feat:svg2/arc-negative-radius, feat:svg2/arc-radii-scaling, feat:svg2/arc-flags-semantics, feat:svg2/arc-x-axis-rotation, feat:svg2/arc-non-finite-parameters
  • Zero-length segments and subpaths: feat:svg2/zero-length-segments-valid, feat:svg2/zero-length-subpath-caps, feat:svg2/zero-length-segment-markers
  • Path directionality: feat:svg2/path-direction-at-distance, feat:svg2/path-direction-segment-start, feat:svg2/path-direction-segment-end, feat:svg2/path-direction-zero-length-path, feat:svg2/path-direction-cusp, feat:svg2/marker-orientation-data
  • Distance along a path and pathLength: feat:svg2/distance-along-path, feat:svg2/pathLength-scales-dasharray, feat:svg2/pathLength-scales-dashoffset, feat:svg2/pathLength-scales-textPath-startOffset, feat:svg2/pathLength-scales-motion, feat:svg2/pathLength-zero, feat:svg2/pathLength-negative, feat:svg2/pathLength-percentage-unaffected
  • Equivalent paths of basic shapes: feat:svg2/equiv-path-rect-sharp, feat:svg2/equiv-path-rect-rounded, feat:svg2/rect-radii-step-both-auto, feat:svg2/rect-radii-step-rx-only, feat:svg2/rect-radii-step-ry-only, feat:svg2/rect-radii-step-both-set, feat:svg2/rect-radii-step-clamp-rx, feat:svg2/rect-radii-step-clamp-ry, feat:svg2/rect-one-zero-radius, feat:svg2/equiv-path-circle, feat:svg2/equiv-path-ellipse, feat:svg2/equiv-path-line, feat:svg2/equiv-path-polyline, feat:svg2/equiv-path-polygon
  • Shape error and non-rendering conditions: feat:svg2/rect-zero-size-not-rendered, feat:svg2/circle-zero-radius-not-rendered, feat:svg2/ellipse-zero-or-auto-radii-not-rendered, feat:svg2/points-odd-coordinate-count, feat:svg2/points-initial-none, feat:svg2/points-grammar, feat:svg2/points-error-renders-prefix, feat:svg2/line-never-filled, feat:svg2/shape-single-point-polyline
  • Bounding boxes of shapes: feat:svg2/bbox-path, feat:svg2/bbox-rect, feat:svg2/bbox-circle, feat:svg2/bbox-ellipse, feat:svg2/bbox-line, feat:svg2/bbox-polyline, feat:svg2/bbox-polygon, feat:svg2/bbox-zero-size-shapes, feat:svg2/bbox-display-none-excluded

Matrix

Elements

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
el:path conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathElement Shape element whose outline is given by the d property; children (animation, descriptive, paint servers, clipPath, marker, mask, script, style) never render as graphics. donner/svg/SVGPathElement.cc:11-12 (created with NoTraverseChildren); d attribute donner/svg/components/shape/ShapeSystem.cc:406-428, :1446-1462 donner/svg/components/shape/ShapeSystem.cc:1321-1381 (parse d, build ComputedPathComponent) SVGPathElement_tests.cc Simple, DAttributeAndSetters; ShapeSystem_tests.cc PathComputedPath, PathEmptyD; resvg (not skipped) shapes/path/* (56 cases) - - Content model is not validated, child elements are simply not traversed for rendering. display:none pruned from bounds (donner/svg/components/shape/ShapeSystem.cc:1241).
el:rect conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Axis-aligned rectangle sized by x, y, width, height with optional rx/ry corner rounding; same content model as path. donner/svg/SVGRectElement.cc:15-16; donner/svg/components/shape/RectComponent.cc:17-75, :100-119 donner/svg/components/shape/ShapeSystem.cc:1403-1444 SVGRectElement_tests.cc Simple, RoundedCorners, Spline; ShapeSystem_tests.cc RectComputedPath; resvg (not skipped) shapes/rect/* incl. with-child.svg (child rect not rendered) - - Children are not traversed (NoTraverseChildren), matching the content model which admits no graphics children.
el:circle conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#CircleElement Circle from cx, cy, r. donner/svg/SVGCircleElement.cc:13-14; donner/svg/components/shape/CircleComponent.cc:18-47, :72-91 donner/svg/components/shape/ShapeSystem.cc:1251-1276 SVGCircleElement_tests.cc Simple, Rendering; ShapeSystem_tests.cc CircleComputedPath; resvg (not skipped) shapes/circle/* - -
el:ellipse conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#EllipseElement Axis-aligned ellipse from cx, cy, rx, ry with auto radii. donner/svg/SVGEllipseElement.cc:15; donner/svg/components/shape/EllipseComponent.cc:18-58, :83-102 donner/svg/components/shape/ShapeSystem.cc:1278-1304 SVGEllipseElement_tests.cc Simple, ExplicitAutoRadiiUseOtherAxis; resvg (not skipped) shapes/ellipse/* - -
el:line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElement Line segment from (x1,y1) to (x2,y2); never filled because it has no interior. donner/svg/SVGLineElement.cc:13; donner/svg/parser/AttributeParser.cc:1484-1508; donner/svg/SVGElement.cc:130-161 donner/svg/components/shape/ShapeSystem.cc:1306-1319 (M start L end) SVGLineElement_tests.cc ComputedSpline; Donner corpus shapes/line/never-filled.svg; resvg (not skipped) shapes/line/* - - No explicit fill suppression exists; a two-point open path has no fill area, so the result matches (by code reading).
el:polyline conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElement Open set of connected straight segments from the points attribute. donner/svg/SVGPolylineElement.cc:26; donner/svg/parser/AttributeParser.cc:1602-1622 donner/svg/components/shape/ShapeSystem.cc:1383-1401 SVGPolygonPolylineElement_tests.cc PolylineComputedSplineStaysOpen; ShapeSystem_tests.cc PolylineIsNotClosed; resvg (not skipped) shapes/polyline/* - -
el:polygon conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolygonElement Closed shape from the points attribute. donner/svg/SVGPolygonElement.cc:26; donner/svg/parser/AttributeParser.cc:1579-1599 donner/svg/components/shape/ShapeSystem.cc:1383-1401 (closePath at :1396-1398) SVGPolygonPolylineElement_tests.cc PolygonComputedSplineClosesPath; ShapeSystem_tests.cc PolygonIsClosed; resvg (not skipped) shapes/polygon/* - -

Attributes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
attr:pathLength@circle, ellipse, line, path, polygon, polyline, rect partial https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute Number giving the author's total path length; scales distance-along-path computations (dashes, text on a path, motion). Zero is valid (infinite scale), negative is an error; maps to the path-length property as a presentation attribute. donner/svg/parser/AttributeParser.cc:68-80, :407-419 (plain number, whole value must be consumed, no whitespace trimming); stored donner/svg/SVGGeometryElement.cc:31-38 donner/svg/renderer/RendererDriver.cc:845-848, :883-895; donner/svg/renderer/RendererTinySkia.cc:2371-2392; donner/base/Path.cc:2816-2822 (dash array and dash offset only) donner/svg/renderer/tests/RendererRegression_tests.cc:237-244, :2714 (dashed path with pathLength); no resvg or corpus case low S Parsed on all seven elements (HasPathLength concept). Parse half and the dash consumer exist; missing: zero as infinite scale (treated as absent), textPath consumer, presentation-attribute mapping to path-length. Negative values are stored but ignored by every consumer (matches the error rule). Animation hook exists (donner/svg/renderer/AnimationAttributes.cc:1022-1033).
attr:points@polygon partial https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolygonElementPointsAttribute <points> = [ <number>+ ]#; odd coordinate count puts the element in error, the trailing odd coordinate is dropped and the rest renders; initial (none) renders nothing; attribute only, not CSS. donner/svg/parser/PointsListParser.cc:26-65; donner/svg/parser/AttributeParser.cc:1583-1595 donner/svg/components/shape/ShapeSystem.cc:1383-1401 PointsListParser_tests.cc OnePoint, NoSpaces, ParseErrors; resvg (not skipped) shapes/polygon/ignore-odd-points.svg, stop-processing-on-invalid-data.svg, missing-points-attribute.svg, not-enough-points.svg low S Odd count and garbage keep the valid prefix (resultAndError). Divergence: a doubled comma after at least one point returns the error without the points (PointsListParser.cc:41-46), so the element renders nothing instead of the valid prefix. Trailing whitespace or a trailing comma produces a spurious warning but still renders (by code reading). Form feed is not treated as whitespace (ParserBase).
attr:points@polyline partial https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElementPointsAttribute <points> = [ <number>+ ]#; odd coordinate count puts the element in error, the trailing odd coordinate is dropped and the rest renders; initial (none) renders nothing; attribute only, not CSS. donner/svg/parser/PointsListParser.cc:26-65; donner/svg/parser/AttributeParser.cc:1606-1618 donner/svg/components/shape/ShapeSystem.cc:1383-1401 PointsListParser_tests.cc OnePoint, NoSpaces, ParseErrors; resvg (not skipped) shapes/polyline/ignore-odd-points.svg, stop-processing-on-invalid-data.svg, missing-points-attribute.svg, not-enough-points.svg low S Odd count and garbage keep the valid prefix (resultAndError). Divergence: a doubled comma after at least one point returns the error without the points (PointsListParser.cc:41-46), so the element renders nothing instead of the valid prefix. Trailing whitespace or a trailing comma produces a spurious warning but still renders (by code reading). Form feed is not treated as whitespace (ParserBase).
attr:x1@line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElementX1Attribute <length-percentage> | <number>, initial 0, animatable, attribute only (not a CSS property). donner/svg/parser/AttributeParser.cc:90-112, :1488-1503 (LengthParser, unit optional); DOM path donner/svg/SVGElement.cc:130-161 (invalid value resets to 0) donner/svg/components/shape/ShapeSystem.cc:1309-1317 (percent resolved against viewport width, Extent::X) SVGLineElement_tests.cc Units, UpdateCoordinates, GenericAttributeMutationUpdatesTypedCoordinateAndSource; resvg (not skipped) shapes/line/percent-units.svg, no-x1-coordinate.svg - - Not registered as a CSS property (correct). calc() is not accepted, see feat:svg2/geometry-calc-values. Leading or trailing whitespace is trimmed only on the DOM setAttribute path; behaviour of the XML-parse path for padded values is unverified. Animation trait at donner/svg/components/animation/AnimationBaseValue.cc:790.
attr:x2@line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElementX2Attribute <length-percentage> | <number>, initial 0, animatable, attribute only (not a CSS property). donner/svg/parser/AttributeParser.cc:90-112, :1488-1503 (LengthParser, unit optional); DOM path donner/svg/SVGElement.cc:130-161 (invalid value resets to 0) donner/svg/components/shape/ShapeSystem.cc:1309-1317 (percent resolved against viewport width, Extent::X) SVGLineElement_tests.cc Units, UpdateCoordinates, GenericAttributeMutationUpdatesTypedCoordinateAndSource; resvg (not skipped) shapes/line/percent-units.svg, no-x2-coordinate.svg - - Not registered as a CSS property (correct). calc() is not accepted, see feat:svg2/geometry-calc-values. Leading or trailing whitespace is trimmed only on the DOM setAttribute path; behaviour of the XML-parse path for padded values is unverified. Animation trait at donner/svg/components/animation/AnimationBaseValue.cc:790.
attr:y1@line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElementY1Attribute <length-percentage> | <number>, initial 0, animatable, attribute only (not a CSS property). donner/svg/parser/AttributeParser.cc:90-112, :1488-1503 (LengthParser, unit optional); DOM path donner/svg/SVGElement.cc:130-161 (invalid value resets to 0) donner/svg/components/shape/ShapeSystem.cc:1309-1317 (percent resolved against viewport height, Extent::Y) SVGLineElement_tests.cc Units, UpdateCoordinates, GenericAttributeMutationUpdatesTypedCoordinateAndSource; resvg (not skipped) shapes/line/percent-units.svg, no-y1-coordinate.svg - - Not registered as a CSS property (correct). calc() is not accepted, see feat:svg2/geometry-calc-values. Leading or trailing whitespace is trimmed only on the DOM setAttribute path; behaviour of the XML-parse path for padded values is unverified. Animation trait at donner/svg/components/animation/AnimationBaseValue.cc:790.
attr:y2@line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElementY2Attribute <length-percentage> | <number>, initial 0, animatable, attribute only (not a CSS property). donner/svg/parser/AttributeParser.cc:90-112, :1488-1503 (LengthParser, unit optional); DOM path donner/svg/SVGElement.cc:130-161 (invalid value resets to 0) donner/svg/components/shape/ShapeSystem.cc:1309-1317 (percent resolved against viewport height, Extent::Y) SVGLineElement_tests.cc Units, UpdateCoordinates, GenericAttributeMutationUpdatesTypedCoordinateAndSource; resvg (not skipped) shapes/line/percent-units.svg, no-y2-coordinate.svg - - Not registered as a CSS property (correct). calc() is not accepted, see feat:svg2/geometry-calc-values. Leading or trailing whitespace is trimmed only on the DOM setAttribute path; behaviour of the XML-parse path for padded values is unverified. Animation trait at donner/svg/components/animation/AnimationBaseValue.cc:790.

Geometry properties

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
prop:cx partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#CX <length-percentage>, initial 0, applies to circle and ellipse, not inherited, percent of viewport width, negative allowed; presentation attribute and CSS property. donner/svg/components/shape/CircleComponent.cc:20-28, EllipseComponent.cc:20-28; CSS cascade CircleComponent.cc:53-70, EllipseComponent.cc:64-81 donner/svg/components/shape/ShapeSystem.cc:1263-1265, :1290-1292 (Extent::X) SVGCircleElement_tests.cc PresentationAttributes, ComputedValuesOverrideAttributes; CircleEllipseComponent_tests.cc ComputedCircleComponentAppliesUnparsedProperties; resvg (not skipped) shapes/circle/missing-cx-attribute.svg low S Works as attribute and as CSS declaration. Divergence: the CSS path passes AllowUserUnits, so a unitless non-zero number such as 'cx: 15' is accepted in a style sheet (a unit test asserts this lenient behaviour).
prop:cy partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#CY <length-percentage>, initial 0, circle and ellipse, percent of viewport height, negative allowed. CircleComponent.cc:29-37, EllipseComponent.cc:29-37 (under donner/svg/components/shape/) donner/svg/components/shape/ShapeSystem.cc:1263-1265, :1290-1292 (Extent::Y) SVGCircleElement_tests.cc PresentationAttributes; resvg (not skipped) shapes/circle/missing-cy-attribute.svg, shapes/ellipse/percent-values.svg low S Same CSS unitless leniency as cx.
prop:r partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#R <length-percentage>, initial 0, circle only, percent of the normalized viewport diagonal; negative is invalid and treated as 0. donner/svg/components/shape/CircleComponent.cc:38-46 donner/svg/components/shape/ShapeSystem.cc:1266-1275 (Extent::Mixed, donner/base/Length.h:268-274 diagonal; radius <= 0 renders nothing) ShapeSystem_tests.cc CircleZeroRadius, CircleNegativeRadius; resvg (not skipped) shapes/circle/negative-r-attribute.svg, missing-r-attribute.svg; corpus shapes/circle/negative-r-ignored.svg low S Rendering matches. A negative value is stored as specified instead of being replaced by 0 at parse time, so a lower-specificity valid value cannot show through; used value is still non-rendering. CSS unitless leniency as cx.
prop:rx partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RX <length-percentage> | auto, initial auto, applies to ellipse and rect, percent of viewport width; auto takes the other radius, both auto gives 0; negative is treated as auto; rect used value capped at half the width. donner/svg/components/shape/RectComponent.cc:55-74, EllipseComponent.cc:38-57; donner/svg/properties/PropertyParsing.cc:92-104 donner/svg/properties/RxRyProperties.cc:5-31; donner/svg/components/shape/ShapeSystem.cc:1293-1294, :1423-1429 SVGRectElement_tests.cc ExplicitAutoRadiiUseOtherAxis; SVGEllipseElement_tests.cc ExplicitAutoRadiiUseOtherAxis; corpus geometry/automatic-radii/*; resvg (not skipped) shapes/rect/rx-attribute-clamping.svg, negative-rx-attribute-resolving.svg low S Attribute and CSS both work (rect CSS path is strict about units, ellipse CSS path accepts unitless numbers). See feat:svg2/rect-radii-percent-reference for the percentage basis question.
prop:ry partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RY <length-percentage> | auto, initial auto, applies to ellipse and rect, percent of viewport height; auto takes the other radius, both auto gives 0; negative is treated as auto; rect used value capped at half the height. donner/svg/components/shape/RectComponent.cc:55-74, EllipseComponent.cc:38-57; donner/svg/properties/PropertyParsing.cc:92-104 donner/svg/properties/RxRyProperties.cc:5-31; donner/svg/components/shape/ShapeSystem.cc:1293-1294, :1423-1429 SVGRectElement_tests.cc ExplicitAutoRadiiUseOtherAxis; SVGEllipseElement_tests.cc ExplicitAutoRadiiUseOtherAxis; corpus geometry/automatic-radii/*; resvg (not skipped) shapes/rect/ry-attribute-clamping.svg, negative-ry-attribute-resolving.svg low S Attribute and CSS both work (rect CSS path is strict about units, ellipse CSS path accepts unitless numbers). See feat:svg2/rect-radii-percent-reference for the percentage basis question.
prop:x conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#X <length-percentage>, initial 0, applies to svg, rect, image, foreignObject; percent of viewport width. donner/svg/components/shape/RectComponent.cc:19-27; CSS cascade RectComponent.cc:81-98 (PropertyParseBehavior::Default, units required) donner/svg/components/shape/ShapeSystem.cc:1415-1417 RectComponent_tests.cc CssLengthGrammarForAllRectProperties, UnitlessCssXPreservesPresentationAttribute; corpus geometry/x/css-overrides-presentation.svg, geometry/css-length-values/*; resvg (not skipped) shapes/rect/x-attribute-resolving.svg - - Audited here for rect only; svg, image and foreignObject belong to other ledgers.
prop:y conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Y <length-percentage>, initial 0, applies to svg, rect, image, foreignObject; percent of viewport height. donner/svg/components/shape/RectComponent.cc:28-36; CSS cascade RectComponent.cc:81-98 (PropertyParseBehavior::Default, units required) donner/svg/components/shape/ShapeSystem.cc:1415-1417 RectComponent_tests.cc CssLengthGrammarForAllRectProperties, UnitlessCssXPreservesPresentationAttribute; corpus geometry/x/css-overrides-presentation.svg, geometry/css-length-values/*; resvg (not skipped) shapes/rect/y-attribute-resolving.svg - - Audited here for rect only; svg, image and foreignObject belong to other ledgers.
prop:width partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing CSS width/height size rect (also image, foreignObject, outermost svg); value <length-percentage> | auto; auto is 0 for rect; negative is invalid and treated as auto. donner/svg/components/shape/RectComponent.cc:37-45 (ParseLengthPercentage only, no auto) donner/svg/components/shape/ShapeSystem.cc:1418-1422, :1441-1443 ShapeSystem_tests.cc RectZeroWidth, RectZeroSize, RectWithPercentageUnits; resvg (not skipped) shapes/rect/negative-width-attribute-processing.svg, zero-width-attribute-processing.svg, missing-width-attribute-processing.svg low S The keyword auto is a parse error, see val:width/auto. min-/max-width constraints are not implemented (outside this ledger). Audited for rect only.
prop:height partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing CSS width/height size rect (also image, foreignObject, outermost svg); value <length-percentage> | auto; auto is 0 for rect; negative is invalid and treated as auto. donner/svg/components/shape/RectComponent.cc:46-54 (ParseLengthPercentage only, no auto) donner/svg/components/shape/ShapeSystem.cc:1418-1422, :1441-1443 ShapeSystem_tests.cc RectZeroWidth, RectZeroSize, RectWithPercentageUnits; resvg (not skipped) shapes/rect/negative-height-attribute-processing.svg, zero-height-attribute-processing.svg, missing-height-attribute-processing.svg low S The keyword auto is a parse error, see val:height/auto. min-/max-height constraints are not implemented (outside this ledger). Audited for rect only.
prop:d partial https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TheDProperty none | <string>, initial none, applies to path, not inherited; presentation attribute and CSS property; errors in the string follow path-data error handling; no valid commands behaves as none. attribute donner/svg/components/shape/ShapeSystem.cc:406-428; CSS donner/svg/properties/PropertyParsing.cc:122-136 donner/svg/components/shape/ShapeSystem.cc:1324-1381 SVGPathElement_tests.cc PresentationAttributes; ShapeSystem_tests.cc StyleAttributeDReparses, PathEmptyD low S Attribute and CSS string form both work and CSS overrides the attribute. Gap: when the cascaded CSS d value fails to parse as none or a string, the function returns early without removing a previously computed path and without falling back to the attribute (donner/svg/components/shape/ShapeSystem.cc:1334-1337). The attribute value 'none' is fed to the path parser and produces a warning (still renders nothing).
prop:path-length missing https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthProperty New CSS property: none | <length> >= 0, initial none, applies to all seven shape elements; pathLength attribute maps to it with the number read as px. A search for 'path-length' under donner/svg and donner/css finds no property registration; only the attribute at donner/svg/parser/AttributeParser.cc:407-419 none none low S CSS cannot set or override the path length.

Geometry property values

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
val:cx/<length-percentage> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#CX Accepts a CSS length with unit or a percentage; presentation attributes additionally accept a unitless number as user units. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1263-1266 CircleEllipseComponent_tests.cc ComputedCircleComponentAppliesUnparsedProperties; resvg (not skipped) shapes/ellipse/percent-values.svg low S Units, percentages, zero and attribute user units are accepted; calc() is not (see feat:svg2/geometry-calc-values). In CSS declarations a non-zero unitless number is wrongly accepted.
val:cy/<length-percentage> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#CY Accepts a CSS length with unit or a percentage; presentation attributes additionally accept a unitless number as user units. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1263-1266 CircleEllipseComponent_tests.cc ComputedCircleComponentAppliesUnparsedProperties; resvg (not skipped) shapes/ellipse/percent-values.svg low S Units, percentages, zero and attribute user units are accepted; calc() is not (see feat:svg2/geometry-calc-values). In CSS declarations a non-zero unitless number is wrongly accepted.
val:r/<length-percentage> partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#R Accepts a CSS length with unit or a percentage; presentation attributes additionally accept a unitless number as user units. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1263-1266 CircleEllipseComponent_tests.cc ComputedCircleComponentAppliesUnparsedProperties; resvg (not skipped) shapes/ellipse/percent-values.svg low S Units, percentages, zero and attribute user units are accepted; calc() is not (see feat:svg2/geometry-calc-values). In CSS declarations a non-zero unitless number is wrongly accepted.
val:x/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#X Accepts a CSS length with unit or a percentage; presentation attributes additionally accept a unitless number as user units. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1415-1417 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; resvg (not skipped) shapes/rect/mm-values.svg, em-values.svg, percentage-values-1.svg - - Units, percentages, zero and attribute user units are accepted; calc() is not (see feat:svg2/geometry-calc-values).
val:y/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Y Accepts a CSS length with unit or a percentage; presentation attributes additionally accept a unitless number as user units. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1415-1417 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; resvg (not skipped) shapes/rect/mm-values.svg, em-values.svg, percentage-values-1.svg - - Units, percentages, zero and attribute user units are accepted; calc() is not (see feat:svg2/geometry-calc-values).
val:rx/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RX Length or percentage radius. donner/svg/parser/LengthPercentageParser.cc:5-47; PropertyParsing.cc:92-104 donner/svg/properties/RxRyProperties.cc:11-16 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; resvg (not skipped) shapes/rect/rounded-rect.svg, shapes/ellipse/percent-values.svg - - calc() not accepted, see feat:svg2/geometry-calc-values.
val:rx/auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RX auto uses the other radius; both auto gives 0 (square rect corners, ellipse not rendered). donner/svg/properties/PropertyParsing.cc:96-98 (case-insensitive auto stored as unset) donner/svg/properties/RxRyProperties.cc:19-30 SVGRectElement_tests.cc ExplicitAutoRadiiProduceSquareCorners, ExplicitAutoRadiiUseOtherAxis; SVGEllipseElement_tests.cc ExplicitAutoRadiiWithoutLengthDoNotRender; corpus geometry/automatic-radii/rect-css-auto.svg, ellipse-both-auto-zero.svg - -
val:ry/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RY Length or percentage radius. donner/svg/parser/LengthPercentageParser.cc:5-47; PropertyParsing.cc:92-104 donner/svg/properties/RxRyProperties.cc:11-16 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; resvg (not skipped) shapes/rect/rounded-rect.svg, shapes/ellipse/percent-values.svg - - calc() not accepted, see feat:svg2/geometry-calc-values.
val:ry/auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#RY auto uses the other radius; both auto gives 0 (square rect corners, ellipse not rendered). donner/svg/properties/PropertyParsing.cc:96-98 (case-insensitive auto stored as unset) donner/svg/properties/RxRyProperties.cc:19-30 SVGRectElement_tests.cc ExplicitAutoRadiiProduceSquareCorners, ExplicitAutoRadiiUseOtherAxis; SVGEllipseElement_tests.cc ExplicitAutoRadiiWithoutLengthDoNotRender; corpus geometry/automatic-radii/rect-css-auto.svg, ellipse-both-auto-zero.svg - -
val:width/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing Length or percentage (percent of viewport width) sizing a rect. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1418-1420 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; ShapeSystem_tests.cc RectWithPercentageUnits; resvg (not skipped) shapes/rect/percentage-values-2.svg - - rect only.
val:width/auto partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing auto is a valid value and is treated as 0 on rect (non-rendering). donner/svg/components/shape/RectComponent.cc:37-45: auto is rejected as an invalid length donner/svg/components/shape/ShapeSystem.cc:1422 (unset value defaults to 0) none low S As an attribute the rejected value leaves the initial value, so the result is the same. As a CSS declaration over a valid attribute the declaration is dropped and the attribute still applies, so the rect renders where the spec says it must not.
val:height/<length-percentage> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing Length or percentage (percent of viewport height) sizing a rect. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1418-1420 RectComponent_tests.cc CssLengthGrammarForAllRectProperties; ShapeSystem_tests.cc RectWithPercentageUnits; resvg (not skipped) shapes/rect/percentage-values-2.svg - - rect only.
val:height/auto partial https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#Sizing auto is a valid value and is treated as 0 on rect (non-rendering). donner/svg/components/shape/RectComponent.cc:46-54: auto is rejected as an invalid length donner/svg/components/shape/ShapeSystem.cc:1422 (unset value defaults to 0) none low S As an attribute the rejected value leaves the initial value, so the result is the same. As a CSS declaration over a valid attribute the declaration is dropped and the attribute still applies, so the rect renders where the spec says it must not.
val:d/none conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TheDProperty none means no path data: the path does not render and does not contribute to ancestor bounding boxes. donner/svg/properties/PropertyParsing.cc:123-125 (CSS none becomes an empty string) donner/svg/components/shape/ShapeSystem.cc:1357-1380 (empty result removes the computed path) none for the keyword (ShapeSystem_tests.cc PathEmptyD covers the empty string only) - -
val:d/<string> conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TheDProperty A CSS string holding path data, parsed with the path grammar. donner/svg/properties/PropertyParsing.cc:126-129 donner/svg/components/shape/ShapeSystem.cc:1326-1374 ShapeSystem_tests.cc StyleAttributeDReparses; SVGPathElement_tests.cc PresentationAttributes - - The path() function form used by some browsers is not in this CR and is not accepted.
val:path-length/none missing https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthProperty none: no author length. no implementation (see prop:path-length) none none low S
val:path-length/<length> missing https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthProperty Non-negative length; zero means infinite scale. no implementation (see prop:path-length) none none low S

Geometry property rules

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/geometry-presentation-attribute-user-units conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html Geometry properties given as presentation attributes accept unitless numbers as user units. donner/svg/properties/PropertyParsing.cc:51-67 (CreateForAttribute sets AllowUserUnits) donner/svg/parser/LengthPercentageParser.cc:5-47 SVGRectElement_tests.cc Units, PresentationAttributes; resvg (not skipped) shapes/rect/simple-case.svg - -
feat:svg2/geometry-css-declaration-requires-units divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html As CSS declarations the geometry properties follow CSS length syntax: a non-zero number without a unit is invalid. strict: donner/svg/components/shape/RectComponent.cc:90-92; lenient: CircleComponent.cc:62-64, EllipseComponent.cc:73-75 donner/svg/parser/LengthPercentageParser.cc:5-47 (allowUserUnits branch :21-23) strict side: RectComponent_tests.cc UnitlessCssXPreservesPresentationAttribute, corpus geometry/css-length-values/rect-stylesheet-unitless-invalid.svg; lenient side asserted by CircleEllipseComponent_tests.cc ComputedCircleComponentAppliesUnparsedProperties ('cx: 15') low S rect is correct; circle and ellipse (cx, cy, r, rx, ry) accept unitless CSS values.
feat:svg2/geometry-css-overrides-presentation-attribute conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html A CSS declaration of a geometry property overrides the presentation attribute. RectComponent.cc:81-98, CircleComponent.cc:53-70, EllipseComponent.cc:64-81 (cascaded unparsed properties applied over attribute values) donner/svg/components/shape/ShapeSystem.cc:326-356 corpus geometry/x/css-overrides-presentation.svg; SVGCircleElement_tests.cc ComputedValuesOverrideAttributes; SVGEllipseElement_tests.cc ComputedValuesOverrideAttributes - -
feat:svg2/geometry-calc-values missing https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html <length-percentage> includes math functions such as calc() per CSS Values. donner/svg/parser/LengthPercentageParser.cc:5-47 handles Dimension, Percentage and Number tokens only; a search for calc in donner/css, donner/svg/parser, donner/svg/properties, donner/base/parser finds nothing none none low M Cross-cutting CSS values gap; listed here because every geometry property is affected.
feat:svg2/geometry-negative-cx-cy-x-y conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#geometry-negative-values cx, cy, x, y accept negative values, which translate the shape. donner/svg/parser/LengthPercentageParser.cc:5-47 (no sign restriction) donner/svg/components/shape/ShapeSystem.cc:1263-1265, :1415-1417 resvg (not skipped) shapes/rect/x-attribute-resolving.svg; PathParser-independent; SVGCircleElement_tests.cc UpdateCoordinates - -
feat:svg2/geometry-negative-r conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#geometry-negative-values Negative r is invalid, treated as 0; the circle is not rendered; never an error state. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1268-1275 ShapeSystem_tests.cc CircleNegativeRadius; resvg (not skipped) shapes/circle/negative-r-attribute.svg; corpus shapes/circle/negative-r-ignored.svg - - Used-value behaviour matches; the stored value stays negative (see prop:r).
feat:svg2/geometry-negative-rx-ry conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#geometry-negative-values Negative rx or ry is treated as auto: resolves to the other radius, or 0 if that is auto or negative too. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/properties/RxRyProperties.cc:11-30 resvg (not skipped) shapes/rect/negative-rx-attribute-resolving.svg, negative-ry-attribute-resolving.svg, negative-rx-and-ry-attributes-resolving.svg, shapes/ellipse/negative-rx-attribute.svg, negative-ry-attribute.svg, negative-rx-and-ry-attributes.svg - -
feat:svg2/geometry-negative-width-height conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/geometry.html#geometry-negative-values Negative width or height is treated as auto, which is 0 for rect: not rendered. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/components/shape/ShapeSystem.cc:1422, :1441-1443 resvg (not skipped) shapes/rect/negative-width-attribute-processing.svg, negative-height-attribute-processing.svg; corpus shapes/rect/negative-width-ignored.svg - - rect only; svg and image are in other ledgers.
feat:svg2/geometry-percent-horizontal conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units Percentages of cx, x, rx, width (and x1, x2) refer to the current SVG viewport width. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/base/Length.h:167-170; donner/svg/components/shape/ShapeSystem.cc:248-258, :1264, :1416, :1419 ShapeSystem_tests.cc RectWithPercentageUnits; resvg (not skipped) shapes/rect/percentage-values-1.svg, shapes/line/percent-units.svg - -
feat:svg2/geometry-percent-vertical conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units Percentages of cy, y, ry, height (and y1, y2) refer to the viewport height. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/base/Length.h:171-172; donner/svg/components/shape/ShapeSystem.cc:1265, :1417, :1420 resvg (not skipped) shapes/rect/percentage-values-2.svg, shapes/ellipse/percent-values.svg - -
feat:svg2/geometry-percent-r-diagonal conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#Units Percentages of r refer to the normalized diagonal sqrt(w^2+h^2)/sqrt(2). donner/svg/parser/LengthPercentageParser.cc:5-47 donner/base/Length.h:173-175, :268-274; donner/svg/components/shape/ShapeSystem.cc:1266 none found that renders a percentage r on a non-square viewport (CircleEllipseComponent_tests.cc only parses 'r: 12') - -
feat:svg2/rect-radii-percent-reference spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement The rect algorithm resolves rx percentages against the used rect width and ry against the used height, while the rx/ry property tables say percentages refer to the viewport width/height. donner/svg/parser/LengthPercentageParser.cc:5-47 donner/svg/properties/RxRyProperties.cc:11-25 (viewport basis via the viewBox argument); donner/svg/components/shape/ShapeSystem.cc:1425-1426 resvg (not skipped) shapes/rect/percentage-values-1.svg, percentage-values-2.svg (viewport basis expected by the references) low S Donner follows the property-table (viewport) reading, as browsers and resvg do. The CR text is internally inconsistent.

Path data commands

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/path-command-M conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataMovetoCommands Absolute moveto: starts a new subpath, sets initial and current point; extra coordinate pairs are implicit absolute linetos. donner/svg/parser/PathParser.cc:394-404 donner/base/Path.cc:3430-3440 resvg (not skipped) shapes/path/M.svg, M-L.svg, M-M.svg; donner/svg/parser/tests/PathParser_tests.cc InitialMoveTo, MoveTo - -
feat:svg2/path-command-m conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataMovetoCommands Relative moveto: offset from the current point; as the first command it is absolute; extra pairs are implicit relative linetos. donner/svg/parser/PathParser.cc:375-382, :394-404 (current point starts at 0,0) donner/base/Path.cc:3430-3440 resvg (not skipped) shapes/path/M-M-rel.svg, M-rel-M.svg, M-rel-M-rel-implicit-M-rel-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc MoveTo - -
feat:svg2/path-command-Z conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataClosePathCommand Closepath: straight line to the subpath initial point, joins first and last segment, current point becomes the initial point. donner/svg/parser/PathParser.cc:405-409; donner/base/Path.cc:3508-3515 donner/base/Path.cc:3508-3515, :462-466 resvg (not skipped) shapes/path/M-L-L-Z.svg, M-Z.svg; donner/svg/parser/tests/PathParser_tests.cc ClosePath - - A second consecutive closepath is dropped by the builder (donner/base/Path.cc:3509-3511), see feat:svg2/path-closepath-repeated.
feat:svg2/path-command-z conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataClosePathCommand Identical to Z. donner/svg/parser/PathParser.cc:229-258 (case folded), :405-409 donner/base/Path.cc:3508-3515, :462-466 resvg (not skipped) shapes/path/M-L-L-Z-rel.svg; donner/svg/parser/tests/PathParser_tests.cc ClosePath - - A second consecutive closepath is dropped by the builder (donner/base/Path.cc:3509-3511), see feat:svg2/path-closepath-repeated.
feat:svg2/path-command-L conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Absolute lineto, repeated pairs draw a polyline. donner/svg/parser/PathParser.cc:411-420 donner/base/Path.cc:3442-3450 resvg (not skipped) shapes/path/M-L.svg, M-L-L-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc LineTo, LineToImplicit - -
feat:svg2/path-command-l conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Relative lineto: end point is current point plus (x,y). donner/svg/parser/PathParser.cc:411-420 donner/base/Path.cc:3442-3450 resvg (not skipped) shapes/path/M-L-L-Z-rel.svg; donner/svg/parser/tests/PathParser_tests.cc LineTo - -
feat:svg2/path-command-H conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Absolute horizontal lineto; multiple x values allowed. donner/svg/parser/PathParser.cc:422-432 donner/base/Path.cc:3442-3450 resvg (not skipped) shapes/path/M-H.svg, M-H-H.svg, M-H-H-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc HorizontalLineTo - -
feat:svg2/path-command-h conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Relative horizontal lineto: end is (cpx + x, cpy). donner/svg/parser/PathParser.cc:422-432 donner/base/Path.cc:3442-3450 donner/svg/parser/tests/PathParser_tests.cc HorizontalLineTo, EllipticalArc ('h-150') - -
feat:svg2/path-command-V conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Absolute vertical lineto; multiple y values allowed. donner/svg/parser/PathParser.cc:434-444 donner/base/Path.cc:3442-3450 resvg (not skipped) shapes/path/M-V.svg, M-V-V.svg, M-V-V-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc VerticalLineTo - -
feat:svg2/path-command-v conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataLinetoCommands Relative vertical lineto: end is (cpx, cpy + y). donner/svg/parser/PathParser.cc:434-444 donner/base/Path.cc:3442-3450 donner/svg/parser/tests/PathParser_tests.cc VerticalLineTo, EllipticalArc ('v-150') - -
feat:svg2/path-command-C conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataCubicBezierCommands Absolute cubic Bezier (x1 y1 x2 y2 x y)+. donner/svg/parser/PathParser.cc:446-462 donner/base/Path.cc:3463-3473 resvg (not skipped) shapes/path/M-C.svg, M-C-S.svg; donner/svg/parser/tests/PathParser_tests.cc CurveTo - -
feat:svg2/path-command-c conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataCubicBezierCommands Relative cubic: every pair is relative to the current point at the start of the command. donner/svg/parser/PathParser.cc:446-462 donner/base/Path.cc:3463-3473 resvg (not skipped) painting/stroke-linejoin/bevel.svg, miter.svg (relative c path data); donner/svg/parser/tests/PathParser_tests.cc CommandListPreservesAuthoredParametersAndImplicitCommands (syntax only) - -
feat:svg2/path-command-S conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataCubicBezierCommands Smooth cubic: first control point is the reflection of the previous C/c/S/s second control point, else the current point. donner/svg/parser/PathParser.cc:464-480, :566-573 donner/base/Path.cc:3463-3473 resvg (not skipped) shapes/path/M-S.svg, M-S-S.svg, M-C-S.svg, M-T-S.svg; donner/svg/parser/tests/PathParser_tests.cc CurveTo - -
feat:svg2/path-command-s conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataCubicBezierCommands Relative smooth cubic. donner/svg/parser/PathParser.cc:464-480 donner/base/Path.cc:3463-3473 resvg (not skipped) shapes/path/M-T-S-rel.svg, M-A-s.svg - -
feat:svg2/path-command-Q conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataQuadraticBezierCommands Absolute quadratic Bezier (x1 y1 x y)+. donner/svg/parser/PathParser.cc:481-496 donner/base/Path.cc:3452-3461 resvg (not skipped) shapes/path/M-Q.svg, M-Q-T.svg; donner/svg/parser/tests/PathParser_tests.cc QuadCurveTo - -
feat:svg2/path-command-q conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataQuadraticBezierCommands Relative quadratic. donner/svg/parser/PathParser.cc:481-496 donner/base/Path.cc:3452-3461 resvg (not skipped) shapes/path/M-Q-rel-T-rel.svg, M-T-Q-rel.svg - -
feat:svg2/path-command-T conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataQuadraticBezierCommands Smooth quadratic: control point is the reflection of the previous Q/q/T/t control point, else the current point. donner/svg/parser/PathParser.cc:498-511, :575-577 donner/base/Path.cc:3452-3461 resvg (not skipped) shapes/path/M-T.svg, M-T-T.svg, M-Q-T.svg, M-T-Q.svg; donner/svg/parser/tests/PathParser_tests.cc QuadCurveTo - -
feat:svg2/path-command-t conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataQuadraticBezierCommands Relative smooth quadratic. donner/svg/parser/PathParser.cc:498-511 donner/base/Path.cc:3452-3461 resvg (not skipped) shapes/path/M-Q-T-rel.svg, M-T-T-rel.svg, M-A-t.svg - -
feat:svg2/path-command-A conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataEllipticalArcCommands Absolute elliptical arc (rx ry x-axis-rotation large-arc-flag sweep-flag x y)+; flags choose among the four candidate arcs. donner/svg/parser/PathParser.cc:512-543; donner/base/Path.cc:3475-3506 donner/base/Path.cc:3342-3390, :3475-3506 resvg (not skipped) shapes/path/A.svg, M-A.svg, M-L-Z-A.svg; donner/svg/parser/tests/PathParser_tests.cc EllipticalArc - - Arcs are converted to cubic Beziers at build time (at most 8 segments per arc); the arc is not retained as a primitive.
feat:svg2/path-command-a conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataEllipticalArcCommands Relative arc: only the end point is relative. donner/svg/parser/PathParser.cc:537-540 donner/base/Path.cc:3342-3390, :3475-3506 resvg (not skipped) shapes/path/M-A-trimmed.svg; donner/svg/parser/tests/PathParser_tests.cc EllipticalArc - - Arcs are converted to cubic Beziers at build time (at most 8 segments per arc); the arc is not retained as a primitive.

Path data command rules

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/path-implicit-lineto-after-moveto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataMovetoCommands Extra coordinate pairs after a moveto are implicit linetos with the same absolute/relative mode. donner/svg/parser/PathParser.cc:334-349 donner/base/Path.cc:3442-3450 resvg (not skipped) shapes/path/M-M-implicit-M-implicit.svg, M-rel-M-rel-implicit-M-rel-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc MoveTo - -
feat:svg2/path-first-relative-moveto-is-absolute conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataMovetoCommands A leading m is treated as absolute, later implicit pairs stay relative. donner/svg/parser/PathParser.cc:375-382, :587-588 (current point initialised to origin) donner/base/Path.cc:3430-3440 resvg (not skipped) shapes/path/M-rel-M.svg; donner/svg/parser/tests/PathParser_tests.cc MoveTo - -
feat:svg2/path-command-repetition conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataGeneralInformation A command letter may be omitted when the same command repeats; each parameter group is one more command. donner/svg/parser/PathParser.cc:334-373 same resvg (not skipped) shapes/path/M-L-L-implicit.svg, M-H-H-implicit.svg, M-V-V-implicit.svg; donner/svg/parser/tests/PathParser_tests.cc LineToImplicit, CommandListPreservesAuthoredParametersAndImplicitCommands - - Applies to every parameterised command including C, S, Q, T, A via the shared loop.
feat:svg2/path-relative-coordinates-per-command conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataGeneralInformation For relative commands all coordinates are relative to the current point at the start of the command. donner/svg/parser/PathParser.cc:375-382 (current point updated only after each command) same resvg (not skipped) shapes/path/M-Q-rel-T-rel.svg, M-T-S-rel.svg, painting/stroke-linejoin/bevel.svg (two relative c commands) - -
feat:svg2/path-closepath-next-subpath-start conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataClosePathCommand After closepath, a following non-moveto command starts a new subpath at the same initial point. donner/svg/parser/PathParser.cc:405-409 donner/base/Path.cc:3627-3631 (ensureMoveTo re-emits the last moveto point) resvg (not skipped) shapes/path/M-L-Z-L-L.svg, M-L-Z-A.svg; donner/svg/parser/tests/PathParser_tests.cc ClosePath - -
feat:svg2/path-closepath-repeated divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataClosePathCommand Each closepath is a command; a second closepath closes a new (zero-length) subpath at the same initial point, which matters for markers and caps. donner/svg/parser/PathParser.cc:405-409 donner/base/Path.cc:3508-3515 (closePath with no open subpath is a no-op) donner/svg/parser/tests/PathParser_tests.cc ConsecutiveClosePath asserts the drop low S Only observable through markers or round/square caps on 'M x y L .. Z Z'.
feat:svg2/path-closed-vs-open-subpath conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermClosedSubpath A subpath is closed only by closepath (joined); a subpath that merely returns to its start is open (capped). donner/svg/parser/PathParser.cc:405-409 donner/base/Path.cc:3512 (explicit ClosePath verb kept in the path) resvg (not skipped) painting/stroke-linejoin/*, shapes/path/M-L-L-Z.svg; Path_tests.cc ClosePath - - Join and cap rendering belongs to painting_properties.md; here only the retention of the closed flag is verified.
feat:svg2/path-reflected-control-point conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ReflectedControlPoints Reflection is (2*cur - previous control); used only when the previous command is of the same curve family. donner/svg/parser/PathParser.cc:566-577, :461, :479, :495, :510 same resvg (not skipped) shapes/path/M-C-S.svg, M-S.svg, M-T-S.svg, M-Q-T.svg, M-T.svg, M-T-Q.svg, M-A-s.svg, M-A-t.svg; donner/svg/parser/tests/PathParser_tests.cc CurveTo, QuadCurveTo - -
feat:svg2/path-closepath-segment-completing not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataClosePathCommand Segment-completing closepath (closepath supplying the missing end coordinates of the previous command). n/a n/a none - - Not present in this CR: the paths chapter contains no segment-completing text and the grammar has no such production (a search for 'segment-completing' and 'segment completing' finds nothing). Donner does not implement it either.

Path data grammar

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/path-grammar-first-command-moveto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF Non-empty path data must begin with a moveto. donner/svg/parser/PathParser.cc:97-112 same donner/svg/parser/tests/PathParser_tests.cc InvalidInitialCommand, RangeInvalidInitialCommand - -
feat:svg2/path-grammar-empty-string conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF An empty (or whitespace-only) path data string is valid and disables rendering. donner/svg/parser/PathParser.cc:91-95 donner/svg/components/shape/ShapeSystem.cc:1364-1380 donner/svg/parser/tests/PathParser_tests.cc Empty; ShapeSystem_tests.cc PathEmptyD; resvg (not skipped) shapes/path/empty.svg - -
feat:svg2/path-grammar-wsp conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF wsp is tab, space, LF, FF, CR. donner/svg/parser/PathParser.cc:208-216 same donner/svg/parser/tests/PathParser_tests.cc InitialMoveTo ('M0
,\t0'); resvg (not skipped) shapes/path/extra-spaces.svg, multi-line-data.svg, numeric-character-references.svg
- -
feat:svg2/path-grammar-comma-wsp conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF At most one comma, with optional whitespace, between arguments; no comma directly after a command letter, before a command, or at the end. donner/svg/parser/PathParser.cc:193-206, :351-369, :292-307 same donner/svg/parser/tests/PathParser_tests.cc ParseErrors, ClosePathParseErrors, RangeTrailingComma, EllipticalArcParsing - -
feat:svg2/path-grammar-number-forms conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF number is digits with optional fraction, or a fraction starting with '.'; only '.' is a decimal separator. donner/base/parser/NumberParser.cc:261-295 donner/svg/parser/PathParser.cc:273-290 donner/svg/parser/tests/PathParser_tests.cc InitialMoveTo, NoWhitespace ('5.5.3', '-.1'); donner/base/parser/tests/NumberParser_tests.cc - -
feat:svg2/path-grammar-exponent conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF Optional exponent e/E with optional sign and at least one digit. donner/base/parser/NumberParser.cc:297-338 donner/svg/parser/PathParser.cc:273-290 donner/svg/parser/tests/PathParser_tests.cc InitialMoveTo ('M 0 1e2'); NumberParser_tests.cc - - An out-of-range exponent that overflows to infinity is a parse error (forbidOutOfRange default, donner/base/parser/NumberParser.h:35), which stops the path at that command.
feat:svg2/path-grammar-sign conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF coordinate is an optional + or - followed by a number. donner/base/parser/NumberParser.cc:213-244 donner/svg/parser/PathParser.cc:273-290 donner/svg/parser/tests/PathParser_tests.cc NoWhitespace ('M-5-5'), InitialMoveTo - -
feat:svg2/path-grammar-missing-separators conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF Maximal munch: 'M 100-200' and 'M 0.6.5' split into two numbers without separators; command letters need no surrounding space. donner/base/parser/NumberParser.cc:273-288 (second '.' and a following sign end the number) donner/svg/parser/PathParser.cc:334-336 donner/svg/parser/tests/PathParser_tests.cc NoWhitespace ('M10-20A5.5.3-4 110-.1', 'M10 20V30H40V50H60Z') - -
feat:svg2/path-grammar-trailing-decimal-point conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF A number with a trailing decimal point and no fraction digits (e.g. '23.') is not in the grammar; user agents may still accept it when unambiguous. donner/base/parser/NumberParser.cc:273-288 ('.' is consumed only when a digit follows) donner/svg/parser/PathParser.cc:334-341 (the stray '.' then fails as the next argument) none for path data - - Donner takes the strict reading: 'M 10. 20' renders nothing and reports an error. Allowed by the CR; lenient acceptance would be a compatibility choice.
feat:svg2/path-grammar-arc-flags conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF Arc flags are a single '0' or '1' character and need no separator before, between or after them; any other value is an error. donner/svg/parser/PathParser.cc:309-332, :519-530 same donner/svg/parser/tests/PathParser_tests.cc EllipticalArcParsing, RangeInvalidFlag, RangeEndOfStringFlag, NoWhitespace; resvg (not skipped) shapes/path/no-commawsp-between-arc-flags.svg, no-commawsp-after-sweep-flag.svg, no-commawsp-before-arc-flags.svg, no-commawsp-between-and-after-arc-flags.svg, negative-large-arc-flag-value.svg, out-of-range-sweep-flag-value.svg, out-of-range-large-arc-flag-value.svg, negative-sweep-flag-value.svg - -
feat:svg2/path-grammar-arc-number-sign spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF The elliptical_arc_argument production uses unsigned 'number' for rx, ry and x-axis-rotation, yet the prose requires negative radii to be made positive and the CR's own example uses a negative rotation. donner/svg/parser/PathParser.cc:514-517 (signed numbers accepted for all three) donner/base/Path.cc:3228 (absolute value of radii) donner/svg/parser/tests/PathParser_tests.cc EllipticalArtOutOfRangeRadii ('A-150,150') low - Donner follows the prose and the examples. This is a grammar inconsistency in the CR.
feat:svg2/path-implementation-limits conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataBNF The grammar sets no limit on path size. donner/svg/parser/PathParser.h:231-262 (128k commands, 256k points) donner/svg/parser/PathParser.cc:385-390, :552-557 donner/svg/parser/tests/PathParser_tests.cc CommandListCapsCommandsBeforeAppending (command list only) - - Paths beyond the limits render up to the limit and report an error; a deliberate resource bound, not a grammar deviation.

Path data error handling

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/path-error-render-up-to-error conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataErrorHandling On an error, render the path up to but not including the command containing the first error. donner/svg/parser/PathParser.cc:101-131 (partial result returned with the error) donner/svg/components/shape/ShapeSystem.cc:1357-1375 (partial path rendered when non-empty) donner/svg/parser/tests/PathParser_tests.cc ParseErrors, LineToPartialParse; ShapeSystem_tests.cc MalformedPathDataReportsDiagnosticOnEveryPass; resvg (not skipped) shapes/path/invalid-data-in-L.svg - -
feat:svg2/path-error-partial-compound-command conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataErrorHandling Within a repeated command, keep every complete segment before the faulty parameter group ('M 10,10 L 20,20,30' draws the first line). donner/svg/parser/PathParser.cc:334-341, :413-420 donner/base/Path.cc:3442-3450 donner/svg/parser/tests/PathParser_tests.cc LineToPartialParse, CurveTo ('C100'), QuadCurveTo; resvg (not skipped) shapes/path/missing-coordinate-in-L.svg - -
feat:svg2/path-error-reporting conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataErrorHandling Errors should be reported to the user where possible. donner/svg/parser/PathParser.cc:263-267 and other diagnostics with source ranges donner/svg/components/shape/ShapeSystem.cc:1358-1362 (warning sink) ShapeSystem_tests.cc MalformedPathDataReportsDiagnosticOnEveryPass; donner/svg/parser/tests/PathParser_tests.cc Range* tests - -
feat:svg2/path-no-valid-commands-is-none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TheDProperty Path data with no valid commands behaves like d: none. donner/svg/parser/PathParser.cc:101-112 donner/svg/components/shape/ShapeSystem.cc:1364, :1378-1380 donner/svg/parser/tests/PathParser_tests.cc InvalidInitialCommand; ShapeSystem_tests.cc PathEmptyD - -
feat:svg2/path-moveto-only conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataMovetoCommands A path consisting only of movetos draws no segments. donner/svg/parser/PathParser.cc:394-404 donner/svg/components/shape/ShapeSystem.cc:1364-1374 (non-empty command list kept) ShapeSystem_tests.cc PathOnlyMoveTo, PathMultipleMoveTo; resvg (not skipped) shapes/path/M.svg, M-M.svg - -

Elliptical arc out-of-range parameters

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/arc-identical-endpoints conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ArcOutOfRangeParameters If the arc end point equals the current point the segment is omitted entirely. donner/svg/parser/PathParser.cc:542 donner/base/Path.cc:3218-3220, :3481-3483 none found asserting the omission (ShapeSystem_tests.cc Arc360Degrees and ArcVerySmall exercise nearby cases) - - Equality uses a squared-distance epsilon of 1e-14, so end points closer than about 1e-7 user units are also dropped.
feat:svg2/arc-zero-radius conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ArcOutOfRangeParameters If rx or ry is 0 the arc becomes a straight line to the end point. donner/svg/parser/PathParser.cc:542 donner/base/Path.cc:3221-3223, :3484-3487 donner/svg/parser/tests/PathParser_tests.cc EllipticalArtOutOfRangeRadii ('A150,0'); ShapeSystem_tests.cc ArcZeroRadius - -
feat:svg2/arc-negative-radius conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ArcOutOfRangeParameters Negative radii use their absolute value. donner/svg/parser/PathParser.cc:514-517 donner/base/Path.cc:3228 donner/svg/parser/tests/PathParser_tests.cc EllipticalArtOutOfRangeRadii ('A-150,150') - -
feat:svg2/arc-radii-scaling conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ArcOutOfRangeParameters If the ellipse cannot span the end points, scale both radii uniformly until exactly one solution exists. donner/svg/parser/PathParser.cc:542 donner/base/Path.cc:3229-3236 donner/svg/parser/tests/PathParser_tests.cc EllipticalArtOutOfRangeRadii ('A50,50'); resvg (not skipped) shapes/path/M-A-trimmed.svg - -
feat:svg2/arc-flags-semantics conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataEllipticalArcCommands large-arc-flag picks the sweep of at least or at most 180 degrees; sweep-flag picks the positive-angle direction. donner/svg/parser/PathParser.cc:519-530 donner/base/Path.cc:3251-3253, :3296-3312 donner/svg/parser/tests/PathParser_tests.cc EllipticalArc; resvg (not skipped) shapes/path/A.svg, M-A.svg - -
feat:svg2/arc-x-axis-rotation conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDataEllipticalArcCommands x-axis-rotation is in degrees and rotates the ellipse relative to the current coordinate system. donner/svg/parser/PathParser.cc:539 donner/base/Path.cc:3266-3269, :3382-3384 resvg (not skipped) shapes/path/A.svg; donner/svg/parser/tests/PathParser_tests.cc NoWhitespace - -
feat:svg2/arc-non-finite-parameters conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ArcOutOfRangeParameters Arbitrary numeric values are permitted for the non-flag arc parameters. donner/svg/parser/PathParser.cc:514-543 donner/base/Path.cc:3214-3217, :3351-3361 (non-finite intermediate results degrade to a line) donner/base/tests/Path_fuzzer.cc only - - Degenerate arithmetic falls back to a straight line rather than dropping the segment.

Zero-length segments and subpaths

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/zero-length-segments-valid conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ZeroLengthSegments Zero-length path segments are not invalid and are kept. donner/svg/parser/PathParser.cc:411-420 donner/base/Path.cc:3442-3450 (no deduplication of coincident points) ShapeSystem_tests.cc PolylineDuplicateConsecutivePoints; SVGLineElement_tests.cc ComputedSplineDegenerate; Path_tests.cc PointAtArcLengthZeroLengthSegments - -
feat:svg2/zero-length-subpath-caps conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html#StrokeLinecapProperty Round and square caps are painted for zero-length subpaths (open or closed); butt paints nothing. donner/svg/parser/PathParser.cc:405-420 (the 'M x y Z' and 'M x y L x y' forms survive parsing) donner/base/Path.cc:2606, :2708 (EmitZeroLengthStroke) resvg (not skipped) painting/stroke-linecap/zero-length-path-with-round.svg, zero-length-path-with-square.svg, zero-length-path-with-butt.svg - - Geometry side verified here; cap shape details are audited in painting_properties.md.
feat:svg2/zero-length-segment-markers partial https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#ZeroLengthSegments A marker is drawn at every vertex, including end points of zero-length segments and consecutive moveto commands. donner/svg/parser/PathParser.cc:394-404 donner/base/Path.cc:1425-1568 (vertex per segment; a moveto directly followed by another moveto yields no vertex, :1452) resvg (not skipped) painting/marker/* (category at resvg_test_suite.cc:893) low S Zero-length segments get vertices. A moveto immediately followed by another moveto contributes no vertex (by code reading). Marker rendering itself belongs to paint_servers_markers_images.md.

Path directionality

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/path-direction-at-distance conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermPathDirection Direction at a distance: start of first segment at 0, end of last at total length, start of the later segment at a boundary (skipping zero-length ones), curve tangent in the interior. n/a donner/base/Path.cc:656-724 (BoundarySide::Outgoing skips zero-length neighbours) Path_tests.cc PointAtArcLengthAtZero, PointAtArcLengthAtEnd, PointAtArcLengthCrossesSegments, PointAtArcLengthZeroLengthSegments, PointAtArcLengthCurveStartAndEnd - - The zero-length boundary scan is capped at 64 segments.
feat:svg2/path-direction-segment-start conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermPathSegmentStartDirection Start direction of a zero-length segment comes from the end of the closest preceding non-zero segment, or from its own end direction if none precedes. n/a donner/base/Path.cc:1334-1378, :1521-1554 resvg (not skipped) painting/marker/* orientation cases exercise this indirectly; no unit test names the rule - - Verified for a single zero-length segment between non-zero ones; runs of two or more zero-length segments in the middle of a path interpolate with a zero vector and were not traced further (unverified).
feat:svg2/path-direction-segment-end conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermPathSegmentEndDirection End direction of a zero-length segment comes from the start of the closest following non-zero segment, or from its own start direction if none follows. n/a donner/base/Path.cc:1381-1421, :1535-1547 (forward walk for a degenerate first segment) indirect via resvg (not skipped) painting/marker/* - - Same caveat as the start-direction row.
feat:svg2/path-direction-zero-length-path conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermPathSegmentStartDirection If the whole path has zero length the direction is the positive x axis. n/a donner/base/Path.cc:1535-1548 (zero tangent kept, which maps to angle 0) indirect: resvg (not skipped) painting/stroke-linecap/zero-length-path-with-square.svg - -
feat:svg2/path-direction-cusp conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#TermPathDirection At a discontinuity the direction should lie between the incoming and outgoing directions. n/a donner/base/Path.cc:1304-1331 (bisector; perpendicular chosen for exactly opposite tangents) indirect via resvg (not skipped) painting/marker/* - -
feat:svg2/marker-orientation-data conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathDirectionality Vertex list with incoming/outgoing directions is available for marker orientation; start uses the outgoing and end the incoming direction. n/a donner/base/Path.cc:1425-1568 resvg (not skipped) painting/marker/* - - Marker placement and rendering are audited in paint_servers_markers_images.md.

Distance along a path and pathLength

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/distance-along-path conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#DistanceAlongAPath The user agent computes distance along the geometry as precisely as possible; movetos have zero length, closepath lines count. n/a donner/base/Path.cc:426-468, :597-599 (adaptive cubic subdivision, tolerance 0.001) Path_tests.cc PathLengthSingleLine, PathLengthMultipleLines, PathLengthClosePath, PathLengthQuadratic, PathLengthCubic - -
feat:svg2/pathLength-scales-dasharray conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html#StrokeDashing Dash and gap lengths are interpreted relative to pathLength. donner/svg/parser/AttributeParser.cc:407-419 donner/svg/renderer/RendererDriver.cc:883-891; donner/base/Path.cc:2816-2822 RendererRegression_tests.cc:2963 (dashed pathLength path); no resvg or corpus case - - One scale for the whole path, also for multi-subpath paths.
feat:svg2/pathLength-scales-dashoffset conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/painting.html#StrokeDashing stroke-dashoffset is interpreted relative to pathLength. same donner/svg/renderer/RendererDriver.cc:891; donner/svg/renderer/RendererTinySkia.cc:2391; donner/base/Path.cc:2821 none found that combines pathLength with a non-zero dash offset - -
feat:svg2/pathLength-scales-textPath-startOffset missing https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute pathLength scales text-on-a-path positioning (non-percentage startOffset). donner/svg/parser/AttributeParser.cc:407-419 donner/svg/components/text/TextSystem.cc:133-160 never reads PathLengthComponent none low S Text layout itself belongs to text_layout.md.
feat:svg2/pathLength-scales-motion not-applicable https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute pathLength potentially affects motion animation distances. n/a donner/svg/components/animation/AnimationMotion.cc:177-210 (keyPoints are fractions of the measured length) none - - Motion progress is expressed as a fraction of total length, so an author length has nothing to scale; no absolute distance input exists in animateMotion.
feat:svg2/pathLength-zero divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute pathLength 0 is valid and means an infinite scale: zero distances stay zero, positive ones become infinite. donner/svg/parser/AttributeParser.cc:410-411 (0 stored) donner/svg/renderer/RendererDriver.cc:884-885; donner/svg/renderer/RendererTinySkia.cc:2372; donner/base/Path.cc:2816 (0 treated as absent) none low S Dashes render at their unscaled length instead of as an unbroken first dash.
feat:svg2/pathLength-negative conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute A negative pathLength is an error (attribute ignored). donner/svg/parser/AttributeParser.cc:410-411 (stored) consumers require > 0 (RendererDriver.cc:884-885) none - -
feat:svg2/pathLength-percentage-unaffected spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/paths.html#PathLengthAttribute pathLength has no effect on percentage distance-along-a-path calculations. n/a donner/svg/renderer/RendererDriver.cc:838-843 then :883-891 (percentage dash values are converted to user units first and then scaled); textPath percent offsets are unscaled (TextSystem.cc:155-156) none low - Percentages are unaffected only in part: that holds for textPath percentages, but percentage dash lengths are scaled like any other dash value. Whether the rule covers dash percentages (which refer to the viewport, not the path) is unclear in the CR.

Equivalent paths of basic shapes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/equiv-path-rect-sharp conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Sharp rect: M x,y; H x+w; V y+h; H x; V y; Z (clockwise from the top-left). n/a donner/base/Path.cc:3517-3524; donner/svg/components/shape/ShapeSystem.cc:1433-1437 Path_tests.cc AddRect; SVGRectElement_tests.cc Spline; ShapeSystem_tests.cc RectComputedPath - - Same outline, start point and direction. Donner emits three linetos and lets the closepath draw the left edge, where the CR lists four linetos plus a zero-length closepath; only vertex-marker counts can differ (see paint_servers_markers_images.md).
feat:svg2/equiv-path-rect-rounded conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Rounded rect starts at (x+rx, y), runs clockwise, alternating linetos and quarter elliptical arcs, then closepath. n/a donner/base/Path.cc:3526-3556 SVGRectElement_tests.cc SplineRoundedCorners; ShapeSystem_tests.cc RectRoundedCorners; resvg (not skipped) shapes/rect/rounded-rect.svg - - Each quarter arc is one cubic Bezier with the 0.5523 constant (radial error about 0.03 percent) instead of an exact arc; path length and dash phase differ negligibly. This is an approximation note.
feat:svg2/rect-radii-step-both-auto conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 1: both rx and ry auto gives used radii 0 (square corners). PropertyParsing.cc:96-98 donner/svg/components/shape/ShapeSystem.cc:1423, :1433-1437 SVGRectElement_tests.cc ExplicitAutoRadiiProduceSquareCorners; corpus geometry/automatic-radii/rect-both-auto.svg - -
feat:svg2/rect-radii-step-rx-only conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 2a: rx set and ry auto: ry takes the absolute rx. RectComponent.cc:55-74 donner/svg/properties/RxRyProperties.cc:19-26; RectComponent.h:64-68 resvg (not skipped) shapes/rect/rx-attribute-resolving.svg; corpus geometry/automatic-radii/rect-ry-auto.svg - -
feat:svg2/rect-radii-step-ry-only conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 2b: ry set and rx auto: rx takes the absolute ry. RectComponent.cc:55-74 donner/svg/properties/RxRyProperties.cc:19-26; RectComponent.h:50-54 resvg (not skipped) shapes/rect/ry-attribute-resolving.svg; corpus geometry/automatic-radii/rect-rx-auto.svg - -
feat:svg2/rect-radii-step-both-set conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 2c: both set: each resolved independently. RectComponent.cc:55-74 donner/svg/properties/RxRyProperties.cc:11-16 resvg (not skipped) shapes/rect/rounded-rect.svg, rx-and-ry-attributes-clamping-order.svg - - Percentage basis: see feat:svg2/rect-radii-percent-reference.
feat:svg2/rect-radii-step-clamp-rx conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 3: rx above half the used width is set to half the width (after the auto substitution). n/a donner/svg/components/shape/ShapeSystem.cc:1425; donner/base/Path.cc:3528 ShapeSystem_tests.cc RectRadiusClamped; resvg (not skipped) shapes/rect/rx-attribute-clamping.svg, rx-and-ry-attributes-clamping-order.svg - -
feat:svg2/rect-radii-step-clamp-ry conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Step 3: ry above half the used height is set to half the height. n/a donner/svg/components/shape/ShapeSystem.cc:1426; donner/base/Path.cc:3529 resvg (not skipped) shapes/rect/ry-attribute-clamping.svg - -
feat:svg2/rect-one-zero-radius spec-ambiguity https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement Prose: a zero radius in either dimension gives a rect without rounding. The literal path steps with one zero radius skip the arcs but still offset the lines by the non-zero radius. n/a donner/base/Path.cc:3531-3533 (falls back to the sharp rect) resvg (not skipped) shapes/rect/zero-rx-attribute-resolving.svg, zero-ry-attribute-resolving.svg low - Donner follows the prose.
feat:svg2/equiv-path-circle conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#CircleElement Four quarter arcs starting at (cx+r, cy), clockwise through (cx, cy+r), (cx-r, cy), (cx, cy-r), then closepath. n/a donner/base/Path.cc:3558-3581; donner/svg/components/shape/ShapeSystem.cc:1268-1271 Path_tests.cc AddCircle; ShapeSystem_tests.cc CircleComputedPath; resvg (not skipped) shapes/circle/simple-case.svg - - Quarter arcs are single cubics (same approximation note as the rounded rect).
feat:svg2/equiv-path-ellipse conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#EllipseElement Four quarter arcs starting at (cx+rx, cy), clockwise, then closepath. n/a donner/base/Path.cc:3558-3577; donner/svg/components/shape/ShapeSystem.cc:1296-1299 Path_tests.cc AddEllipse; ShapeSystem_tests.cc EllipseComputedPath; resvg (not skipped) shapes/ellipse/simple-case.svg - -
feat:svg2/equiv-path-line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElement M x1,y1 L x2,y2. n/a donner/svg/components/shape/ShapeSystem.cc:1312-1318 SVGLineElement_tests.cc ComputedSpline, ComputedSplineDefaults; ShapeSystem_tests.cc LineComputedPath - -
feat:svg2/equiv-path-polyline conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElement M first point, L each following point, left open. n/a donner/svg/components/shape/ShapeSystem.cc:1386-1394 ShapeSystem_tests.cc PolylineComputedPath, PolylineIsNotClosed - -
feat:svg2/equiv-path-polygon conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolygonElement M first point, L each following point, closepath. n/a donner/svg/components/shape/ShapeSystem.cc:1386-1398 ShapeSystem_tests.cc PolygonComputedPath, PolygonIsClosed - -

Shape error and non-rendering conditions

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/rect-zero-size-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#RectElement A computed width or height of zero disables rendering. RectComponent.cc:37-54 donner/svg/components/shape/ShapeSystem.cc:1422, :1441-1443 SVGRectElement_tests.cc ZeroSizedRectHasNoComputedSpline; ShapeSystem_tests.cc RectZeroWidth, RectZeroSize; corpus shapes/rect/zero-width-no-render.svg; resvg (not skipped) shapes/rect/zero-width-attribute-processing.svg - -
feat:svg2/circle-zero-radius-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#CircleElement A computed r of zero disables rendering. CircleComponent.cc:38-46 donner/svg/components/shape/ShapeSystem.cc:1268-1275 ShapeSystem_tests.cc CircleZeroRadius, CircleZeroRadiusProducesNoPath; resvg (not skipped) shapes/circle/missing-r-attribute.svg - -
feat:svg2/ellipse-zero-or-auto-radii-not-rendered conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#EllipseElement A zero radius in either dimension, or auto for both, disables rendering; a single auto radius copies the other without clamping. EllipseComponent.cc:38-57 donner/svg/components/shape/ShapeSystem.cc:1293-1303 ShapeSystem_tests.cc EllipseZeroRadii, EllipseOneZeroRadius, EllipseOtherZeroRadius; corpus shapes/ellipse/zero-radius-no-render.svg, geometry/automatic-radii/ellipse-*.svg; resvg (not skipped) shapes/ellipse/missing-rx-attribute.svg, missing-ry-attribute.svg, percent-values-missing-ry.svg - -
feat:svg2/points-odd-coordinate-count conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElementPointsAttribute With an odd number of coordinates the last one is dropped and the rest renders. PointsListParser.cc:49-61, :68-70 AttributeParser.cc:1586-1594, :1609-1617 PointsListParser_tests.cc ParseErrors; resvg (not skipped) shapes/polyline/ignore-odd-points.svg, shapes/polygon/ignore-odd-points.svg - -
feat:svg2/points-initial-none conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElementPointsAttribute Without points the element is valid and renders nothing. PointsListParser.cc:27-29 donner/svg/components/shape/ShapeSystem.cc:1386-1400 (empty path) PointsListParser_tests.cc Empty; resvg (not skipped) shapes/polyline/missing-points-attribute.svg, shapes/polygon/missing-points-attribute.svg - -
feat:svg2/points-grammar conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#DataTypePoints Numbers separated by whitespace and/or single commas; signs and exponents as for numbers. PointsListParser.cc:26-65 same PointsListParser_tests.cc OnePoint, NoSpaces - - Form feed is not accepted as whitespace (ParserBase whitespace set); negligible.
feat:svg2/points-error-renders-prefix divergent https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElementPointsAttribute Errors in points behave like path data errors: the valid prefix renders. PointsListParser.cc:41-46 (error returned without the collected points) AttributeParser.cc:1591-1594 (no result, points never set) PointsListParser_tests.cc ParseErrors covers other error shapes; the doubled-comma-between-points case is untested; resvg (not skipped) shapes/polyline/stop-processing-on-invalid-data.svg passes low S Only the 'x,y,,x,y' form loses the prefix.
feat:svg2/line-never-filled conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#LineElement A line has no interior and is never filled. n/a donner/svg/components/shape/ShapeSystem.cc:1317 (single open segment) corpus shapes/line/never-filled.svg - -
feat:svg2/shape-single-point-polyline conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/shapes.html#PolylineElement A single coordinate pair yields a moveto-only path with nothing to draw. PointsListParser.cc:49-61 donner/svg/components/shape/ShapeSystem.cc:1388-1400 resvg (not skipped) shapes/polyline/not-enough-points.svg, shapes/polygon/not-enough-points.svg - -

Bounding boxes of shapes

Key Class Spec anchor Requirement (paraphrase) Parse evidence Consume evidence Tests Impact Size Notes
feat:svg2/bbox-path conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Tight box of the path geometry including curve extrema, excluding off-curve control points. n/a donner/base/Path.cc:36-78 (quadratic and cubic extrema); donner/svg/components/shape/ShapeSystem.cc:1236-1249 Path_tests.cc BoundsLinePath, BoundsCurvePath, BoundsQuadPath, CubicBoundsPreserveEndpointTolerance; SVGPathElement_tests.cc WorldBounds - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-rect conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box x, y, width, height. n/a donner/base/Path.cc:36-78 over donner/base/Path.cc:3517-3556; donner/svg/components/shape/ShapeSystem.cc:1236-1249 ShapeSystem_tests.cc GetShapeBounds - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-circle conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box cx-r .. cx+r, cy-r .. cy+r. n/a donner/base/Path.cc:62-71 over :3558-3581 (cubic end points sit on the four extrema); donner/svg/components/shape/ShapeSystem.cc:1236-1249 none asserting circle bounds directly - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-ellipse conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box cx-rx .. cx+rx, cy-ry .. cy+ry. n/a donner/base/Path.cc:62-71 over :3558-3577; donner/svg/components/shape/ShapeSystem.cc:1236-1249 none specific to ellipse bounds - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-line conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box of the two end points (may have zero width or height). n/a donner/base/Path.cc:45-46; donner/svg/components/shape/ShapeSystem.cc:1236-1249 Path_tests.cc BoundsLinePath - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-polyline conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box of all points. n/a donner/base/Path.cc:45-46; donner/svg/components/shape/ShapeSystem.cc:1236-1249 ShapeSystem_tests.cc GetShapeBoundsGroupChildren (generic) - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-polygon conformant-untested https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes Box of all points. n/a donner/base/Path.cc:45-46; donner/svg/components/shape/ShapeSystem.cc:1236-1249 ShapeSystem_tests.cc GetShapeBoundsGroupChildren (generic) - - Transformed bounds are computed on the transformed geometry, not by transforming the local box (donner/base/Path.cc:91-137).
feat:svg2/bbox-zero-size-shapes partial https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes A shape with zero width and/or height still has a bounding box (zero extent at its position); a path with d none is positioned at (0,0). n/a donner/svg/components/shape/ShapeSystem.cc:1272-1275, :1300-1303, :1441-1443, :1378-1380 (no computed path, hence no bounds, for zero-size rect, zero-radius circle or ellipse, and empty path) ShapeSystem_tests.cc RectZeroSize asserts no computed path; lines and polylines of zero extent do keep bounds low S Affects a host bounding-box query and, if such elements are held to contribute, the union box of a parent used for objectBoundingBox units. Whether a rendering-disabled shape contributes to its ancestors is not stated outright in the CR.
feat:svg2/bbox-display-none-excluded conformant https://www.w3.org/TR/2026/CR-SVG2-20261006/coords.html#BoundingBoxes An element outside the rendering tree (display none) does not contribute to an ancestor's bounding box. n/a donner/svg/components/shape/ShapeSystem.cc:531-534, :1241-1243 ShapeSystem_tests.cc GetShapeBoundsDisplayNone, GetShapeBoundsDisplayNoneWithoutPrecomputedStyle - - Other non-rendered contexts (defs, clipPath, marker content) are covered in transforms_coordinates.md.

Tests to create

  • feat:svg2/geometry-css-declaration-requires-units (geometry.html): <circle r="10" style="r: 40"/> and <ellipse rx="10" ry="10" style="rx: 40"/> must keep the attribute value; today the unit test expects the opposite.
  • val:width/auto, val:height/auto (geometry.html#Sizing): <rect width="50" height="50" style="width:auto"/> must not render.
  • val:d/none (paths.html#TheDProperty): <path d="M0 0H50V50Z" style="d:none"/> must not render; plus style='d:"M0 0H50V50Z"' overriding an attribute, and an invalid CSS d value falling back to the attribute.
  • feat:svg2/geometry-percent-r-diagonal (coords.html#Units): <circle r="50%"/> in a 200x100 viewport, expected radius 79.06.
  • feat:svg2/rect-radii-percent-reference (shapes.html#RectElement): <rect width="100" height="50" rx="10%"/> inside a 400x400 viewport, recording which basis is used.
  • feat:svg2/path-grammar-trailing-decimal-point (paths.html#PathDataBNF): d="M 10. 20 L 30 40" asserting the chosen behaviour.
  • feat:svg2/arc-identical-endpoints (paths.html#ArcOutOfRangeParameters): d="M10 10 A5 5 0 1 1 10 10 L 50 10" must equal M10 10 L50 10, including vertex count.
  • feat:svg2/path-closepath-repeated: d="M10 10 L50 10 Z Z" with marker-mid and with stroke-linecap:round, asserting the second closepath.
  • feat:svg2/zero-length-segment-markers: d="M10 10 M50 50 L90 50" with marker-start/marker-mid, expecting a marker at (10,10).
  • feat:svg2/path-direction-segment-start, -segment-end, -zero-length-path, -cusp (paths.html#PathDirectionality): unit tests on the vertex list for M0 0 L10 0 L10 0 L10 0 L10 10, M5 5 L5 5, and M0 0 L10 0 L0 0.
  • feat:svg2/pathLength-scales-dashoffset: dashed path with pathLength="100" and stroke-dashoffset="25".
  • feat:svg2/pathLength-zero: pathLength="0" stroke-dasharray="5 5", expected an unbroken stroke.
  • feat:svg2/pathLength-negative: pathLength="-10" with dashes, expected identical to no pathLength.
  • feat:svg2/pathLength-scales-textPath-startOffset: textPath with startOffset="50" on a 200-unit path with pathLength="100", expected to start at the midpoint.
  • feat:svg2/pathLength-percentage-unaffected: stroke-dasharray="10%" with pathLength, recording the behaviour.
  • prop:path-length: style="path-length: 100px" with dashes on each of the seven shapes; plus one resvg-style rendering case for the pathLength attribute on a basic shape (rect, circle), since neither corpus has any pathLength case.
  • feat:svg2/points-error-renders-prefix: points="10,10 50,10,,50,50" must render the first segment.
  • feat:svg2/bbox-zero-size-shapes: bounds of <rect x="10" y="10" width="0" height="20"/> and of a group containing it.
  • feat:svg2/bbox-ellipse, -polyline, -polygon: direct bounds assertions per element.
  • feat:svg2/path-implementation-limits: a path over the command limit renders its prefix and reports the limit.
  • feat:svg2/geometry-calc-values: <rect width="calc(10px + 10%)" height="10"/>.

Unverified / could not fetch

  • All five CR chapters were fetched; nothing was filled from memory.
  • Unverified: whether the XML-parse path accepts leading or trailing whitespace in x1, y1, x2, y2 and pathLength values (the DOM mutation path trims for the line attributes; pathLength is parsed without trimming).
  • Unverified: direction results for runs of two or more consecutive zero-length segments in the middle of a path.
  • Unverified: SMIL/CSS animation behaviour of these attributes and properties (hooks exist; animation.md owns the audit), including whether points is animatable in Donner.
  • Not audited here by design: stroke join/cap geometry, dash rendering, marker placement and rendering, text on a path layout, and x/y/width/height on svg, image and foreignObject.