Re: [csswg-drafts] [css-env] Consider value-level parsing like calc() rather than token-level like var()

> That's a necessity if env() is used in selectors, which is one of the things that author-defined env() is intended to be useful for...

Do we need to reparse the CSS rule as a whole or just the selector? Specifically, can authors specify for example an environment `--div` to be `{ display: inline-block }` and then `div env(--div)` to be expanded to `div { display: inline-block }`? Or would an `env()`-in-selector be restricted to be just selectors?

(This comment makes me a lot more concerned about the implementation complexity of custom `env()` now...)

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

Received on Saturday, 10 November 2018 03:31:38 UTC