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

[csswg-drafts] [mediaqueries] length units in video-* media features. (#5044)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 May 2020 09:48:47 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-612476043-1588672126-sysbot+gh@w3.org>
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries] length units in video-* media features. ==
The [definition](https://drafts.csswg.org/mediaqueries-4/#video-width) of the `video-width` media feature (same thing for `video-height`) includes this:

> lengths are interpreted according to [[#units]].
This means (I believe) that we're doing things like measuring in CSS px, not in device pixels, as we always do everywhere.

However, I suspect that this isn't actually what implementations plan to do, and a 4K TV probably wants to report 3840 × 2160 (and a resolution of 1dppx), regardless of viewing distance.

If so, we should probably change the above phrasing, or at the very least add a note saying that implementations are likely to anchor the css px unit to physical device pixels rather than to the angular definition.

If we do intend the usual unit gymnastics, the above phrasing is fine, but a note should probably be added, as this may be unexpected / surprising.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5044 using your GitHub account
Received on Tuesday, 5 May 2020 09:48:49 UTC

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