Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/scroll-marker-group-size-container-query-root.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Overflow Test: Size container for :root::scroll-marker-group</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
:root {
container-type: inline-size;
width: 400px;
scroll-marker-group: before;
@container (width = 400px) {
&::scroll-marker-group { --test: pass; }
}
}
</style>
<script>
test(() => {
assert_equals(getComputedStyle(document.documentElement, "::scroll-marker-group").getPropertyValue("--test"), "pass");
}, "::scroll-marker-group generates a box inside the root element box and can query it as a size container");
</script>