Skip to content

Commit 04f51e1

Browse files
committed
[css3-gcpm] fix example in bookmarks section; add partial propdef indicating that leader() extends content property
1 parent a7d81cb commit 04f51e1

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

css-gcpm/Overview.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ <h2 class="heading settled heading" data-level=4 id=leaders><span class=secno>4
746746
</span><a class=self-link href=#leaders></a></h2>
747747
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 <a class=css data-link-type=maybe href=#funcdef-leader title=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.
748748

749+
750+
<table class="definition propdef partial"><tr><th>Name:<td><a class=css-code data-link-type=property href=http://dev.w3.org/csswg/css-content-3/#content title=content>content</a><tr><th>New values:<td>leader()<tr><th>Media:<td>paged</table>
749751
<pre class=prod> <dfn class=css-code data-dfn-type=function data-export="" id=funcdef-leader>leader()<a class=self-link href=#funcdef-leader></a></dfn> = leader( [dotted | solid | space] | <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#string-value title="<string>">&lt;string&gt;</a>);
750752
</pre>
751753

@@ -948,7 +950,10 @@ <h3 class="heading settled heading" data-level=6.2 id=bookmark-label><span class
948950
HTML:
949951
<pre>&lt;h1&gt;Loomings&lt;/h1&gt;
950952
</pre><p>CSS:
951-
<pre>h1 { bookmark-label: content(text); }
953+
<pre>h1 {
954+
bookmark-label: content(text);
955+
bookmark-level: 1;
956+
}
952957
</pre><p>The bookmark label will be “Loomings”.
953958
</div>
954959

@@ -1021,8 +1026,7 @@ <h2 class="no-num heading settled heading" id=changes><span class=content>Append
10211026
<li>The spec has a new editor.</li>
10221027
<li>All text and examples rewritten.</li>
10231028
<li>Added <span class=css data-link-type=maybe title="attr(<identifier>)">attr(&lt;identifier&gt;)</span> value to <a class=property data-link-type=propdesc href=#propdef-string-set title=string-set>string-set</a> property. This is supported by both Prince and AntennaHouse.</li>
1024-
<li>Running elements section mostly deleted pending decision on fundamental syntax.</li>
1025-
<li>Added new value of <a class=property data-link-type=propdesc href=http://www.w3.org/TR/CSS21/visuren.html#propdef-float title=float>float</a> property to support inline footnotes. </li>
1029+
10261030
<li>Added <a class=property data-link-type=propdesc href=#propdef-footnote-policy title=footnote-policy>footnote-policy</a> property to control rendering of footnotes in difficult situations.</li>
10271031
<li>Removed sidenotes section.</li>
10281032
<li>Removed section on selecting elements within pages and columns</li>

css-gcpm/Overview.src.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,13 @@ <h2 id="leaders">
774774
</h2>
775775
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.
776776

777+
778+
<pre class="propdef partial">
779+
Name: content
780+
New Values: leader()
781+
Media: paged
782+
</pre>
783+
777784
<pre class="prod">
778785
<dfn>leader()</dfn> = leader( [dotted | solid | space] | <<string>>);
779786
</pre>
@@ -1032,7 +1039,10 @@ <h3 id="bookmark-label">
10321039
</pre>
10331040
CSS:
10341041
<pre>
1035-
h1 { bookmark-label: content(text); }
1042+
h1 {
1043+
bookmark-label: content(text);
1044+
bookmark-level: 1;
1045+
}
10361046
</pre>
10371047
The bookmark label will be “Loomings”.
10381048
</div>
@@ -1118,8 +1128,7 @@ <h2 class="no-num" id="changes">Appendix B: Changes</h2>
11181128
<li>The spec has a new editor.</li>
11191129
<li>All text and examples rewritten.</li>
11201130
<li>Added ''attr(&lt;identifier>)'' value to 'string-set' property. This is supported by both Prince and AntennaHouse.</li>
1121-
<li>Running elements section mostly deleted pending decision on fundamental syntax.</li>
1122-
<li>Added new value of 'float' property to support inline footnotes. </li>
1131+
11231132
<li>Added 'footnote-policy' property to control rendering of footnotes in difficult situations.</li>
11241133
<li>Removed sidenotes section.</li>
11251134
<li>Removed section on selecting elements within pages and columns</li>

0 commit comments

Comments
 (0)