Re: [svgwg] Attributes and properties that allow <length> value should also allow <number> and <percentage>

Let's put those rules into a table:

| Context             | Number (e.g. `10`)       | Length (e.g. 
`10px`)  |
| ------------------- |:-------------:| -----:|
| `width="..."`    | X             |  X    |
| `viewBox="..."` | X             |       |
| `d="..."`       | X             |       |
| `style="width: ..."`    |               | X      |
| `style="d: ..."`        | X             |      |

This looks incredibly inconsistent to me. If the goal is to align with
 HTML and CSS, then length units such as "px" should be allowed in 
every place where user space values are involved like path data or 
view box rather than just cherry-picking certain properties and 
attributes that might or must have them.


-- 
GitHub Notification of comment by jarek-foksa
Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/222#issuecomment-238075562 using 
your GitHub account

Received on Sunday, 7 August 2016 10:46:45 UTC