gecko-dev/layout/reftests/scrolling/propagated-overflow-style-2d.html
Daniel Holbert b206e22623 Bug 1344398 part 3: Add reftests for dynamic changes to "overflow" on html & body elements. r=tnikkel
MozReview-Commit-ID: 8WP2qDiKpyP

--HG--
extra : rebase_source : 3be40062f6e1de2e6f8d135f7d11ba2f86e6ab01
2017-05-10 13:55:37 -07:00

25 lines
562 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>
Testcase with only one of [html,body] being scrollable,
with their "overflow" styles being dynamically swapped.
</title>
<style>
body {
overflow: scroll;
}
</style>
<script>
function doTest() {
document.documentElement.style.overflow = "scroll";
document.body.style.overflow = "visible";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</head>
<body>
</body>
</html>