W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: [css3-mediaqueries] Width/Height Clarifications

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 05 Jun 2008 15:03:25 +0200
To: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, "Grant, Melinda" <melinda.grant@hp.com>
Message-ID: <op.ub907zw264w2qv@annevk-t60.oslo.opera.com>

Hi,

Thanks Melinda and Elika! I believe I have now resolved this adequately  
and I suggest we publish Media Queries as a Last Call Working Draft with a  
review period of three weeks given the extensive implementation experience  
we have already:

   http://dev.w3.org/csswg/css3-mediaqueries/

I believe we resolved to do this already as a WG though to be sure we can  
decide on it next Wednesday.


On Thu, 24 Apr 2008 22:59:14 +0200, fantasai  
<fantasai.lists@inkedblade.net> wrote:
> In the definitions of 'width' and 'height', the spec says:
>
>    # For continuous media, this is the width of the viewport
>    # (as described by CSS2, section 9.1.1 [CSS21]). For paged
>    # media, this is the width of the page box (as described
>    # by CSS2, section 13.2 [CSS21]).
>
> Opera's 'projection' mode is in some sense both paged and
> continuous. In this case you would want to use the viewport
> size, not the page box size (which depends on the content).

As per clarifications from Melinda page box is actually the right term  
here.


> The definitions say that 'height' "describes the height of
> the rendering surface of the output device". This would be
> a more appropriate description for 'device-height', which
> is currently described as  "the height of the output device".
> The viewport of a browser window can be smaller or larger
> than the height of the screen (which is "the rendering
> surface of the output device"). And the 'device-height'
> query isn't intended to refer to the height of the physical
> monitor box, but rather to the height of the screen.

Since we've been using "output device" as a reference to the screen in the  
context of device-* for almost six years now in a Candidate Recommendation  
I've not changed that.

I have however added the sentence Melinda suggested to indicate that it is  
the "screen" for continuous media and the page box for paged media to both  
device-width and device-height. That should make things perfectly clear.

Kind regards,


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Thursday, 5 June 2008 13:04:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT