fune/testing/web-platform/tests/css/css-scoping/host-defined.html
Steinar H. Gunderson 908103b8e9 Bug 1889330 [wpt PR 45490] - [css-selectors-4] Add a test for the shadow host not matching :defined., a=testonly
Automatic update from web-platform-tests
[css-selectors-4] Add a test for the shadow host not matching :defined.

Bug: 332587538
Change-Id: I0a7e566d4ae1e8b14a7c6ec2829ca635dc2880fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5416379
Commit-Queue: Steinar H Gunderson <sesse@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1281725}

--

wpt-commits: a1b471820ca79f1dc16590c74ecd2dca3a47e0c1
wpt-pr: 45490
2024-04-10 09:25:45 +00:00

24 lines
759 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Shadow host is considered, but does not match :defined</title>
<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
<link rel="help" href="https://crbug.com/332587538">
<link rel="help" href="https://drafts.csswg.org/selectors/#featureless">
<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"></div>
<script>
host.attachShadow({mode: "open"}).innerHTML = `
<style>
:host div {
width: 100px;
height: 100px;
background-color: red;
}
:not(:defined) div {
background-color: green;
}
</style>
<div></div>
`;
</script>