W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

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

From: Dongsung Kim via GitHub <sysbot+gh@w3.org>
Date: Wed, 15 Nov 2017 11:18:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-344562952-1510744691-sysbot+gh@w3.org>
@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

This archive was generated by hypermail 2.3.1 : Wednesday, 15 November 2017 11:18:17 UTC