Skip to content

Commit ab5e5ce

Browse files
committed
[css-gcpm] remove leaders section as it is now in GenCon spec
1 parent 3ab8d8f commit ab5e5ce

1 file changed

Lines changed: 2 additions & 105 deletions

File tree

css-gcpm/Overview.bs

Lines changed: 2 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -799,115 +799,12 @@ Issue: Now described in [[CSS3-CONTENT]]
799799

800800

801801
<h2 id="cross-references">
802-
Cross-references
802+
Cross-references (moved)
803803
</h2>
804804

805-
<!--why is this in gcpm-->
806-
Many documents contain internal references:
807-
<ul>
808-
<li> See chapter 7 </li>
809-
<li> in section 4.1 </li>
810-
<li> on page 23 </li>
811-
</ul>
812-
Three new values for the content property are used to automatically create these types of cross-references: ''target-counter()'', ''target-counters()'', and ''target-text()''. Each of these displays information obtained from the target end of a link.
813-
<h3 id="target-counter">
814-
The ''target-counter()'' function
815-
</h3>
816-
The ''target-counter()'' function retrieves the value of the innermost counter with a given name. The required arguments are the url of the target and the name of the counter. An optional counter-style argument can be used to format the result.
817-
818-
819-
<p class="note">These functions only take a fragment URL which points to a location in the current document. If there’s no fragment, if the ID referenced isn't there, or if the URL points to an outside document, the user agent must treat that as an error.</p>
820-
821-
<pre class="prod">
822-
<dfn>target-counter()</dfn> = target-counter( <<url>> , <<custom-ident>> [ , <<counter-style>> ]? )
823-
</pre>
824-
<div class="example">
825-
HTML:
826-
827-
<pre>
828-
…which will be discussed on page &lt;a href="#chapter4_sec2">&lt;/a>.
829-
</pre>
830-
CSS:
831-
832-
<pre>
833-
a::after { content: target-counter(attr(href url), page) }
834-
</pre>
835-
Result:
836-
<pre>
837-
…which will be discussed on page 137.
838-
</pre>
839-
</div>
840-
841-
<div class="example">
842-
Page numbers in tables of contents can be generated automatically:
843-
844-
HTML:
845-
846-
<pre>
847-
&lt;nav>
848-
&lt;ol>
849-
&lt;li class="frontmatter">&lt;a href="#pref_01">Preface&lt;/a>&lt;/li>
850-
&lt;li class="frontmatter">&lt;a href="#intr_01">Introduction&lt;/a>&lt;/li>
851-
&lt;li class="bodymatter">&lt;a href="#chap_01">Chapter One&lt;/a>&lt;/li>
852-
&lt;/ol>
853-
&lt;/nav>
854-
</pre>
855-
856-
CSS:
857-
858-
<pre>
859-
.frontmatter a::after { content: leader('.') target-counter(attr(href url), page, lower-roman) }
860-
.bodymatter a::after { content: leader('.') target-counter(attr(href url), page, decimal) }
861-
</pre>
862-
863-
Result:
864-
865-
<pre>
866-
Preface.............vii
867-
Introduction.........xi
868-
Chapter One...........1
869-
</pre>
870-
871-
</div>
872-
873-
874-
875-
<h3 id="target-counters">
876-
The ''target-counters()'' function
877-
</h3>
878-
This functions fetches the value of all counters of a given name from the end of a link, and formats them by inserting a given string between the value of each nested counter.
879-
880-
<pre class="prod">
881-
<dfn>target-counters()</dfn> = target-counter( <<url>> , <<custom-ident>> , <<string>> [ , <<counter-style>> ]? )
882-
</pre>
883-
884-
<div class="example">
885-
886-
<pre>
887-
I have not found a compelling example for target-counters() yet.
888-
</pre>
889-
890-
</div>
891-
892-
<h3 id="target-text">
893-
target-text
894-
</h3>
895-
The ''target-text()'' function retrieves the text value of the element referred to by the URL. An optional second argument specifies what content is retrieved, using the same values as the 'string-set' property above.
896-
897-
<pre class="prod">
898-
<dfn id="target-text-function">target-text()</dfn> = target-counter( <<url>> [ , [ content | before | after | first-letter] ]? )
899-
</pre>
900-
901-
902-
<p class="issue">A simpler syntax has been proposed by fantasai: http://lists.w3.org/Archives/Public/www-style/2012Feb/0745.html</p>
903-
<div class="example">
904-
<pre>
905-
…which will be discussed &lt;a href="#chapter_h1_1">later&lt;/a>.
805+
Issue: Now described in [[CSS3-CONTENT]]
906806

907-
a::after { content: ", in the chapter entitled " target-text(attr(href url)) }
908807

909-
</pre> Result: …which will be discussed later, in the chapter entitled Loomings.
910-
</div>
911808

912809
<h2 id="bookmarks">
913810
Bookmarks (moved)

0 commit comments

Comments
 (0)