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

Re: [css3-page][css3-mediaqueries] Page size conflicts

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 17 Feb 2012 23:48:16 +0100
Message-ID: <4F3ED930.4080201@inkedblade.net>
To: www-style@w3.org
On 02/17/2012 03:11 PM, Boris Zbarsky wrote:
> On 2/17/12 5:36 AM, fantasai wrote:
>> - we would like the page to be able to express a preferred size
>> (or multiple preferred sizes; there was a suggestion to extend
>> 'size' to accept a list)
>> - we would also like the page to be able to provide layouts for
>> multiple sizes
>
> Do we need to allow it to do both? One option is to always drop @page
> size declarations inside an @media that involved width/height...

Done.
   http://dev.w3.org/csswg/css3-page/#page-size-prop
   # If a size property declaration is qualified by a ‘width’, ‘height’,
   # ‘device-width’, ‘device-height’, or ‘aspect-ratio’ media query [MEDIAQ]
   # (or other conditional on the size of the paper), then the declaration
   # must be ignored.

There remains the question of what's possible to do here:

   @page {
     size: 4in 6in;
   }
   @media (max-width: 4in) {
     div { background: blue; }
   }

Assuming a default paper width > 4in, is the background blue?

~fantasai
Received on Friday, 17 February 2012 22:48:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT