From 79824418f6dc2c68c3f0f5b9569a927a6faa4447 Mon Sep 17 00:00:00 2001 From: Wick Date: Wed, 20 Nov 2024 11:23:32 +0800 Subject: [PATCH 1/2] [selectors-4] fix typo --- selectors-4/Overview.bs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/selectors-4/Overview.bs b/selectors-4/Overview.bs index b0e0eed3473..4b4d84a637b 100644 --- a/selectors-4/Overview.bs +++ b/selectors-4/Overview.bs @@ -1925,7 +1925,7 @@ ID selectors In HTML all ID attributes are named id; XML applications may name ID attributes differently, but the same restriction applies. - Which attribute on an element is considered the “ID attribute“ is defined by the document language. + Which attribute on an element is considered the “ID attribute” is defined by the document language. An ID selector consists of a “number sign” (U+0023, #) immediately followed by the ID value, @@ -2243,7 +2243,7 @@ The Target Pseudo-class: '':target'' The Target Container Pseudo-class: '':target-within'' The :target-within pseudo-class - applies to any element to which the '':target'' pseudo class applies + applies to any element to which the '':target'' pseudo-class applies as well as to any element whose descendant in the flat tree (including non-element nodes, such as text nodes) matches the conditions for matching '':target''. @@ -2376,7 +2376,7 @@ The Input Focus Pseudo-class: '':focus'' For example, [[HTML]] defines a list of focusable areas. Document languages may define additional ways in which an element can match '':focus'', - except that the '':focus'' pseudo class must not automatically propagate to the parent element-- + except that the '':focus'' pseudo-class must not automatically propagate to the parent element-- see '':focus-within'' if matching on the parent is desired. ('':focus'' may still apply to the parent element if made to propagate due to other mechanisms, @@ -2471,7 +2471,7 @@ The Focus Container Pseudo-class: '':focus-within'' The :focus-within pseudo-class applies to any element (or pseudo-element) - for which the '':focus'' pseudo class applies, + for which the '':focus'' pseudo-class applies, as well as to an element (or pseudo-element) whose descendant in the flat tree (including non-element nodes, such as text nodes) @@ -3553,7 +3553,7 @@ Calculating a selector's specificity in its selector list argument.
  • Analogously, the specificity of an '':nth-child()'' or '':nth-last-child()'' selector - is the specificity of the pseudo class itself (counting as one pseudo-class selector) + is the specificity of the pseudo-class itself (counting as one pseudo-class selector) plus the specificity of the most specific complex selector in its selector list argument (if any). From 2b1186da8ef1305782cec62278cafe984e5b62ea Mon Sep 17 00:00:00 2001 From: Wick Date: Wed, 20 Nov 2024 11:30:56 +0800 Subject: [PATCH 2/2] [selectors-4] missing a comma --- selectors-4/Overview.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selectors-4/Overview.bs b/selectors-4/Overview.bs index 4b4d84a637b..8e79377f7ea 100644 --- a/selectors-4/Overview.bs +++ b/selectors-4/Overview.bs @@ -850,7 +850,7 @@ Pseudo-classes which allow additional content to be inserted before or after the contents of any element. - Like pseudo-classes + Like pseudo-classes, pseudo-elements do not appear in or modify the document source or document tree. Accordingly, they also do not affect the interpretation of structural pseudo-classes or other selectors pertaining to their originating element or its tree.