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
Copy file name to clipboardExpand all lines: css3-lists/Overview.src.html
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1278,17 +1278,28 @@ <h3 id='nested-counters'>
1278
1278
<h3id='counters-without-boxes'>
1279
1279
Counters in elements that do not generate boxes</h3>
1280
1280
1281
-
<p>An element that does not generate a box (for example, an element with 'display' set to ''none'', or a pseudo-element with 'content' set to ''none'') cannot set, reset, or increment a counter. The counter properties are still valid on such an element, they simply must have no effect.
1281
+
<p>
1282
+
An element that does not generate a box
1283
+
(for example, an element with 'display' set to ''none'', or a pseudo-element with 'content' set to ''none'')
1284
+
cannot set, reset, or increment a counter.
1285
+
The counter properties are still valid on such an element,
1286
+
but they must have no effect.
1282
1287
1283
1288
<divclass="example">
1284
-
<p>For example, with the following style sheet, H2s with class "secret" do not increment 'count2'.
1289
+
<p>
1290
+
For example, with the following style sheet,
1291
+
H2s with class "secret" do not increment 'count2'.
1285
1292
1286
1293
<pre>
1287
1294
h2 { counter-increment: count2; }
1288
1295
h2.secret { display: none; }</pre>
1289
1296
</div>
1290
1297
1291
-
<p>Other methods of "hiding" elements, such as setting 'visibility' to ''hidden'', still cause the element to generate a box, and so do not apply here.
0 commit comments