@@ -28,24 +28,6 @@ spec:infra; type:dfn;
2828 text:string
2929</pre>
3030
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-
4931<h2 id='intro'>
5032Introduction</h2>
5133
@@ -917,6 +899,9 @@ Creating and Inheriting Counters</h3>
917899 The latest [=counter=] of a given name in that set
918900 represents the “innermost” counter of that name.
919901
902+ <h4 id="inheriting-counters">
903+ Inheriting Counters</h4>
904+
920905 <div algorithm>
921906 An element [=inherit counters|inherits=] its initial set of counters
922907 from its preceding <em> sibling</em> ,
@@ -1006,14 +991,17 @@ Creating and Inheriting Counters</h3>
1006991 #counter-inheritance-example b.baz { color: blue; }
1007992 </style>
1008993
994+ <h4 id="instantiating-counters">
995+ Instantiating Counters</h4>
996+
1009997 <div algorithm>
1010998 [=Counters=] are [=instantiated=] when named in 'counter-reset' ,
1011999 and also when not otherwise present if named in
10121000 'counter-increment' , 'counter-set' , or the ''counter()'' or ''counters()'' notations.
10131001 (Newly [=instantiated=] [=counters=] replace identically-named [=counters=] originating from previous siblings,
10141002 but are added in addition to identically-named [=counters=] originating from ancestor elements,
10151003 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>
10171005 of a given |name|
10181006 on an |element|
10191007 with a starting |value|:
0 commit comments