зеркало из https://github.com/mozilla/gecko-dev.git
25 строки
562 B
HTML
25 строки
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>
|
||
|
html {
|
||
|
overflow: scroll;
|
||
|
}
|
||
|
</style>
|
||
|
<script>
|
||
|
function doTest() {
|
||
|
document.documentElement.style.overflow = "visible";
|
||
|
document.body.style.overflow = "scroll";
|
||
|
document.documentElement.removeAttribute("class");
|
||
|
}
|
||
|
window.addEventListener("MozReftestInvalidate", doTest);
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|