W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

Re: [csswg-drafts] [css-values] Add `pl` unit for SVG path length

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Fri, 24 Jun 2016 17:15:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-228405312-1466788538-sysbot+gh@w3.org>
As I've discussed on the [SVGwg 
issue](https://github.com/w3c/svgwg/issues/177), I am not convinced 
that a new unit is the best way to address this issue:

- I would like to eventually extend the stroke dashing properties to 
allow dashing patterns relative to path segment or sub-path length.

- The switch to segment or sub-path dash patterns would affect more 
than just the resolution of lengths (dashing would be calculated for 
each section of the path separately), so adding more units would not 
cover those use cases.  Plus, a whole suite of SVG-specific units 
clutters up CSS Values.

- There are very few properties where you would be able to use these 
units, other than `stroke-dasharray`, `stroke-dashoffset`.  You 
certainly couldn't use them in SVG geometry properties, which change 
the path length.  Motion path offset could use them, but motion path 
already defines percentages relative to path length.  The proposed SVG
 marker-pattern property, which uses a dasharray-like syntax would use
 them.  But again, we could just define percentages to be useful from 
the start.  And there would still be a use case for lengths relative 
to segment or sub-path.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at 
using your GitHub account
Received on Friday, 24 June 2016 17:15:40 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:59 UTC