W3C home > Mailing lists > Public > www-style@w3.org > July 2009

Re: vw/vh/vm units

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 13 Jul 2009 12:42:34 -0700
Message-ID: <4A5B8E2A.1050305@inkedblade.net>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
CC: www-style@w3.org
Aryeh Gregor wrote:
> I have a few questions about the vw, vh, and vm units (viewport units)
> from the CSS 3 Values and Units draft:
> 
> http://www.w3.org/TR/css3-values/#vw
> 
> First of all, are any browsers planning on implementing them?  Are
> there any known problems with them?  Is the spec considered stable and
> implementable?  I haven't found open bugs for either Gecko or Mozilla,
> so if there's no known problem I'll go ahead and file some (David
> Hyatt told me on IRC that he thought they would be "very easy to
> implement").
> 
> Second of all, I noticed a possible ambiguity in the spec.  It states
> that the units are "relative to the viewport's width/height".  It's
> not clear (to me) whether this includes the scrollbar or not.  I think
> the most desirable answer is that the width does *not* include the
> scrollbar ― i.e., the size of a vw will vary based on whether a
> scrollbar is present just as with resizing the window.

These should be defined in terms of the initial containing block,
not the viewport. That way they'll automatically handle everything
we define for the ICB: e.g. what happens with scrollbars, what
happens in paged media, etc.

~fantasai
Received on Monday, 13 July 2009 20:43:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:19 GMT