Re: [svgwg] Where are unitless lengths allowed? What do they mean?

Colleagues point out interesting questions: what happens with `x="var(--foo)"` or `x="attr(foo)"`?

https://drafts.csswg.org/css-variables/#using-variables
> The value of a custom property can be substituted into the value of another property with the var() function. 

https://drafts.csswg.org/css-values/#attr-notation
> The attr() function is allowed as a component value in properties applied to an element or pseudo-element.

Since presentation attributes are not properties themselves, I’d argue that neither quoted statement applies and so both examples above are invalid. But maybe it’s worth noting explicitly in SVG2.

-- 
GitHub Notification of comment by SimonSapin
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/379#issuecomment-358426516 using your GitHub account

Received on Wednesday, 17 January 2018 20:02:21 UTC