Skip to content

Commit 02fe3bd

Browse files
committed
[selectors-4] Remove section on slots and flags, since it doesn't make much sense, nothing else in the spec depends on this text, and the fact that we're using information outside the document tree is very explicitly explained in the sections on pseudo-elements and pseudo-classes already.
1 parent 32d10d2 commit 02fe3bd

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

selectors/Overview.bs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -597,23 +597,6 @@ Data Model</h3>
597597
and can't be matched by <em>any</em> <a>pseudo-class</a> except for '':host'' and '':host-context()''.)
598598
</div>
599599

600-
In addition to the information present in the document tree,
601-
for the purpose of selectors,
602-
elements are assumed to have arbitrary <a>pseudo-class</a> flags
603-
and <a>pseudo-element</a> slots,
604-
as defined by the given <a>pseudo-class</a> and <a>pseudo-element</a>.
605-
606-
<div class='example'>
607-
For example, the first element child of each element
608-
has a flag indicating that it matches the '':first-child'' pseudo-class.
609-
610-
For another example,
611-
all elements have ''::before'' pseudo-elements,
612-
but not only elements with <a>shadow trees</a> have ''::shadow'' pseudo-elements.
613-
</div>
614-
615-
Issue: This section is imho unnecessary, and asserting the existence of a "first-child" flag belonging to the element is a) silly, because that information is already in the tree and b) confusing, because one could then interpret that as meaning the element keeps its first-child flag even when it is moved in the DOM.
616-
617600
<h3 id="scoping">
618601
Scoped Selectors</h3>
619602

0 commit comments

Comments
 (0)