Re: [csswg-drafts] [css-variables] User Agent properties and variables

Also: I *really* want to hook this functionality for custom JS things; the syntax is already super compatible. Just create a map hanging off of document or CSS or something, require the keys to be `--foo` form and the values to be TypedOM instances (so you get grammar-checking at parse-time, as intended), and boom, "global variables" that can be used in *all* locations in a stylesheet, including in MQ conditions, and which don't have unfortunate performance implications due to inheritance from root.

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

Received on Tuesday, 8 August 2017 17:27:29 UTC