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

Re: [css3-values] viewport units (vw/vh/vmin/vmax) and varying page size

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 15 Nov 2012 13:46:40 +0100
Message-ID: <50A4E430.4000501@kozea.fr>
To: www-style@w3.org
CC: "L. David Baron" <dbaron@dbaron.org>
Le 12/11/2012 02:16, Simon Sapin a écrit :
> (2b) Viewport units are resolved in used values, not computed values.
> They are treated like eg. `width: <percentage>` (as they should, they
> are even called viewport-percentage units in the spec!)
> This implies changing the "Computed value" line of *every* CSS property
> that accepts <length>.

This would lead to all kinds of interesting cases. For example, the 
computed value of font-size is not always absolute anymore. This affects 
everything else through font-based units:

foo {
     font-family: Ahem;
     font-size: 2vw;
     margin-top: 1ex;
}

The computed value of margin-top is 1.6vw, since the x-height of the 
Ahem font is 0.8em.

-- 
Simon Sapin
Received on Thursday, 15 November 2012 12:47:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT