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

@jkuss This is actually quite interesting. I believe at this moment WebKit, being the only User Agent shipped with this functionality, offers no JS API to directly obtain `env`s in general. Interestingly, WebKit has listed _some_ of the name strings themselves (i.e., `safe-area-inset-bottom`) in `CSSStyleDeclaration` object at `[340] ~ [343]`, but inaccessible through `.getPropertyValue` unlike any other CSS property. 

Being _UA-specific_ things, it sort of makes sense that `env`s belong to the unholy `navigator` object. But on the other hand, I could see them being an _another set_ of custom properties; _defined by the UA not by users_, so there is no reason to treat them differently from `var`s. 

I know this problem is in the middle of a standard minefield, and probably out-of-scope of CSSWG, but it doesn’t particularly seem in-scope anywhere else.

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

Received on Wednesday, 15 November 2017 11:18:14 UTC