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

Re: [csswg-drafts] [cssom-view] No way to access the viewport size without losing precision. (#5260)

From: Mr.doob via GitHub <sysbot+gh@w3.org>
Date: Mon, 16 Nov 2020 15:19:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-728128448-1605539966-sysbot+gh@w3.org>
What about properties that gives the physical pixels instead?

```js
const cssWidth = window.innerPhysicalWidth / window.devicePixelRatio;
``

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 16 November 2020 15:19:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC