Skip to content

Commit 018a3ff

Browse files
committed
[selectors-5]: Provide guidance on specificity of :heading/:heading()
1 parent 88fd8e2 commit 018a3ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎selectors-5/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
162162
matches an element which has a <a>heading level</a>, with respect to the
163163
semantics defined by the document language (e.g. [[HTML5]]).
164164

165+
The [=specificity=] of '':heading'' is that of a class.
166+
165167
<div class="example">
166168
For example, the following sheet contains a rule applying to all heading
167169
elements in the current page:
@@ -178,6 +180,8 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''<
178180
::heading() = ::heading( <<An+B>># )
179181
</pre>
180182

183+
The [=specificity=] of '':heading()'' is that of a class.
184+
181185
<div class="example">
182186
The following example styles headings with levels between 1 and 3 with a
183187
font-weight of 900, while headings with levels 6 onward with font-weight of

0 commit comments

Comments
 (0)