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

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 UTC