Skip to content

Commit f0648c3

Browse files
committed
[css-gcpm] remove cross references section as it is now in GenCon spec
1 parent ab5e5ce commit f0648c3

1 file changed

Lines changed: 5 additions & 89 deletions

File tree

css-gcpm/Overview.html

Lines changed: 5 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
164164
<li><a href="#document-sequence-selectors"><span class="secno">3.2</span> <span class="content"> Page groups </span></a>
165165
</ul>
166166
<li><a href="#leaders"><span class="secno">4</span> <span class="content"> Leaders (moved) </span></a>
167-
<li>
168-
<a href="#cross-references"><span class="secno">5</span> <span class="content"> Cross-references </span></a>
169-
<ul class="toc">
170-
<li><a href="#target-counter"><span class="secno">5.1</span> <span class="content"> The <span class="css">target-counter()</span> function </span></a>
171-
<li><a href="#target-counters"><span class="secno">5.2</span> <span class="content"> The <span class="css">target-counters()</span> function </span></a>
172-
<li><a href="#target-text"><span class="secno">5.3</span> <span class="content"> target-text </span></a>
173-
</ul>
167+
<li><a href="#cross-references"><span class="secno">5</span> <span class="content"> Cross-references (moved) </span></a>
174168
<li><a href="#bookmarks"><span class="secno">6</span> <span class="content"> Bookmarks (moved) </span></a>
175169
<li>
176170
<a href="#former-wd-sections"><span class="secno"></span> <span class="content">Appendix A: Where Are They Now?</span></a>
@@ -759,76 +753,10 @@ <h3 class="heading settled" data-level="3.2" id="document-sequence-selectors"><s
759753
</div>
760754
<h2 class="heading settled" data-level="4" id="leaders"><span class="secno">4. </span><span class="content"> Leaders (moved) </span><a class="self-link" href="#leaders"></a></h2>
761755
<p class="issue" id="issue-ca446e90"><a class="self-link" href="#issue-ca446e90"></a> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
762-
<h2 class="heading settled" data-level="5" id="cross-references"><span class="secno">5. </span><span class="content"> Cross-references </span><a class="self-link" href="#cross-references"></a></h2>
763-
Many documents contain internal references:
764-
<ul>
765-
<li> See chapter 7
766-
<li> in section 4.1
767-
<li> on page 23
768-
</ul>
769-
Three new values for the content property are used to automatically create these types of cross-references: <a class="css" data-link-type="maybe" href="#funcdef-target-counter">target-counter()</a>, <a class="css" data-link-type="maybe" href="#funcdef-target-counters">target-counters()</a>, and <a class="css" data-link-type="maybe" href="#target-text-function">target-text()</a>. Each of these displays information obtained from the target end of a link.
770-
<h3 class="heading settled" data-level="5.1" id="target-counter"><span class="secno">5.1. </span><span class="content"> The <a class="css" data-link-type="maybe" href="#funcdef-target-counter">target-counter()</a> function </span><a class="self-link" href="#target-counter"></a></h3>
771-
The <a class="css" data-link-type="maybe" href="#funcdef-target-counter">target-counter()</a> 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.
772-
<p class="note" role="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>
773-
<pre class="prod"><dfn data-dfn-type="function" data-export="" id="funcdef-target-counter">target-counter()<a class="self-link" href="#funcdef-target-counter"></a></dfn> = target-counter( <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#url-value">&lt;url></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#identifier-value">&lt;custom-ident></a> [ <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-counter-styles-3/#typedef-counter-style" title="Expands to: japanese-formal | japanese-formal | simp-chinese-informal | simp-chinese-informal | japanese-informal | japanese-informal | trad-chinese-formal | trad-chinese-formal | cjk-ideographic | cjk-ideographic | simp-chinese-formal | simp-chinese-formal | trad-chinese-informal | trad-chinese-informal">&lt;counter-style></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> )
774-
</pre>
775-
<div class="example" id="example-16fe984d">
776-
<a class="self-link" href="#example-16fe984d"></a> HTML:
777-
<pre>…which will be discussed on page &lt;a href="#chapter4_sec2">&lt;/a>.
778-
</pre>
779-
<p>CSS:</p>
780-
<pre>a::after { content: target-counter(attr(href url), page) }
781-
</pre>
782-
<p>Result:</p>
783-
<pre>…which will be discussed on page 137.
784-
</pre>
785-
</div>
786-
<div class="example" id="example-e2284abd">
787-
<a class="self-link" href="#example-e2284abd"></a> Page numbers in tables of contents can be generated automatically:
788-
<p>HTML:</p>
789-
<pre>&lt;nav>
790-
&lt;ol>
791-
&lt;li class="frontmatter">&lt;a href="#pref_01">Preface&lt;/a>&lt;/li>
792-
&lt;li class="frontmatter">&lt;a href="#intr_01">Introduction&lt;/a>&lt;/li>
793-
&lt;li class="bodymatter">&lt;a href="#chap_01">Chapter One&lt;/a>&lt;/li>
794-
&lt;/ol>
795-
&lt;/nav>
796-
</pre>
797-
<p>CSS:</p>
798-
<pre>.frontmatter a::after { content: leader('.') target-counter(attr(href url), page, lower-roman) }
799-
.bodymatter a::after { content: leader('.') target-counter(attr(href url), page, decimal) }
800-
</pre>
801-
<p>Result:</p>
802-
<pre>Preface.............vii
803-
Introduction.........xi
804-
Chapter One...........1
805-
</pre>
806-
</div>
807-
<h3 class="heading settled" data-level="5.2" id="target-counters"><span class="secno">5.2. </span><span class="content"> The <a class="css" data-link-type="maybe" href="#funcdef-target-counters">target-counters()</a> function </span><a class="self-link" href="#target-counters"></a></h3>
808-
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.
809-
<pre class="prod"><dfn data-dfn-type="function" data-export="" id="funcdef-target-counters">target-counters()<a class="self-link" href="#funcdef-target-counters"></a></dfn> = target-counter( <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#url-value">&lt;url></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#identifier-value">&lt;custom-ident></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value">&lt;string></a> [ <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-counter-styles-3/#typedef-counter-style" title="Expands to: japanese-formal | japanese-formal | simp-chinese-informal | simp-chinese-informal | japanese-informal | japanese-informal | trad-chinese-formal | trad-chinese-formal | cjk-ideographic | cjk-ideographic | simp-chinese-formal | simp-chinese-formal | trad-chinese-informal | trad-chinese-informal">&lt;counter-style></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> )
810-
</pre>
811-
<div class="example" id="example-bb9f2ba3">
812-
<a class="self-link" href="#example-bb9f2ba3"></a>
813-
<pre>I have not found a compelling example for target-counters() yet.
814-
</pre>
815-
</div>
816-
<h3 class="heading settled" data-level="5.3" id="target-text"><span class="secno">5.3. </span><span class="content"> target-text </span><a class="self-link" href="#target-text"></a></h3>
817-
The <a class="css" data-link-type="maybe" href="#target-text-function">target-text()</a> 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 <a class="property" data-link-type="propdesc" href="#propdef-string-set">string-set</a> property above.
818-
<pre class="prod"><dfn data-dfn-type="function" data-export="" id="target-text-function">target-text()<a class="self-link" href="#target-text-function"></a></dfn> = target-counter( <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#url-value">&lt;url></a> [ <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a> [ content <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> before <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> after <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> first-letter] ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> )
819-
</pre>
820-
<p class="issue" id="issue-a82075c9"><a class="self-link" href="#issue-a82075c9"></a>A simpler syntax has been proposed by fantasai: http://lists.w3.org/Archives/Public/www-style/2012Feb/0745.html</p>
821-
<div class="example" id="example-9862f897">
822-
<a class="self-link" href="#example-9862f897"></a>
823-
<pre>…which will be discussed &lt;a href="#chapter_h1_1">later&lt;/a>.
824-
825-
a::after { content: ", in the chapter entitled " target-text(attr(href url)) }
826-
827-
</pre>
828-
Result: …which will be discussed later, in the chapter entitled Loomings.
829-
</div>
830-
<h2 class="heading settled" data-level="6" id="bookmarks"><span class="secno">6. </span><span class="content"> Bookmarks (moved) </span><a class="self-link" href="#bookmarks"></a></h2>
756+
<h2 class="heading settled" data-level="5" id="cross-references"><span class="secno">5. </span><span class="content"> Cross-references (moved) </span><a class="self-link" href="#cross-references"></a></h2>
831757
<p class="issue" id="issue-ca446e900"><a class="self-link" href="#issue-ca446e900"></a> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
758+
<h2 class="heading settled" data-level="6" id="bookmarks"><span class="secno">6. </span><span class="content"> Bookmarks (moved) </span><a class="self-link" href="#bookmarks"></a></h2>
759+
<p class="issue" id="issue-ca446e901"><a class="self-link" href="#issue-ca446e901"></a> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
832760
<h2 class="no-num heading settled" id="former-wd-sections"><span class="content">Appendix A: Where Are They Now?</span><a class="self-link" href="#former-wd-sections"></a></h2>
833761
<p>Many sections which were in the <a href="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>
834762
<h3 class="heading settled" id="page-marks-and-bleed-area"><span class="content">Page marks and bleed area</span><a class="self-link" href="#page-marks-and-bleed-area"></a></h3>
@@ -1064,9 +992,6 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
1064992
<li><a href="#running-elements0">Running elements</a><span>, in §1</span>
1065993
<li><a href="#funcdef-string">string()</a><span>, in §1.1.2</span>
1066994
<li><a href="#propdef-string-set">string-set</a><span>, in §1.1.1</span>
1067-
<li><a href="#funcdef-target-counter">target-counter()</a><span>, in §5.1</span>
1068-
<li><a href="#funcdef-target-counters">target-counters()</a><span>, in §5.2</span>
1069-
<li><a href="#target-text-function">target-text()</a><span>, in §5.3</span>
1070995
</ul>
1071996
<h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
1072997
<ul class="indexlist">
@@ -1076,11 +1001,6 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
10761001
<li><a href="https://drafts.csswg.org/css-content-3/#typedef-content-list">&lt;content-list></a>
10771002
<li><a href="https://drafts.csswg.org/css-content-3/#propdef-content">content</a>
10781003
</ul>
1079-
<li>
1080-
<a data-link-type="biblio" href="#biblio-css-counter-styles-3">[css-counter-styles-3]</a> defines the following terms:
1081-
<ul>
1082-
<li><a href="https://drafts.csswg.org/css-counter-styles-3/#typedef-counter-style">&lt;counter-style></a>
1083-
</ul>
10841004
<li>
10851005
<a data-link-type="biblio" href="#biblio-css-page-3">[css-page-3]</a> defines the following terms:
10861006
<ul>
@@ -1098,8 +1018,6 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
10981018
<li><a href="https://drafts.csswg.org/css-values-3/#mult-one-plus">+</a>
10991019
<li><a href="https://drafts.csswg.org/css-values-3/#comb-comma">,</a>
11001020
<li><a href="https://drafts.csswg.org/css-values-3/#identifier-value">&lt;custom-ident></a>
1101-
<li><a href="https://drafts.csswg.org/css-values-3/#string-value">&lt;string></a>
1102-
<li><a href="https://drafts.csswg.org/css-values-3/#url-value">&lt;url></a>
11031021
<li><a href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a>
11041022
<li><a href="https://drafts.csswg.org/css-values-3/#comb-one">|</a>
11051023
</ul>
@@ -1117,8 +1035,6 @@ <h3 class="no-num heading settled" id="normative"><span class="content">Normativ
11171035
<dd>Bert Bos; et al. <a href="http://www.w3.org/TR/CSS2">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="http://www.w3.org/TR/CSS2">http://www.w3.org/TR/CSS2</a>
11181036
<dt id="biblio-css-content-3"><a class="self-link" href="#biblio-css-content-3"></a>[CSS-CONTENT-3]
11191037
<dd>CSS Generated Content Module Level 3 URL: <a href="https://drafts.csswg.org/css-content-3/">https://drafts.csswg.org/css-content-3/</a>
1120-
<dt id="biblio-css-counter-styles-3"><a class="self-link" href="#biblio-css-counter-styles-3"></a>[CSS-COUNTER-STYLES-3]
1121-
<dd>Tab Atkins Jr.. <a href="http://www.w3.org/TR/css-counter-styles-3/">CSS Counter Styles Level 3</a>. 11 June 2015. CR. URL: <a href="http://www.w3.org/TR/css-counter-styles-3/">http://www.w3.org/TR/css-counter-styles-3/</a>
11221038
<dt id="biblio-css-page-3"><a class="self-link" href="#biblio-css-page-3"></a>[CSS-PAGE-3]
11231039
<dd>CSS Paged Media Module Level 3 URL: <a href="http://www.w3.org/TR/css3-page/">http://www.w3.org/TR/css3-page/</a>
11241040
<dt id="biblio-css-position-3"><a class="self-link" href="#biblio-css-position-3"></a>[CSS-POSITION-3]
@@ -1265,8 +1181,8 @@ <h2 class="no-num heading settled" id="issues-index"><span class="content">Issue
12651181
<div class="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?<a href="#issue-165f8769"></a></div>
12661182
<div class="issue">We need an algorithm for laying out footnotes<a href="#issue-da883bb8"></a></div>
12671183
<div class="issue"> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><a href="#issue-ca446e90"></a></div>
1268-
<div class="issue">A simpler syntax has been proposed by fantasai: http://lists.w3.org/Archives/Public/www-style/2012Feb/0745.html<a href="#issue-a82075c9"></a></div>
12691184
<div class="issue"> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><a href="#issue-ca446e900"></a></div>
1185+
<div class="issue"> Now described in <a data-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><a href="#issue-ca446e901"></a></div>
12701186
</div>
12711187
</body>
12721188
</html>

0 commit comments

Comments
 (0)