Add support for the ::slotted selector (#35352)

* bump stylo

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-02-07 09:47:56 +01:00 committed by GitHub
parent 5cd4012e79
commit 7a6953bc08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 20 additions and 148 deletions

View file

@ -1,2 +0,0 @@
[layer-slotted-rule.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[revert-layer-014.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[lang-pseudo-class-across-shadow-boundaries.html]
expected: FAIL

View file

@ -1,27 +1,3 @@
[parse-slotted.html]
["::slotted(bar)" should be a valid selector]
expected: FAIL
["::slotted([attr=\\"foo\\"\])" should be a valid selector]
expected: FAIL
["::slotted(*)" should be a valid selector]
expected: FAIL
["::slotted(.class)" should be a valid selector]
expected: FAIL
["::slotted(:not(foo))" should be a valid selector]
expected: FAIL
["::slotted(:not(:nth-last-of-type(2)):not([slot=\\"foo\\"\]))" should be a valid selector]
expected: FAIL
["::slotted(:first-child)" should be a valid selector]
expected: FAIL
["::slotted(:hover)" should be a valid selector]
expected: FAIL
["::slotted(:has(:first-child:last-child))" should be a valid selector]
expected: FAIL

View file

@ -1,7 +1,4 @@
[ParentNode-querySelector-All-xht.xht]
[Detached Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Document.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -17,18 +14,9 @@
[In-document Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[Detached Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[In-document Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -44,30 +32,15 @@
[Document.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Detached Element.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[In-document Element.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Detached Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: :link and :visited pseudo-class selectors, matching no elements: #head :link, #head :visited]
expected: FAIL
[Fragment.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[In-document Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Fragment.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
@ -83,18 +56,12 @@
[Detached Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Detached Element.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Detached Element.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Document.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
@ -104,21 +71,12 @@
[Detached Element.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Document.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Detached Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Document.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
@ -128,18 +86,12 @@
[Fragment.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[In-document Element.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[In-document Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -148,4 +100,3 @@
[Document.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL

View file

@ -1,7 +1,4 @@
[ParentNode-querySelector-All.html]
[Detached Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Document.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -17,18 +14,9 @@
[In-document Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[Detached Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[In-document Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -44,30 +32,15 @@
[Document.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[Detached Element.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[In-document Element.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Detached Element.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: :link and :visited pseudo-class selectors, matching no elements: #head :link, #head :visited]
expected: FAIL
[Fragment.querySelector: Slotted selector: ::slotted(foo)]
expected: FAIL
[In-document Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Fragment.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
@ -83,18 +56,12 @@
[Detached Element.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Detached Element.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Detached Element.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Document.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
@ -104,21 +71,12 @@
[Detached Element.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[Document.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Detached Element.querySelectorAll: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[Document.querySelectorAll: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
[Document.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelectorAll: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
@ -128,18 +86,12 @@
[Fragment.querySelector: ::first-letter pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-letter]
expected: FAIL
[In-document Element.querySelectorAll: Slotted selector: ::slotted(foo)]
expected: FAIL
[Fragment.querySelector: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL
[In-document Element.querySelector: :first-letter pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-letter]
expected: FAIL
[In-document Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo]
expected: FAIL
[Fragment.querySelector: :first-line pseudo-element (one-colon syntax) selector, not matching any elements: #pseudo-element:first-line]
expected: FAIL
@ -148,4 +100,3 @@
[Document.querySelectorAll: ::first-line pseudo-element (two-colon syntax) selector, not matching any elements: #pseudo-element::first-line]
expected: FAIL