@@ -173,13 +173,16 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
173
173
174
174
As a functional pseudo-class,
175
175
<dfn id='heading-functional-pseudo' lt=':heading()'>:heading()</dfn>
176
- notation represents elements that have a <a>heading level</a> among <var> An+B</var> .
176
+ notation represents elements that have a <a>heading level</a> among matching
177
+ any of the provided <var> integer</var> values.
177
178
The syntax is:
178
179
179
180
<pre class=prod>
180
- :heading() = :heading( <<An+B >> # )
181
+ :heading() = :heading( <<level >> # )
181
182
</pre>
182
183
184
+ where <dfn><code><level></code></dfn> is a <<number-token>> with its type flag set to "integer".
185
+
183
186
The [=specificity=] of '':heading()'' is that of a class.
184
187
185
188
<div class="example">
@@ -188,10 +191,10 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
188
191
500, additionally heading levels 1 and 2 will be underlined, while 3 and
189
192
beyond will have no text-decoration:
190
193
191
- <pre> :heading(-n+ 3) { font-weight: 900; }</pre>
192
- <pre> :heading(n+6 ) { font-weight: 500; }</pre>
194
+ <pre> :heading(1, 2, 3) { font-weight: 900; }</pre>
195
+ <pre> :heading(6, 7, 8, 9 ) { font-weight: 500; }</pre>
193
196
<pre> :heading(1, 2) { text-decoration: underline; }</pre>
194
- <pre> :heading(n+3 ) { text-decoration: none; }</pre>
197
+ <pre> :heading(3, 4, 5, 6, 7, 8, 9 ) { text-decoration: none; }</pre>
195
198
</div>
196
199
197
200
Note: The <a>heading level</a> might be different from an element's
0 commit comments