Automatic update from web-platform-tests Update spec references in tests for css-scoping/ The css-scoping spec has been moved to css-shadow. Update all spec URIs in wpt tests. Also move some URIs from TR to drafts.csswg as the new location is not published as a WD yet. Change-Id: I187ed1dd94278602ba4b5fd96a98bc4b34f84139 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7486892 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1570417} -- wpt-commits: e965dc6af7aed962382fba493c6c6e342c56be51 wpt-pr: 57211
29 lines
1.3 KiB
HTML
29 lines
1.3 KiB
HTML
<!doctype html>
|
|
<meta charset="utf-8" />
|
|
<title>CSS Selectors: slotted pseudo selectors</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-shadow/#slotted-pseudo" />
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/parsing-testcommon.js"></script>
|
|
<script>
|
|
test_valid_selector("::slotted(bar)");
|
|
test_valid_selector('::slotted([attr="foo"])');
|
|
test_valid_selector("::slotted(*)");
|
|
test_valid_selector("::slotted(.class)");
|
|
test_valid_selector("::slotted(:not(foo))");
|
|
test_valid_selector('::slotted(:not(:nth-last-of-type(2)):not([slot="foo"]))');
|
|
test_valid_selector("::slotted(:first-child)");
|
|
test_valid_selector("::slotted(:hover)");
|
|
test_valid_selector("::slotted(:has(:first-child:last-child))");
|
|
test_invalid_selector("::slotted");
|
|
test_invalid_selector("::slotted()");
|
|
test_invalid_selector("::slotted(0)");
|
|
test_invalid_selector(":slotted(foo)");
|
|
test_invalid_selector("::slotted(foo):first-child");
|
|
test_invalid_selector("::slotted(foo):hover");
|
|
test_invalid_selector("::slotted(foo):focus");
|
|
test_invalid_selector("::slotted(foo):lang(en)");
|
|
test_invalid_selector("::slotted(foo):dir(ltr)");
|
|
test_invalid_selector('::slotted(foo) + ::slotted(bar)');
|
|
</script>
|