Re: [csswg-drafts] [css-inline] baseline-shift inconsistent regarding numbers (#3975)

This is more than just the quirky behavior for presentation attributes. The unitless values are also accepted in CSS declarations, so they should be part of the allowed value grammar (probably with a warning that this is obsolete / for legacy compatibility reasons, and maybe with some extra grammar fanciness to keep that legacy behavior from propagating to `vertical-align`).

Computed value should definitely be converted to px, but simple serialization should probably keep `<number>` and `<length-percentage>` types distinct. I think that's consistent with the resolution in https://github.com/w3c/csswg-drafts/issues/4874#issuecomment-614138114.

That would mean that a 0 would get parsed as a `<number>`, so the initial value should be explicitly `0px`.

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

Received on Wednesday, 27 May 2020 15:37:42 UTC