Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html style="overflow-y: scroll">
<meta name="assert" content="width still equals 100vw after the unconditional root scrollbar changes the value of vw">
<link rel="help"
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<style>
#square {
width: 100px;
background: green;
}
@media (width = 100vw) {
#square {
height: 100px;
}
}
</style>
<p>
Pass condition: 100x100 green square below.
</p>
<div id="square" data-expected-height="100"></div>
<script>
checkLayout("#square");
</script>