- From: Mike Bremford via GitHub <sysbot+gh@w3.org>
- Date: Mon, 25 Apr 2022 17:15:40 +0000
- To: public-css-archive@w3.org
> The idea that's been presented a few times is to special-case properties defined on the root, and make them available more globally, so any context that's not an element with :root as an ancestor can use var() to obtain the root values of the custom property. Would this be reasonable impl-wise? It may be more of a hurdle for implementers, but this is really looking like the least clumsy option to me - there's no new syntax for authors to learn, and it's also consistent with `@page` which is specified as inheriting from :root. So this syntax is already valid: ```css @page { color: --mycolor; } ``` It seems weird to me that you can do this in `@page`, but then have to have a special syntax to do the same in `@font-palette` or `::selection`. -- GitHub Notification of comment by faceless2 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6641#issuecomment-1108833227 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 25 April 2022 17:15:41 UTC