Re: [csswg-drafts] [css-values] Parsing "<integer> | <length>" or "<number> | <length>" (#489)

I think `<length> && <number>` cannot match `0 1` if you do not give priority to `<length>` for matching `0`.

I noticed the ambiguity with `border-image-outset`, defined with `[ <length [0,∞]> | <number [0,∞]> ]{1,4}`. Its initial value is `0` but imo it should be `0px`, because if you set `border` to `1px` then `border-image-outset` to `0px`, `border` cannot serialize to `1px` because its reset-only sub-property `border-image-outset` is not declared with its initial value.

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


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

Received on Tuesday, 16 August 2022 09:35:10 UTC