Re: [csswg-drafts] [css-backgrounds-3] Use lowercase `currentcolor` for initial property values (#7629)

> webref should probably be applying the CSS ASCII-case-insensitive rule to keywords.

This is one of the two reasons why I wanted to close this issue. I was not sure but I think it is safe to lowercase all `initial` field values. 

The second reason is that simplification of values for serialization is not really defined. There is only *If component values can be omitted or replaced with a shorter representation without changing the meaning of the value, omit/replace them.*

Chrome do not simplify `border: medium none currentcolor` whereas Firefox serializes it to `border: medium none`. I think I read somewhere why Firefox removes `currentcolor`. My intention was to omit the initial values in canonical order until only one remains... 

Anyway, I still think that the `initial` field should represent a value as if it were serialized, because this is what the user will see with `console.log(style.borderColor)`, but there are too many open issues much more important than this one.

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


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

Received on Friday, 19 August 2022 18:57:56 UTC