From 5300992917f8450acc31d185d6d1bf77d18fe6dd Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 21 Aug 2025 10:46:49 +0100 Subject: [PATCH] [css-selectors-5]: move from :heading(#) to :heading(#) --- selectors-5/Overview.bs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/selectors-5/Overview.bs b/selectors-5/Overview.bs index 117df878b07..dcf734d8746 100644 --- a/selectors-5/Overview.bs +++ b/selectors-5/Overview.bs @@ -173,13 +173,16 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''< As a functional pseudo-class, :heading() - notation represents elements that have a heading level among An+B. + notation represents elements that have a heading level among matching + any of the provided integer values. The syntax is:
-		:heading() = :heading( <># )
+		:heading() = :heading( <># )
 	
+ where <level> is a <> with its type flag set to "integer". + The [=specificity=] of '':heading()'' is that of a class.
@@ -188,10 +191,10 @@ Heading Structures: the heading pseudo-classes '':heading'', and '':heading()''< 500, additionally heading levels 1 and 2 will be underlined, while 3 and beyond will have no text-decoration: -
:heading(-n+3) { font-weight: 900; }
-
:heading(n+6) { font-weight: 500; }
+
:heading(1, 2, 3) { font-weight: 900; }
+
:heading(6, 7, 8, 9) { font-weight: 500; }
:heading(1, 2) { text-decoration: underline; }
-
:heading(n+3) { text-decoration: none; }
+
:heading(3, 4, 5, 6, 7, 8, 9) { text-decoration: none; }
Note: The heading level might be different from an element's