Re: [csswg-drafts] proposal: [css-variables] CSS variables in selectors

Variables gain their values from properties on an element, but selectors aren't associated with any element (they tell us what elements to apply properties to!). So this fundamentally can't work with variables.

That said, the [`env()` function](https://drafts.csswg.org/css-env/), once we stabilize on how to add user-defined environment variables, should work for this.

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

Received on Thursday, 30 August 2018 17:57:59 UTC