Re: [csswg-drafts] [css-properties-values-api] Shorthand for custom property declaration (#7523)

@korenevskiy I'm evaluating this from the point of view of the language, not just the parser. I will probably object against things that might seem to improve readability/writing if they don't mix well into the language.

How do you represent that in CSSOM? What happens if `--color: red;` is missing after `@--color: color inherit;`?

@brandonmcconnell My thoughts are that, if we add some kind of shortcut to register custom properties, it should probably be along these lines: https://github.com/w3c/csswg-drafts/issues/7523#issuecomment-1683049214

Using `/` as a separator can also be problematic if you want to define an initial value that contains `/`, e.g. because you plan to use it in `grid-area`.



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


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

Received on Tuesday, 27 February 2024 19:33:14 UTC