- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Mon, 05 Nov 2018 03:09:51 +0000
- To: public-css-archive@w3.org
Unfortunately, this isn't possible. Variables draw their values from custom properties, and so you need to have some element to get those from. But selectors obviously don't have an element associated with them; they *select* the elements! So, you can't use a var() like this. That said, [`env()`](https://drafts.csswg.org/css-env/) will allow this once custom environment variables are defined; they *aren't* associated with any element (they're global values instead). -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3284#issuecomment-435742529 using your GitHub account
Received on Monday, 5 November 2018 03:09:52 UTC