Skip to content

Commit bbdca2e

Browse files
committed
[css-selectors-5]: move from :heading(<An+B>#) to :headng(<integer>#)
1 parent e97a09d commit bbdca2e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

selectors-5/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,12 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
173173

174174
As a functional pseudo-class,
175175
<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.
177178
The syntax is:
178179

179180
<pre class=prod>
180-
:heading() = :heading( <<An+B>># )
181+
:heading() = :heading( <integer># )
181182
</pre>
182183

183184
The [=specificity=] of '':heading()'' is that of a class.
@@ -188,10 +189,10 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
188189
500, additionally heading levels 1 and 2 will be underlined, while 3 and
189190
beyond will have no text-decoration:
190191

191-
<pre>:heading(-n+3) { font-weight: 900; }</pre>
192-
<pre>:heading(n+6) { font-weight: 500; }</pre>
192+
<pre>:heading(1, 2, 3) { font-weight: 900; }</pre>
193+
<pre>:heading(6, 7, 8, 9) { font-weight: 500; }</pre>
193194
<pre>:heading(1, 2) { text-decoration: underline; }</pre>
194-
<pre>:heading(n+3) { text-decoration: none; }</pre>
195+
<pre>:heading(3, 4, 5, 6, 7, 8, 9) { text-decoration: none; }</pre>
195196
</div>
196197

197198
Note: The <a>heading level</a> might be different from an element's

0 commit comments

Comments
 (0)