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

> Can you put an example? All env vars that I know of are either lengths or times. And all the ones that are in the spec are only lengths.

Ah, I thought there was an env() that sets all four margins at once, suitable for dropping directly into `margin`. If they're all value-level (and we feel like restricting things to that would be acceptable), then maybe.

> And nobody wants to reparse CSS rules when something in the page changes, and less so when a author-accessible API is called.

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...

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

Received on Wednesday, 7 November 2018 20:08:31 UTC