@@ -28,24 +28,6 @@ spec:infra; type:dfn;
28
28
text:string
29
29
</pre>
30
30
31
- <style>
32
- /* Put nice boxes around each algorithm. */
33
- [data-algorithm] :not(.heading) {
34
- padding: .5em;
35
- border: thin solid #ddd; border-radius: .5em;
36
- margin: .5em calc(-0.5em - 1px);
37
- }
38
- [data-algorithm] :not(.heading) > :first-child {
39
- margin-top: 0;
40
- }
41
- [data-algorithm] :not(.heading) > :last-child {
42
- margin-bottom: 0;
43
- }
44
- [data-algorithm] [data-algorithm] {
45
- margin: 1em 0;
46
- }
47
- </style>
48
-
49
31
<h2 id='intro'>
50
32
Introduction</h2>
51
33
@@ -917,6 +899,9 @@ Creating and Inheriting Counters</h3>
917
899
The latest [=counter=] of a given name in that set
918
900
represents the “innermost” counter of that name.
919
901
902
+ <h4 id="inheriting-counters">
903
+ Inheriting Counters</h4>
904
+
920
905
<div algorithm>
921
906
An element [=inherit counters|inherits=] its initial set of counters
922
907
from its preceding <em> sibling</em> ,
@@ -1006,14 +991,17 @@ Creating and Inheriting Counters</h3>
1006
991
#counter-inheritance-example b.baz { color: blue; }
1007
992
</style>
1008
993
994
+ <h4 id="instantiating-counters">
995
+ Instantiating Counters</h4>
996
+
1009
997
<div algorithm>
1010
998
[=Counters=] are [=instantiated=] when named in 'counter-reset' ,
1011
999
and also when not otherwise present if named in
1012
1000
'counter-increment' , 'counter-set' , or the ''counter()'' or ''counters()'' notations.
1013
1001
(Newly [=instantiated=] [=counters=] replace identically-named [=counters=] originating from previous siblings,
1014
1002
but are added in addition to identically-named [=counters=] originating from ancestor elements,
1015
1003
see [[#nested-counters]] .)
1016
- To <dfn local-lt="instantiate">instantiate a counter</dfn>
1004
+ To <dfn lt="instantiate counter" local-lt="instantiate">instantiate a counter</dfn>
1017
1005
of a given |name|
1018
1006
on an |element|
1019
1007
with a starting |value|:
0 commit comments