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

Re: Comments on media queries [css3-page]

From: Henri Sivonen <hsivonen@iki.fi>
Date: Sat, 9 Feb 2008 17:58:04 +0200
Cc: W3C Style List <www-style@w3.org>, Håkon Wium Lie <howcome@opera.com>
Message-Id: <94E77A70-D929-46A2-962A-58B84BBF4365@iki.fi>
To: fantasai <fantasai.lists@inkedblade.net>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:01 GMT