Skip to content

Commit

Permalink
Bug 1912990 [wpt PR 47587] - Speculativly test :has-slotted(), a=test…
Browse files Browse the repository at this point in the history
…only

Automatic update from web-platform-tests
Speculativly test :has-slotted() (#47587)

* Speculativly test :has-slotted(), see: w3c/csswg-drafts#10586

* Speculatively test :has-slotted() flattened through multiple slot elements

* Lint
--

wpt-commits: 43f3ba0919b8e4adf07bc9f0620b14d113a1abb6
wpt-pr: 47587

UltraBlame original commit: 33299c67798ea323257a0ce9f05a6593df343457
  • Loading branch information
marco-c committed Sep 26, 2024
1 parent 2d92c36 commit 6a04969
Show file tree
Hide file tree
Showing 15 changed files with 3,491 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<
!
doctype
html
>
<
meta
charset
=
"
utf
-
8
"
>
<
title
>
:
has
-
slotted
(
*
)
<
/
title
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
github
.
com
/
w3c
/
csswg
-
drafts
/
pull
/
10586
"
>
<
link
rel
=
"
match
"
href
=
"
/
css
/
reference
/
ref
-
filled
-
green
-
100px
-
square
-
only
.
html
"
>
<
p
>
Test
passes
if
there
is
a
filled
green
square
.
<
/
p
>
<
div
id
=
"
host
"
>
<
template
shadowrootmode
=
"
open
"
>
<
style
>
slot
{
display
:
block
;
width
:
100px
;
height
:
100px
;
background
-
color
:
red
;
}
:
has
-
slotted
(
*
)
{
background
-
color
:
green
;
}
<
/
style
>
<
slot
>
<
/
slot
>
<
/
template
>
<
div
>
<
/
div
>
<
/
div
>
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
<
!
doctype
html
>
<
meta
charset
=
"
utf
-
8
"
>
<
title
>
:
has
-
slotted
(
.
.
.
)
negative
test
:
no
children
or
white
space
<
/
title
>
<
link
rel
=
"
help
"
href
=
"
https
:
/
/
github
.
com
/
w3c
/
csswg
-
drafts
/
pull
/
10586
"
>
<
link
rel
=
"
match
"
href
=
"
/
css
/
reference
/
ref
-
filled
-
green
-
100px
-
square
-
only
.
html
"
>
<
p
>
Test
passes
if
there
is
a
filled
green
square
.
<
/
p
>
<
div
id
=
"
host
"
>
<
template
shadowrootmode
=
"
open
"
>
<
style
>
slot
{
display
:
block
;
width
:
100px
;
height
:
100px
;
background
-
color
:
green
;
}
:
has
-
slotted
(
*
)
:
has
-
slotted
{
background
-
color
:
red
;
}
<
/
style
>
<
slot
>
<
/
slot
>
<
/
template
>
<
/
div
>
Loading

0 comments on commit 6a04969

Please sign in to comment.