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

Le 25/02/2013 00:00, Håkon Wium Lie a écrit :
> Also sprach Simon Sapin:
>
>   > * Viewport units in the page context (but maybe not inside margin
>   > at-rules) refer to the UA’s default page size, ignoring any stylesheet.
>   >
>   > * Viewport units are based not on the first page, but on an hypothetical
>   > page that does not match any page name or page pseudo-
>   > class. (In other words, only consider @page rules without a page selector.)
>   >
>   > * That hypothetical page does not inherit from the root element.
>   > Alternative: @page never inherits from the root.
>   >
>   > Would that work?
>
> Yes, it seems to make sense.
>
> I'd like for @page to inherit from the root element, to avoid having
> to set font family, size etc.

Yes, I’d like to preserve that use case too. But it’s really tricky to 
keep that and still avoid having a viewport unit depend on itself.

One way maybe is to cut inheritance only for the purpose of determining 
viewport units, but that seems slippery.

-- 
Simon Sapin

Received on Sunday, 24 February 2013 23:03:52 UTC