W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

Re: [csswg-drafts] [css-env-1] Clarify how variables can be detected (#2732)

From: Ben Frain via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Aug 2019 11:54:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-525267261-1566906870-sysbot+gh@w3.org>
These values have been in devices for nearly two years now and other than UA sniffing combined with screen measurement we don't have any means at our disposal to read in the values. 

Something like this would be most welcome:

```
getComputedStyle(element).getPropertyValue(env(safe-area-inset-top));
```

Is there any progress on exposing these values to script? 

-- 
GitHub Notification of comment by benfrain
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2732#issuecomment-525267261 using your GitHub account
Received on Tuesday, 27 August 2019 11:54:33 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:13 UTC