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 12:45:32 -0500
Message-ID: <50BE36BC.70503@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 12:40 PM, Sylvain Galineau wrote:
> Precisely. And so is there a compelling reasons for the spec to define which type of scrollbars
> cause which units to adjust?

I don't think the spec would have to do that.  If we wanted the 
auto-adjusting behavior (which is not obvious), we could just define 
vw/vh to be in terms of the ICB.  Except that happens to be what 
http://dev.w3.org/csswg/css3-values/#viewport-relative-lengths says 
already, except it also talks about "viewport" which is not quite the 
same thing, the claims of 

I do think it's a bit weird that if I have a position:fixed element with 
no border/padding/margin, then setting "width: 20vh; right: 0" and 
"width: 20vh; left: 80vh" don't have the same behavior when there's a 
vertical scrollbar.  But this keeps coming back to what the use cases 
for vh/vw are.

Received on Tuesday, 4 December 2012 17:46:08 UTC

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