Skip to content

Commit d335130

Browse files
committed
[css2] Minor formatting touchups. attr(X) refers ONLY to subject of selector
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401527
1 parent 0d3e6b3 commit d335130

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

css2/generate.src

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,13 @@ class="value-inst-no-close-quote"><strong>no-close-quote</strong></span></span>
226226
the level of nesting for quotes.
227227

228228
<dt><span class="index-def" title="attr()"><strong>attr(X)</strong></span>
229-
<dd>This function returns the value of attribute X as a string. The
229+
<dd>This function returns as a string the value of attribute X
230+
for the subject of the selector. The
230231
string is not parsed by the CSS processor. If the subject of the selector
231232
doesn't have an attribute X, an empty string is returned. The
232233
case-sensitivity of attribute names depends on the document language.
234+
<strong>Note.</strong> In CSS2, it is not possible to refer to
235+
attribute values for other elements of the selector.
233236

234237
<!--
235238
<p>Note that the string is parsed according to the rules of the
@@ -589,17 +592,17 @@ quotes on elements based on the language of the surrounding
589592
text:</P>
590593

591594
<pre>
592-
[LANG|=fr] > * {quotes: "�" "�" "\2039" "\203A"}
593-
[LANG|=en] > * {quotes: "\201C" "\201D" "\2018" "\2019"}
595+
[LANG|=fr] > * { quotes: "�" "�" "\2039" "\203A" }
596+
[LANG|=en] > * { quotes: "\201C" "\201D" "\2018" "\2019" }
594597
</pre>
595598

596599
<p>The quotation marks for English are shown here in a form that most
597600
people will be able to type. If you can type them directly, they will
598601
look like this:
599602

600603
<pre>
601-
[LANG|=fr] > * {quotes: "�" "�" "&#8249;" "&#8250;"}
602-
[LANG|=en] > * {quotes: "&#8220;" "&#8221;" "&#8216;" "&#8217;"}
604+
[LANG|=fr] > * { quotes: "�" "�" "&#8249;" "&#8250;" }
605+
[LANG|=en] > * { quotes: "&#8220;" "&#8221;" "&#8216;" "&#8217;" }
603606
</pre>
604607
</div>
605608

@@ -666,15 +669,15 @@ property follows the cascading rules. Thus, due to cascading, the
666669
following stylesheet:</p>
667670

668671
<pre class="example">
669-
H1 {counter-reset: section -1}
670-
H1 {counter-reset: imagenum 99}
672+
H1 { counter-reset: section -1 }
673+
H1 { counter-reset: imagenum 99 }
671674
</pre>
672675

673676
<p>will only reset 'imagenum'. To reset both counters, they have to be
674677
specified together:</p>
675678

676679
<pre class="example">
677-
H1 {counter-reset: section -1 imagenum 99}
680+
H1 { counter-reset: section -1 imagenum 99 }
678681
</pre>
679682

680683
<h3><a name="scope">Nested counters and scope</a></h3>

0 commit comments

Comments
 (0)