File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -878,6 +878,34 @@ <h4 id=page-size-prop><span class=secno>3.3.1 </span>Page size: the 'size'
878878 contents of the page box should be scaled down to fit the largest smaller
879879 page sheet available.</ p >
880880
881+ < p > If a < code > < a href ="#size "> size</ a > </ code > property declaration
882+ specifies a page size that would cause that declaration to not apply
883+ (e.g. a media query that qualifies it applies only to a different paper
884+ size) then the declaration must be < a
885+ href ="http://www.w3.org/TR/CSS21/conform.html#ignore "> ignored</ a > . < span
886+ class =issue > Is this a reasonable way of dealing with this
887+ conflict?</ span > </ p >
888+
889+ < div class =example >
890+ < p > In the following example
891+
892+ < pre >
893+ @page {
894+ size: 4in 6in;
895+ }
896+
897+ @media (max-width: 6in) {
898+ @page {
899+ size: letter;
900+ }
901+ }
902+ </ pre >
903+
904+ < p > The second < code > < a href ="#size "> size</ a > </ code > declaration is
905+ ignored, i.e. the specified value of the < code > < a
906+ href ="#size "> size</ a > </ code > property is < code > 4in 6in</ code > .
907+ </ div >
908+
881909 < table class =page-sizes >
882910 < tbody >
883911 < tr >
Original file line number Diff line number Diff line change @@ -552,6 +552,30 @@ <h4 id="page-size-prop">Page size: the 'size' property</h4>
552552indicated. If the specified size is not available, the smallest available
553553larger size should be used; if not available, the contents of the page box
554554should be scaled down to fit the largest smaller page sheet available.</ p >
555+
556+ < p > If a < code > size</ code > property declaration specifies a page size that would
557+ cause that declaration to not apply (e.g. a media query that qualifies it applies
558+ only to a different paper size) then the declaration must be
559+ < a href ="http://www.w3.org/TR/CSS21/conform.html#ignore "> ignored</ a > .
560+ < span class ="issue "> Is this a reasonable way of dealing with this conflict?</ span > </ p >
561+
562+ < div class ="example ">
563+ < p > In the following example
564+ < pre >
565+ @page {
566+ size: 4in 6in;
567+ }
568+
569+ @media (max-width: 6in) {
570+ @page {
571+ size: letter;
572+ }
573+ }
574+ </ pre >
575+ < p > The second < code > size</ code > declaration is ignored, i.e. the specified value
576+ of the < code > size</ code > property is < code > 4in 6in</ code > .
577+ </ div >
578+
555579< table class ="page-sizes ">
556580< tr >
557581< th > Value</ th >
You can’t perform that action at this time.
0 commit comments