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

css-syntax nor as far as I’m aware any other CSS specification defines something called "legacy parsing mode" or any "parsing mode".

heycam already pointed out that I missed https://svgwg.org/svg2-draft/types.html#presentation-attribute-css-value which says:

> When a presentation attribute defined using the CSS Value Definition Syntax is parsed, this is done as follows:
>
> *    Let value be the value of the attribute.
> *    Let grammar be the grammar given in the attribute definition table's Value column.
> *    Replace all instances of `<length>` in grammar with `[<length> | <number>]`.
> *    Replace all instances of `<angle>` in grammar with `[<angle> | <number>]`.
> *    Return the result of parsing value with grammar.

Though it lacks a definition of the interpretation of these `<number>`.

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

Received on Wednesday, 17 January 2018 19:49:20 UTC