Re: [csswg-drafts] [css-values-4] fix definition of <length> (#9646)

Actually it would be `<length> = <dimension-token> | <number-token [0,0]>`, with `<dimension-token>` restricted in prose to tokens whose `unit` property is a length unit, and excluding `<number-token [0,0]>` when the context allow `<number>` or `<integer>` (which have priority). `1px` is a single lexical unit, see [*consume a numeric token*](https://drafts.csswg.org/css-syntax-3/#consume-a-numeric-token).

However [`<dimension-unit>`](https://drafts.csswg.org/css-values-5/#typedef-dimension-unit) could be defined with `<length-unit> | <angle-unit> | ...`.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9646#issuecomment-1829785141 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 November 2023 12:53:45 UTC