-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1912990 [wpt PR 47587] - Speculativly test :has-slotted(), a=test…
…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
Showing
15 changed files
with
3,491 additions
and
0 deletions.
There are no files selected for viewing
186 changes: 186 additions & 0 deletions
186
testing/web-platform/tests/css/css-scoping/has-slotted-001.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
> |
193 changes: 193 additions & 0 deletions
193
testing/web-platform/tests/css/css-scoping/has-slotted-002.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
> |
Oops, something went wrong.