W3C home > Mailing lists > Public > www-style@w3.org > October 2012

[css-device-adapt][media-queries] device-width/height

From: Kenneth Rohde Christiansen <kenneth.r.christiansen@intel.com>
Date: Wed, 10 Oct 2012 13:32:32 +0200
Message-ID: <CAEC208s8oG9xdkLf7rKHgnY77nx6A5dJwMOeUmkxgiiH4B1YZQ@mail.gmail.com>
To: www-style list <www-style@w3.org>
Cc: (wrong string) 김규영 <gyuyoung.kim@samsung.com>, wayne.carr@intel.com, Peter Beverloo <beverloo@google.com>, thiago.santos@intel.com

In the CSS Device Adaptation spec, device-width is defined as

"The width of the screen in CSS pixels at zoom factor 1.0."

But in CSS3 Media Queries the media query is defined as:

"The device-width media feature describes the width of the rendering
surface of the output device. For continuous media, this is the width
of the screen. For paged media, this is the width of the page sheet

Currently some user agents (like iOS Safari) uses the exact same
values for device-width when used as part of the viewport meta tag (or
Device Adaptation) and when queried by media queries. This makes sense
for me. The value is in CSS units.

Unfortunately this is not clearly stated in the CSS3 Media Queries
spec, and other user agents (say, Chrome for Android) uses device
units instead of CSS units, when queried.

Could we clean this up? Like either state in CSS3 Media Queries that
these are in CSS units or add a note in the CSS Device Adaptation


Intel Denmark Aps
Langelinie Alle 35, DK-2100 Copenhagen
CVR No. 76716919

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
Received on Wednesday, 10 October 2012 11:33:22 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:20 UTC