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
Copy file name to clipboardExpand all lines: css-gcpm/Overview.bs
+2-98Lines changed: 2 additions & 98 deletions
Original file line number
Diff line number
Diff line change
@@ -791,109 +791,13 @@ In this case, each chapter will form a separate page group. @page:nth(3 of body)
791
791
</div>
792
792
793
793
<h2 id="leaders">
794
-
Leaders
794
+
Leaders (moved)
795
795
</h2>
796
-
A leader, sometimes known as a tab leader or a dot leader, is a repeating pattern used to visually connect content across horizontal spaces. They are most commonly used in tables of contents, between titles and page numbers. The ''leader()'' function, as a value for the content property, is used to create leaders in CSS. This function takes a string (the leader string), which describes the repeating pattern for the leader.
Do leaders depend on the assumption that the content after the leader is right-aligned (end-aligned)?
845
-
</p>
846
77EC
td>
-
<h3 id="rendering-leaders">
847
-
Rendering leaders
848
-
</h3>
849
-
Consider a line which contains the content before the leader (the “before content”), the leader, and the content after the leader (the “after content”). Leaders obey the following rules:
850
-
<ol>
851
-
<li>The leader string must appear in full at least once. </li>
852
-
<li>The leader should be as long as possible</li>
853
-
<li>Visible characters in leaders should vertically align with each other when possible.</li>
854
-
<li>Line break characters in the leader string must be ignored.</li>
855
-
<li>White space in the leader string follows normal CSS rules.</li>
856
-
<li>A leader only appears between the start content and the end content.</li>
857
-
<li>A leader only appears on a single line, even if the before content and after content are on different lines. </li>
858
-
<li>A leader can’t be the only thing on a line. </li>
859
-
</ol>
860
-
<h4 id="procedure-leader">
861
-
Procedure for rendering leaders
862
-
</h4>
863
-
<ol>
864
-
<li> Lay out the before content, until reaching the line where the before content ends. <pre>
865
-
BBBBBBBBBB
866
-
BBB
867
-
</pre></li>
868
-
<li> The leader string consists of one or more glyphs, and is thus an inline box. A leader is a row of these boxes, drawn from the end edge to the start edge, where only those boxes not overlaid by the before or after content. On this line, draw the leader string, starting from the end edge, repeating as many times as possible until reaching the start edge. <pre>
869
-
BBBBBBBBBB
870
-
..........
871
-
</pre></li>
872
-
<li> Draw the before and after content on top of the leader. If any part of the before or after content overlaps a glyph in a leader string box, that glyph is not displayed.<pre>
873
-
BBBBBBBBBB
874
-
BBB....AAA
875
-
</pre></li>
876
-
<li> If one full copy of the leader string is not visible: <pre>
877
-
BBBBBBB
878
-
BBBBBBA
879
-
</pre> Insert a line break before the after content, draw the leader on the next line, and draw the end content on top <pre>
<p>In this case, each chapter will form a separate page group. @page:nth(3 of body) will select the third page of each chapter, even if that page happens to use the “broadside” named page. @page:nth(1) will select only the first page of the document, as will @page:first.</p>
A leader, sometimes known as a tab leader or a dot leader, is a repeating pattern used to visually connect content across horizontal spaces. They are most commonly used in tables of contents, between titles and page numbers. The <aclass="css" data-link-type="maybe" href="#funcdef-leader">leader()</a> function, as a value for the content property, is used to create leaders in CSS. This function takes a string (the leader string), which describes the repeating pattern for the leader.
<pclass="issue" id="issue-2f5c8d3f"><aclass="self-link" href="#issue-2f5c8d3f"></a> Do leaders depend on the assumption that the content after the leader is right-aligned (end-aligned)? </p>
Consider a line which contains the content before the leader (the “before content”), the leader, and the content after the leader (the “after content”). Leaders obey the following rules:
820
-
<ol>
821
-
<li>The leader string must appear in full at least once.
822
-
<li>The leader should be as long as possible
823
-
<li>Visible characters in leaders should vertically align with each other when possible.
824
-
<li>Line break characters in the leader string must be ignored.
825
-
<li>White space in the leader string follows normal CSS rules.
826
-
<li>A leader only appears between the start content and the end content.
827
-
<li>A leader only appears on a single line, even if the before content and after content are on different lines.
Lay out the before content, until reaching the line where the before content ends.
834
-
<pre>BBBBBBBBBB
835
-
BBB
836
-
</pre>
837
-
<li>
838
-
The leader string consists of one or more glyphs, and is thus an inline box. A leader is a row of these boxes, drawn from the end edge to the start edge, where only those boxes not overlaid by the before or after content. On this line, draw the leader string, starting from the end edge, repeat
7E53
ing as many times as possible until reaching the start edge.
839
-
<pre>BBBBBBBBBB
840
-
..........
841
-
</pre>
842
-
<li>
843
-
Draw the before and after content on top of the leader. If any part of the before or after content overlaps a glyph in a leader string box, that glyph is not displayed.
844
-
<pre>BBBBBBBBBB
845
-
BBB....AAA
846
-
</pre>
847
-
<li>
848
-
If one full copy of the leader string is not visible:
849
-
<pre>BBBBBBB
850
-
BBBBBBA
851
-
</pre>
852
-
Insert a line break before the after content, draw the leader on the next line, and draw the end content on top
<pclass="issue" id="issue-ca446e90"><aclass="self-link" href="#issue-ca446e90"></a> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
<pclass="issue" id="issue-ca446e90"><aclass="self-link" href="#issue-ca446e90"></a> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
831
+
<pclass="issue" id="issue-ca446e900"><aclass="self-link" href="#issue-ca446e900"></a> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
936
832
<h2class="no-num heading settled" id="former-wd-sections"><spanclass="content">Appendix A: Where Are They Now?</span><aclass="self-link" href="#former-wd-sections"></a></h2>
937
833
<p>Many sections which were in the <ahref="http://www.w3.org/TR/2011/WD-css3-gcpm-20111129/">29 November 2011 Working Draft</a> have been moved to other specifications. Here are some notes on where things have moved.</p>
938
834
<h3class="heading settled" id="page-marks-and-bleed-area"><spanclass="content">Page marks and bleed area</span><aclass="self-link" href="#page-marks-and-bleed-area"></a></h3>
<divclass="issue">How do footnotes work in multi-column text? Prince uses <code>float: prince-column-footnote</code> to create a footnote at the bottom of a column rather than the bottom of a page.<ahref="#issue-ab22b570"> ↵ </a></div>
1370
1265
<divclass="issue">Implementations that support footnotes generally support page floats like <code>float: bottom</code>. Page floats should end up above the footnote area. How might this be specified?<ahref="#issue-165f8769"> ↵ </a></div>
1371
1266
<divclass="issue">We need an algorithm for laying out footnotes<ahref="#issue-da883bb8"> ↵ </a></div>
1372
-
<divclass="issue"> Do leaders depend on the assumption that the content after the leader is right-aligned (end-aligned)? <ahref="#issue-2f5c8d3f"> ↵ </a></div>
1373
-
<divclass="issue">A simpler syntax has been proposed by fantasai: http://lists.w3.org/Archives/Public/www-style/2012Feb/0745.html<ahref="#issue-a82075c9"> ↵ </a></div>
1374
1267
<divclass="issue"> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><ahref="#issue-ca446e90"> ↵ </a></div>
1268
+
<divclass="issue">A simpler syntax has been proposed by fantasai: http://lists.w3.org/Archives/Public/www-style/2012Feb/0745.html<ahref="#issue-a82075c9"> ↵ </a></div>
1269
+
<divclass="issue"> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><ahref="#issue-ca446e900"> ↵ </a></div>
0 commit comments