File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,19 @@ Inserting and Replacing Content: the 'content' property</h2>
210
210
the element has no "alt text".
211
211
</dl>
212
212
213
+ <div class="example">
214
+ To correctly use <<counter>> in "alt text" in unsupported browsers
215
+ one should specify 'content' property twice.
216
+ First, a fallback without counter in "alt text".
217
+ Second, use counter in "alt text".
218
+ <pre>
219
+ ::before {
220
+ content: "Chapter" counter(chapter);
221
+ content: "Chapter" counter(chapter) / "Chapter" counter(chapter);
222
+ }
223
+ </pre>
224
+ </div>
225
+
213
226
Issue: Should the contents keyword be replaced with ''content()'' ?
214
227
215
228
<h3 id="accessibility">
@@ -1397,4 +1410,4 @@ No new privacy considerations have been reported on this specification.
1397
1410
1398
1411
<h2 class=no-num id=security>Security Considerations</h2>
1399
1412
1400
- No new security considerations have been reported on this specification.
1413
+ No new security considerations have been reported on this specification.
You can’t perform that action at this time.
0 commit comments