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

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

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Fri, 17 Feb 2012 11:22:22 +0100
Message-ID: <4F3E2A5E.9090703@kozea.fr>
To: www-style@w3.org
Hi,

In paged media, media queries have several features such as 'width' and 
'height' that are based on the size of the page box. However, with 
css3-page, that size is decided by the 'size' property in @page rules.

How do media queries interact with the 'size' property?

For example, how is the following resolved?

@media print and (max-width: 20cm) {
     @page { size: 21cm 29.7cm }
}
@media print and (min-width: 20cm) {
     @page { size: 14.8cm 21cm }
}

More generally, the results of the cascade depend on which media queries 
match. Can values tested in media queries depend on the result of the 
cascade? How are the results defined in such cases?

Regards,
-- 
Simon Sapin
Received on Friday, 17 February 2012 10:23:02 GMT

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