Re: vw/vh/vm units

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 UTC