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

Re: [css3-values] Interaction of vw/vh and scrollbars

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 04 Dec 2012 13:04:12 -0500
Message-ID: <50BE3B1C.4000602@mit.edu>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: James Robinson <jamesr@google.com>, "www-style@w3.org" <www-style@w3.org>
On 12/4/12 1:00 PM, Sylvain Galineau wrote:
> # The 'width' media feature describes the width of the
> # targeted display area of the output device. For continuous media,
> # this is the width of the viewport (as described by CSS2, section 9.1.1 [CSS21])
> # including the size of a rendered scroll bar (if any).


So CSS21 9.1.1 and media queries use one definition of "viewport" while 
CSS21 10.1 uses a different one, apparently.  Quite lovely.

> I think it would also be weird for vh/vw units to react to the presence of a
> scrollbar while MQ still considers the viewport width to be the same.

Yeah.  Seems like we can't avoid weird no matter what we do here, as 
long as UAs don't always show viewport scrollbars....

Received on Tuesday, 4 December 2012 18:04:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:24 UTC