Skip to content

Commit 09d0a5f

Browse files
committed
[css2] Corrected three examples (unintended border around :before, and
numeric() instead of counter()) --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401688
1 parent 2200a49 commit 09d0a5f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

css2/generate.src

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ generated content. So, for example, changing the above style sheet
7272
to:</p>
7373

7474
<pre class="example">
75-
P.note:before { content: "Note: ";
76-
border: solid green }
75+
P.note:before { content: "Note: " }
76+
P.note { border: solid green }
7777
</pre>
7878

7979
<P>would cause a solid green border to be rendered around the entire
@@ -475,7 +475,7 @@ mark characters:</em></p>
475475
<TR><TH>Approximate rendering<TH>ISO 10646 code (hex)<TH>Description
476476
<TR><TD>"<TD>0022<TD>QUOTATION MARK [the ASCII double quotation mark]
477477
<TR><TD>'<TD>0027<TD>APOSTROPHE [the ASCII single quotation mark]
478-
<TR><TD><<TD>2039<TD>SINGLE LEFT-POINTING ANGLE QUOTATION MARK
478+
<TR><TD>&lt;<TD>2039<TD>SINGLE LEFT-POINTING ANGLE QUOTATION MARK
479479
<TR><TD>><TD>203A<TD>SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
480480
<TR><TD>�<TD>00AB<TD>LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
481481
<TR><TD>�<TD>00BB<TD>RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
@@ -940,10 +940,11 @@ box of a fixed width. This document:</p>
940940
&lt;STYLE type="text/css"&gt;
941941
LI:before {
942942
display: marker;
943-
content: "(" numeric(counter) ")";
943+
content: "(" counter(counter) ")";
944+
counter-increment: counter;
944945
width: 6em;
945946
text-align: center;
946-
}
947+
}
947948
&lt;/STYLE&gt;
948949
&lt;/HEAD&gt;
949950
&lt;BODY&gt;
@@ -1028,7 +1029,7 @@ smiley gif images here):</p>
10281029
P.Note:before {
10291030
display: marker;
10301031
content: url(note.gif)
1031-
"Note " numeric(note-counter) ":";
1032+
"Note " counter(note-counter) ":";
10321033
counter-increment: note-counter;
10331034
text-align: left;
10341035
width: 10em;

0 commit comments

Comments
 (0)