W3C home > Mailing lists > Public > www-style@w3.org > February 2013

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Mon, 25 Feb 2013 00:03:28 +0100
Message-ID: <512A9C40.1080602@kozea.fr>
To: Håkon Wium Lie <howcome@opera.com>
CC: www-style@w3.org
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 GMT

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