Skip to content

Commit

Permalink
[selectors-4] Fix typo (#11246)
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyWick authored Nov 22, 2024
1 parent 3d0b11d commit 29252b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ Pseudo-classes</h3>
which allow additional content to be inserted before or after the contents of any element.
</div>

Like <a>pseudo-classes</a>
Like <a>pseudo-classes</a>,
<a>pseudo-elements</a> do not appear in or modify the document source or document tree.
Accordingly, they also do not affect the interpretation of <a>structural pseudo-classes</a>
or other selectors pertaining to their <a>originating element</a> or its tree.
Expand Down Expand Up @@ -1925,7 +1925,7 @@ ID selectors</h3>
In HTML all ID attributes are named <code>id</code>;
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 <dfn export>ID selector</dfn> consists of a “number sign” (U+0023, <code>#</code>)
immediately followed by the ID value,
Expand Down Expand Up @@ -2243,7 +2243,7 @@ The Target Pseudo-class: '':target''</h3>
The Target Container Pseudo-class: '':target-within''</h3>

The <dfn id='target-within-pseudo'>:target-within</dfn> 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 <a>flat tree</a>
(including non-element nodes, such as text nodes)
matches the conditions for matching '':target''.
Expand Down Expand Up @@ -2376,7 +2376,7 @@ The Input Focus Pseudo-class: '':focus''</h3>
For example, [[HTML]] defines a list of <a href="https://html.spec.whatwg.org/multipage/interaction.html#focusable-area">focusable areas</a>.

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,
Expand Down Expand Up @@ -2471,7 +2471,7 @@ The Focus Container Pseudo-class: '':focus-within''</h3>

The <dfn id='focus-within-pseudo'>:focus-within</dfn> 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 <a>flat tree</a>
(including non-element nodes, such as text nodes)
Expand Down Expand Up @@ -3553,7 +3553,7 @@ Calculating a selector's specificity</h2>
in its <a>selector list</a> argument.
<li>
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 <a>complex selector</a>
in its <a>selector list</a> argument (if any).
Expand Down

0 comments on commit 29252b2

Please sign in to comment.