@@ -226,10 +226,13 @@ class="value-inst-no-close-quote"><strong>no-close-quote</strong></span></span>
226226the 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
230231string is not parsed by the CSS processor. If the subject of the selector
231232doesn't have an attribute X, an empty string is returned. The
232233case-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
589592text:</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
597600people will be able to type. If you can type them directly, they will
598601look like this:
599602
600603<pre>
601- [LANG|=fr] > * {quotes: "�" "�" "‹" "›"}
602- [LANG|=en] > * {quotes: "“" "”" "‘" "’"}
604+ [LANG|=fr] > * { quotes: "�" "�" "‹" "›" }
605+ [LANG|=en] > * { quotes: "“" "”" "‘" "’" }
603606</pre>
604607</div>
605608
@@ -666,15 +669,15 @@ property follows the cascading rules. Thus, due to cascading, the
666669following 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
674677specified 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