1
0
Fork 0
firefox/testing/web-platform/tests/css/css-conditional/container-queries/style-query-unset-on-root.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
735 B
HTML

<!DOCTYPE html>
<title>CSS Container Queries Test: query unset style for custom property on :root should always match</title>
<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#style-container">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/cq-testcommon.js"></script>
<style>
:root { container-name: --root; }
@container --root style(--foo: unset) {
#target { color: green; }
}
</style>
<div id="target"></div>
<script>
setup(() => assert_implements_style_container_queries());
test(() => {
assert_equals(getComputedStyle(target).color, "rgb(0, 128, 0)");
}, "Match style(--foo: unset) on :root element");
</script>