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-values/viewport-units-scrollbars-root-properties-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html style="overflow-y: scroll">
<meta name="assert" content="viewport units specified on the root element have accounted for unconditional scrollbars">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
:root {
padding-left: 10vw;
}
body {
margin: 0;
padding: 0;
background-color: lightyellow;
}
</style>
<div id="measure">Measure to left</div>
<script>
test(() => {
assert_less_than(measure.getBoundingClientRect().left, 80);
}, "vw has had the overflow-y scrollbar width removed");
</script>