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

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 UTC