Skip to content

Commit 65dc095

Browse files
authored
Add :heading and :heading() pseudo-classes
Fixes #11412.
1 parent d58e8e4 commit 65dc095

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

source

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76365,6 +76365,17 @@ Demos:
7636576365
contains <var>identifier</var>.</p>
7636676366
</dd>
7636776367

76368+
<dt><dfn selector noexport data-x="selector-heading">:heading</dfn></dt>
76369+
<dd><p>The <code data-x="selector-heading">:heading</code> pseudo-class must match all
76370+
<code>h1</code>, <code>h2</code>, <code>h3</code>, <code>h4</code>, <code>h5</code>, and
76371+
<code>h6</code> elements.</p></dd>
76372+
76373+
<dt><dfn selector noexport data-x="selector-heading-functional">:heading(<var>An+B</var>#)</dfn></dt>
76374+
<dd><p>The <code data-x="selector-heading-functional">:heading(<var>An+B</var>#)</code>
76375+
pseudo-class must match all <code>h1</code>, <code>h2</code>, <code>h3</code>, <code>h4</code>,
76376+
<code>h5</code>, and <code>h6</code> elements that have a <span>heading level</span> among
76377+
<var>An+B</var>. <ref>CSSSYNTAX</ref> <ref>CSSVALUES</ref></p></dd>
76378+
7636876379
<dt><dfn selector noexport><code data-x="selector-playing">:playing</code></dfn></dt>
7636976380
<dd>
7637076381
<p>The <code data-x="selector-playing">:playing</code> <span>pseudo-class</span> must match all
@@ -137635,9 +137646,9 @@ br[clear=all i], br[clear=both i] { clear: both; }</code></pre>
137635137646
[dir]:dir(rtl), bdi:dir(rtl) { direction: rtl; }
137636137647

137637137648
address, blockquote, center, div, figure, figcaption, footer, form, header, hr,
137638-
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,
137639-
h3, h4, h5, h6, hgroup, nav, section, search, table, caption, colgroup, col,
137640-
thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output,
137649+
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside,
137650+
:heading, hgroup, nav, section, search, table, caption, colgroup, col, thead,
137651+
tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, bdi, output,
137641137652
[dir=ltr i], [dir=rtl i], [dir=auto i] {
137642137653
unicode-bidi: isolate; <!-- anything that's similar to display:block, plus <bdi>, <output>, and dir="" -->
137643137654
}
@@ -137672,9 +137683,9 @@ input[dir=auto i]:is([type=search i], [type=tel i], [type=url i],
137672137683
<pre><code class="css">@namespace "http://www.w3.org/1999/xhtml";
137673137684

137674137685
address, blockquote, center, div, figure, figcaption, footer, form, header, hr,
137675-
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside, h1, h2,
137676-
h3, h4, h5, h6, hgroup, nav, section, search, table, caption, colgroup, col,
137677-
thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, [dir=ltr i],
137686+
legend, listing, main, p, plaintext, pre, summary, xmp, article, aside,
137687+
:heading, hgroup, nav, section, search, table, caption, colgroup, col, thead,
137688+
tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu, ol, ul, li, [dir=ltr i],
137678137689
[dir=rtl i], [dir=auto i], *|* {
137679137690
unicode-bidi: bidi-override;
137680137691
}
@@ -137688,7 +137699,7 @@ textarea {
137688137699

137689137700
<pre><code class="css">@namespace "http://www.w3.org/1999/xhtml";
137690137701

137691-
article, aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section {
137702+
article, aside, :heading, hgroup, nav, section {
137692137703
display: block;<!-- see also unicode-bidi: isolate rules-->
137693137704
}
137694137705

0 commit comments

Comments
 (0)