@@ -557,16 +557,30 @@ <h2 id=page-box-page-rule><span class=secno>4. </span>The Page Model</h2>
557557 display running headers and footers.
558558 </ ul >
559559
560- < p > The properties of a < dfn id = page-box0 > page box</ dfn > are determined by
561- properties < a href =" /TR/CSS21/syndata.html#declaration " > declared </ a >
562- within the < dfn id = page-context0 > < a href ="#page-context " > page
563- context</ a > </ dfn > , which is the < a
560+ < p > The properties of a < a href =" # page-box " > < i > page box</ i > </ a > are
561+ determined by properties < a
562+ href ="/TR/CSS21/syndata.html#declaration " > declared </ a > within the < a
563+ href =" #page- context" > < i > page context </ i > </ a > , which is the < a
564564 href ="/TR/CSS21/syndata.html#x14 "> declaration block</ a > of the < a
565- href ="#page "> < code > @page</ code > </ a > rule.
566-
567- < p > Declarations in the page context can affect the page box and/or inherit
568- to the margin boxes, but they do not apply to or inherit into the
569- document's root element or other content.</ p >
565+ href ="#page "> < code > @page</ code > </ a > rule. Similarly the properties of a
566+ < i > margin box</ i > are determined by properties declared within its < a
567+ href ="#margin-context "> < i > margin context</ i > </ a > . Declarations in the
568+ page context can affect the page box and/or inherit to the margin boxes,
569+ but they do not apply to or inherit into the document's root element or
570+ other content.</ p >
571+
572+ < p > The < a href ="#containing-block0 "> < i > containing block</ i > </ a > of the
573+ page box is specified using the ‘< a href ="#size "> < code
574+ class =property > size</ code > </ a > ’ property in the < a
575+ href ="#page-context "> < i > page context</ i > </ a > . The width and horizontal
576+ margins of the page box are then calculated exactly as for a < a
577+ href ="http://www.w3.org/TR/CSS21/visudet.html#blockwidth "> non-replaced
578+ block element in normal flow</ a > . < a href ="#CSS21 "
579+ rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > The height and vertical
580+ margins of the page box are calculated analogously (instead of using the
581+ block height formulas). In both cases if the values are over-constrained,
582+ instead of ignoring any margins, the containing block is resized to
583+ coincide with the margin edges of the page box.
570584
571585 < h3 id =content-outside-box > < span class =secno > 4.1. </ span > Content outside
572586 the page box</ h3 >
@@ -867,7 +881,7 @@ <h3 id=syntax-page-selector><span class=secno>5.3. </span>@page rule
867881
868882< span
869883 id =syntax-prod-margin > margin_box</ span > :
870- margin_sym S* '{' declaration? [ ';' S* declaration? ]* '}' S*
884+ margin_sym S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
871885 ;
872886
873887< span
@@ -2022,18 +2036,6 @@ <h2 id=page-size><span class=secno>8. </span>Page Size</h2>
20222036 < h3 id =page-size-prop > < span class =secno > 8.1. </ span > Page size: the ‘< a
20232037 href ="#size "> < code class =property > size</ code > </ a > ’ property</ h3 >
20242038
2025- < p > The containing block of the page box is specified using the ‘< a
2026- href ="#size "> < code class =property > size</ code > </ a > ’ property in the < a
2027- href ="#page-context "> < i > page context</ i > </ a > . The width and horizontal
2028- margins of the page box are then calculated exactly as for a < a
2029- href ="http://www.w3.org/TR/CSS21/visudet.html#blockwidth "> non-replaced
2030- block element in normal flow</ a > . < a href ="#CSS21 "
2031- rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > The height and vertical
2032- margins of the page box are calculated analogously (instead of using the
2033- block height formulas). In both cases if the values are
2034- over-constrained, instead of ignoring any margins, the containing block
2035- is resized to coincide with the margin edges of the page box.
2036-
20372039 < table class =propdef summary ="definition of the size property ">
20382040 < tbody >
20392041 < tr >
@@ -2079,10 +2081,10 @@ <h3 id=page-size-prop><span class=secno>8.1. </span>Page size: the ‘<a
20792081 </ table >
20802082
20812083 < p > This property specifies the target size and orientation of the < a
2082- href ="#page-box "> page box</ a > . In the general case, where one page box
2083- is rendered onto one < a href =" # page-sheet " > page sheet </ a > , the < a
2084- class = property href ="#size " > ‘ < code class = property > size </ code > ’ </ a >
2085- property also indicates the size of the destination page sheet.</ p >
2084+ href ="#page-box "> page box</ a > ‘ < code class = css > s containing block. In
2085+ the general case, where one page box is rendered onto one < a
2086+ href ="#page-sheet " > page sheet </ a > , the </ code > ’size' property also
2087+ indicates the size of the destination page sheet.
20862088
20872089 < p > The size of a page box can either be "absolute" (fixed size) or
20882090 "relative" (scalable, i.e., fitting available sheet sizes).</ p >
0 commit comments