- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Thu, 01 Sep 2016 07:36:40 +0000
- To: public-svg-issues@w3.org
> We had decided to match the CSS definition of `<length>` with the one exception that in a presentation attribute, only, a unitless number is always allowed as an alternative to a length or an angle. That is defined in the [value syntax section](https://svgwg.org/svg2-draft/types.html#syntax) (after Annotation 1, starts "When a presentation attributeā¦"). This makes it hard to get to know the correct syntax and makes it even incorrect insofar that `<length>` values still link to the CSS Values and Units Module instead of the SVG definition. I suggest to introduce new types for those values, e.g. `<length-number>` and `<angle-number>` similar to [how Values and Units did it for percentage values](https://drafts.csswg.org/css-values-3/#typedef-length-percentage) and additionally make use of the `<*-percentage>` values where appropriate. So, e.g. the [syntax for the `x` and `y` attributes of text elements](https://svgwg.org/svg2-draft/text.html#TextElementXAttribute) might then look like this: [[ <length-percentage> | <length-number> ]+ ]# or even [ <length-percentage-number>+ ]# Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/svgwg/issues/222#issuecomment-243999965 using your GitHub account
Received on Thursday, 1 September 2016 07:36:52 UTC