Re: Comments on media queries [css3-page]

On Feb 9, 2008, at 03:20, fantasai wrote:

> I've added the following to the spec, does this make sense?
>
> | If a size property declaration specifies a page size that would  
> cause that
> | declaration to not apply (e.g. a media query that qualifies it  
> applies
> | only to a different paper size) then the declaration must be  
> ignored.
> |
> | In the following example
> |   @page {
> |     size: 4in 6in;
> |   }
> |
> |   @media (max-width: 6in) {
> |     @page {
> |       size: letter;
> |     }
> |   }
> | The second size declaration is ignored, i.e. the specified value  
> of the
> | size property is 4in 6in.
>
> It's a bit more complicated processing than we normally do for  
> things that
> are "ignored"... but disallowing @page inside @media wouldn't solve  
> the
> problem anyway due to media="" and @import.


To me this makes sense from the authoring point of view, but I'm not  
qualified to comment on implementability in a CSS print formatter.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Saturday, 9 February 2008 15:58:20 UTC