Add path-length CSS property definition (Section 9.6.2)#1073
Merged
Conversation
Add a CSS property table for 'path-length' alongside the existing 'pathLength' attribute definition in the Paths chapter (Section 9.6.1). The 'path-length' property provides the author's computation of the total length of the path for distance-along-a-path calibration. The SVG 'pathLength' attribute maps to it as a presentation attribute. Also updates definitions.xml to register 'path-length' as a presentation attribute in the presentation attribute category. Includes a note referencing the CSS WG resolution from 22 January 2020. Addresses #773
karlcow
requested changes
Mar 12, 2026
karlcow
left a comment
Member
There was a problem hiding this comment.
@viralipurbey Thanks for working on this.
We should try to add the change to Changes section of the spec too.
See an example in https://github.com/w3c/svgwg/pull/1071/changes#diff-c7a9bad640ef0fed758e524f8762e900e665c8005337bb9988a2dffc62d04d6dR516-R521
Contributor
Author
|
I have added it in changes section as well. Please review @karlcow @dirkschulze @goldenboy777 |
goldenboy777
reviewed
Apr 1, 2026
goldenboy777
reviewed
Apr 1, 2026
goldenboy777
reviewed
Apr 1, 2026
745058c to
1f03507
Compare
karlcow
approved these changes
Apr 23, 2026
karlcow
left a comment
Member
There was a problem hiding this comment.
Thanks a lot @viralipurbey
This is wonderful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a CSS property definition for
path-lengthalongside the existingpathLengthSVG attribute in the Paths chapter (Section 9.6.1), per the CSS WG resolution from 22 January 2020.Changes
paths.html
none | <number [0,∞]>, initial valuenone, applies to shapes andtextPath, not inherited, not animatable).pathLengthis a presentation attribute forpath-length.definitions.xml
path-lengthin the presentation attributes category.<property>entry forpath-length.pathLengthattribute definition withpresentationattributemapping.Addresses #773
Preview