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
<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>
Three new values for the content property are used to automatically create these types of cross-references: <aclass="css" data-link-type="maybe" href="#funcdef-target-counter">target-counter()</a>, <aclass="css" data-link-type="maybe" href="#funcdef-target-counters">target-counters()</a>, and <aclass="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
-
<h3class="heading settled" data-level="5.1" id="target-counter"><spanclass="secno">5.1. </span><spanclass="content"> The <aclass="css" data-link-type="maybe" href="#funcdef-target-counter">target-counter()</a> function </span><aclass="self-link" href="#target-counter"></a></h3>
771
-
The <aclass="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
-
<pclass="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>
<h3class="heading settled" data-level="5.2" id="target-counters"><spanclass="secno">5.2. </span><spanclass="content"> The <aclass="css" data-link-type="maybe" href="#funcdef-target-counters">target-counters()</a> function </span><aclass="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.
The <aclass="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 <aclass="property" data-link-type="propdesc" href="#propdef-string-set">string-set</a> property above.
<pclass="issue" id="issue-a82075c9"><aclass="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
-
<divclass="example" id="example-9862f897">
822
-
<aclass="self-link" href="#example-9862f897"></a>
823
-
<pre>…which will be discussed <a href="#chapter_h1_1">later</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.
<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>
<pclass="issue" id="issue-ca446e901"><aclass="self-link" href="#issue-ca446e901"></a> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a></p>
832
760
<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>
833
761
<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>
834
762
<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>
<li><ahref="#running-elements0">Running elements</a><span>, in §1</span>
1065
993
<li><ahref="#funcdef-string">string()</a><span>, in §1.1.2</span>
1066
994
<li><ahref="#propdef-string-set">string-set</a><span>, in §1.1.1</span>
1067
-
<li><ahref="#funcdef-target-counter">target-counter()</a><span>, in §5.1</span>
1068
-
<li><ahref="#funcdef-target-counters">target-counters()</a><span>, in §5.2</span>
1069
-
<li><ahref="#target-text-function">target-text()</a><span>, in §5.3</span>
1070
995
</ul>
1071
996
<h3class="no-num heading settled" id="index-defined-elsewhere"><spanclass="content">Terms defined by reference</span><aclass="self-link" href="#index-defined-elsewhere"></a></h3>
<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>
1266
1182
<divclass="issue">We need an algorithm for laying out footnotes<ahref="#issue-da883bb8"> ↵ </a></div>
1267
1183
<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
1184
<divclass="issue"> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><ahref="#issue-ca446e900"> ↵ </a></div>
1185
+
<divclass="issue"> Now described in <adata-link-type="biblio" href="#biblio-css3-content">[CSS3-CONTENT]</a><ahref="#issue-ca446e901"> ↵ </a></div>
0 commit comments