You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blank-page pseudo-class: <spanclass=cssdata-link-type=maybetitle=:blank>:blank</span></a></ul><li><ahref=#syntax-page-selector><spanclass=secno>4.3</span>@page rule grammar</a><li><ahref=#cascading-and-page-context><spanclass=secno>4.4</span>Cascading in the page context</a></ul><li><ahref=#margin-boxes><spanclass=secno>5</span>Page-Margin Boxes</a><ulclass=toc><li><ahref=#margin-at-rules><spanclass=secno>5.1</span>At-rules for page-margin boxes</a><li><ahref=#populating-margin-boxes><spanclass=secno>5.2</span>Populating page-margin boxes</a><li><ahref=#margin-dimension><spanclass=secno>5.3</span>Computing Page-margin Box Dimensions</a><ulclass=toc><li><ahref=#margin-box-terms><spanclass=secno>5.3.1</span><spanid=max-margin-dimension></span>Page-Margin Box Layout Terminology</a><li><ahref=#variable-sizing><spanclass=secno>5.3.2</span>
119
-
Page-Margin Box Variable Dimension Computation Rules</a><ulclass=toc><li><ahref=#variable-auto-margins><spanclass=secno>5.3.2.1</span>Margins</a><li><ahref=#variable-auto-sizing><spanclass=secno>5.3.2.2</span>Resolving <spanclass=cssdata-link-type=maybetitle=auto>auto</span> widths</a><li><ahref=#variable-minmax><spanclass=secno>5.3.2.3</span>Handling <spanclass=propertydata-link-type=propdesctitle=min-width>min-width</span> and <spanclass=propertydata-link-type=propdesctitle=max-width>max-width</span></a><li><ahref=#variable-position><spanclass=secno>5.3.2.4</span>Positioning</a><li><ahref=#variable-mapping><spanclass=secno>5.3.2.5</span>Boxes on other sides</a></ul><li><ahref=#fixed-sizing><spanclass=secno>5.3.3</span>Page-Margin Box Fixed Dimension Computation Rules</a></ul><li><ahref=#margin-box-ex><spanclass=secno>5.4</span>Page-margin box examples</a></ul><li><ahref=#page-properties><spanclass=secno>6</span>Page Properties</a><ulclass=toc><li><ahref=#page-based-counters><spanclass=secno>6.1</span>Page-based counters</a><li><ahref=#margin-text-alignment><spanclass=secno>6.2</span>Page-margin boxes and default values</a></ul><li><ahref=#page-size><spanclass=secno>7</span>Page Size</a><ulclass=toc><li><ahref=#page-size-prop><spanclass=secno>7.1</span>Page size: the <spanclass=propertydata-link-type=propdesctitle=size>size</span> property</a><ulclass=toc><li><ahref=#page-size-media-query><spanclass=secno>7.1.1</span>Media Queries</a></ul><li><ahref=#renderingpages><spanclass=secno>7.2</span>Rendering page boxes that do not fit a page sheet</a><li><ahref=#positioning-page-box><spanclass=secno>7.3</span>Positioning the page box on the sheet</a></ul><li><ahref=#page-breaks><spanclass=secno>8</span>
119
+
Page-Margin Box Variable Dimension Computation Rules</a><ulclass=toc><li><ahref=#variable-auto-margins><spanclass=secno>5.3.2.1</span>Margins</a><li><ahref=#variable-auto-sizing><spanclass=secno>5.3.2.2</span>Resolving <spanclass=cssdata-link-type=maybetitle=auto>auto</span> widths</a><li><ahref=#variable-minmax><spanclass=secno>5.3.2.3</span>Handling <spanclass=propertydata-link-type=propdesctitle=min-width>min-width</span> and <spanclass=propertydata-link-type=propdesctitle=max-width>max-width</span></a><li><ahref=#variable-position><spanclass=secno>5.3.2.4</span>Positioning</a><li><ahref=#variable-mapping><spanclass=secno>5.3.2.5</span>Boxes on other sides</a></ul><li><ahref=#fixed-sizing><spanclass=secno>5.3.3</span>Page-Margin Box Fixed Dimension Computation Rules</a></ul><li><ahref=#margin-box-ex><spanclass=secno>5.4</span>Page-margin box examples</a></ul><li><ahref=#page-properties><spanclass=secno>6</span>Page Properties</a><ulclass=toc><li><ahref=#page-based-counters><spanclass=secno>6.1</span>Page-based counters</a><li><ahref=#margin-text-alignment><spanclass=secno>6.2</span>Page-margin boxes and default values</a></ul><li><ahref=#page-size><spanclass=secno>7</span>Page Size</a><ulclass=toc><li><ahref=#page-size-prop><spanclass=secno>7.1</span>Page size: the <spanclass=propertydata-link-type=propdesctitle=size>size</span> property</a><ulclass=toc><li><ahref=#page-size-media-query><spanclass=secno>7.1.1</span>Media Queries</a></ul><li><ahref=#page-marks-bleed><spanclass=secno>7.2</span>Page marks and bleed area</a><li><ahref=#renderingpages><spanclass=secno>7.3</span>Rendering page boxes that do not fit a page sheet</a><li><ahref=#positioning-page-box><spanclass=secno>7.4</span>Positioning the page box on the sheet</a></ul><li><ahref=#page-breaks><spanclass=secno>8</span>
<p>In the example above, "A4" sheets are given a "3cm" page margin, and "letter"
1933
1933
sheets are given a "1in" page margin.</p>
1934
1934
1935
-
<h3class="heading settled heading" data-level=7.2id=renderingpages><spanclass=secno>7.2 </span><spanclass=content>Rendering page boxes that do not fit a page sheet</span><aclass=self-linkhref=#renderingpages></a></h3>
1935
+
1936
+
<h3class="heading settled heading" data-level=7.2id=page-marks-bleed><spanclass=secno>7.2 </span><spanclass=content>Page marks and bleed area</span><aclass=self-linkhref=#page-marks-bleed></a></h3>
1937
+
1938
+
<p>The <aclass=propertydata-link-type=propdeschref=#propdef-markstitle=marks>marks</a> property from <adata-biblio-type=informativedata-link-type=bibliohref=#css2title=css2>[CSS2]</a> is part of this specification.
<p>This property adds crop and/or cross marks to the document. Crop
1942
+
marks indicate where the page should be cut. Cross marks are used to
1943
+
align sheets.
1944
+
1945
+
<p>Crop marks and cross marks are printed outside the page box. To
1946
+
have room to show crop and cross marks, the final pages will have to
1947
+
be somewhat bigger than the page box.
1948
+
1949
+
<divclass=example>
1950
+
<p>To set crop and cross marks on a document, this code can be used:
1951
+
<pre>@page { marks: crop cross }
1952
+
</pre></div>
1953
+
1954
+
<tableclass=propdef><tr><th>Name:<td><dfnclass=css-codedata-dfn-type=propertydata-export="" id=propdef-bleed>bleed<aclass=self-linkhref=#propdef-bleed></a></dfn><tr><th>Value:<td><aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#length-valuetitle="<length>"><length></a><tr><th>Initial:<td>6pt<tr><th>Applies to:<td>page context<tr><th>Inherited:<td>no<tr><th>Media:<td>visual, paged<tr><th>Computed value:<td>as specified<tr><th>Percentages:<td>refer to width of page box</table>
1955
+
<p>This property specifies the extent of the page bleed area outside
1956
+
the page box. This property only has effect if crop marks are enabled.
1957
+
1958
+
1959
+
<h3class="heading settled heading" data-level=7.3id=renderingpages><spanclass=secno>7.3 </span><spanclass=content>Rendering page boxes that do not fit a page sheet</span><aclass=self-linkhref=#renderingpages></a></h3>
1936
1960
1937
1961
<p>If a page box does not match the target page sheet dimensions, the user agent
1938
1962
should do one of the following (in order of preference):</p>
<p>The user agent <emclass=RFC2119>MAY</em> wish to consult the user before
1950
1974
performing these operations.</p>
1951
1975
1952
-
<h3class="heading settled heading" data-level=7.3id=positioning-page-box><spanclass=secno>7.3</span><spanclass=content>Positioning the page box on the sheet</span><aclass=self-linkhref=#positioning-page-box></a></h3>
1976
+
<h3class="heading settled heading" data-level=7.4id=positioning-page-box><spanclass=secno>7.4</span><spanclass=content>Positioning the page box on the sheet</span><aclass=self-linkhref=#positioning-page-box></a></h3>
1953
1977
1954
1978
<p>When the page box is smaller than the page sheet, the user agent <emclass=RFC2119>SHOULD</em> either:</p>
<divdata-fill-with=informative-references><dl><dtid=css-device-adapttitle=CSS-DEVICE-ADAPT><aclass=self-linkhref=#css-device-adapt></a>[CSS-DEVICE-ADAPT]<dd>Rune Lillesveen. <ahref=http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/>CSS Device Adaptation</a>. 15 September 2011. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/>http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/</a><dtid=css3-imagestitle=CSS3-IMAGES><aclass=self-linkhref=#css3-images></a>[CSS3-IMAGES]<dd>Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2012/CR-css3-images-20120417/>CSS Image Values and Replaced Content Module Level 3</a>. 17 April 2012. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/CR-css3-images-20120417/>http://www.w3.org/TR/2012/CR-css3-images-20120417/</a><dtid=css3-writing-modestitle=CSS3-WRITING-MODES><aclass=self-linkhref=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dtid=css3valtitle=CSS3VAL><aclass=self-linkhref=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dtid=jlreqtitle=JLREQ><aclass=self-linkhref=#jlreq></a>[JLREQ]<dd>Yasuhiro Anan; et al. <ahref=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>Requirements for Japanese Text Layout</a>. 3 April 2012. W3C Working Group Note. URL: <ahref=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>http://www.w3.org/TR/2012/NOTE-jlreq-20120403/</a></dl></div>
2594
+
<divdata-fill-with=informative-references><dl><dtid=css-device-adapttitle=CSS-DEVICE-ADAPT><aclass=self-linkhref=#css-device-adapt></a>[CSS-DEVICE-ADAPT]<dd>Rune Lillesveen. <ahref=http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/>CSS Device Adaptation</a>. 15 September 2011. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/>http://www.w3.org/TR/2011/WD-css-device-adapt-20110915/</a><dtid=css2title=CSS2><aclass=self-linkhref=#css2></a>[CSS2]<dd>Ian Jacobs; et al. <ahref=http://www.w3.org/TR/2008/REC-CSS2-20080411>Cascading Style Sheets, level 2 (CSS2) Specification</a>. 11 April 2008. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2008/REC-CSS2-20080411>http://www.w3.org/TR/2008/REC-CSS2-20080411</a><dtid=css3-imagestitle=CSS3-IMAGES><aclass=self-linkhref=#css3-images></a>[CSS3-IMAGES]<dd>Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2012/CR-css3-images-20120417/>CSS Image Values and Replaced Content Module Level 3</a>. 17 April 2012. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/CR-css3-images-20120417/>http://www.w3.org/TR/2012/CR-css3-images-20120417/</a><dtid=css3-writing-modestitle=CSS3-WRITING-MODES><aclass=self-linkhref=#css3-writing-modes></a>[CSS3-WRITING-MODES]<dd>Elika J. Etemad; Koji Ishii. <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>CSS Writing Modes Module Level 3</a>. 15 November 2012. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/>http://www.w3.org/TR/2012/WD-css3-writing-modes-20121115/</a><dtid=css3valtitle=CSS3VAL><aclass=self-linkhref=#css3val></a>[CSS3VAL]<dd>Håkon Wium Lie; Tab Atkins; Elika J. Etemad. <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>CSS Values and Units Module Level 3</a>. 30 July 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-values-20130730/>http://www.w3.org/TR/2013/CR-css3-values-20130730/</a><dtid=jlreqtitle=JLREQ><aclass=self-linkhref=#jlreq></a>[JLREQ]<dd>Yasuhiro Anan; et al. <ahref=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>Requirements for Japanese Text Layout</a>. 3 April 2012. W3C Working Group Note. URL: <ahref=http://www.w3.org/TR/2012/NOTE-jlreq-20120403/>http://www.w3.org/TR/2012/NOTE-jlreq-20120403/</a></dl></div>
<tr><thscope=row><adata-property="">bleed</a><td><length><td>6pt<td>page context<td>no<td>refer to width of page box<td>visual, paged<td>as specified
2629
2657
<tr><thscope=row><adata-property="">page</a><td>auto | <identifier><td>auto<td>boxes that create class A break points<td>no (but see prose)<td>N/A<td>paged<td>specified value</table></div>
0 commit comments