[csswg-drafts] [cssom-view] Expose video plane pixel ratio (#6891)

chcunningham has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Expose video plane pixel ratio ==
Discussion started in https://github.com/w3c/csswg-drafts/issues/5044. The main idea is to expose the device pixel ratio for `<video>`, allowing authors to select an optimal content resolution. UAs on TV's and dongles will often have a [distinct video "plane"](https://www.w3.org/TR/mediaqueries-5/#video-prefixed-features) with a higher device pixel ratio than reported by `window.devicePixelRatio`.

I propose adding `deviceVideoPixelRatio` to `Screen`. Authors can then determine the "video" pixels of anything, including screen (width, height), window (availWidth, availHeigh), as well as inline. For example:

_full screen case_

```
targetResolution = screen.width * window.deviceVideoPixelRatio;
```

_inline case_

```
targetResolution = element.clientWidth * window.deviceVideoPixelRatio;
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6891 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 December 2021 23:24:03 UTC