mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
28 lines
514 B
HTML
28 lines
514 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<style>
|
|
.test {
|
|
position:fixed;
|
|
display:none;
|
|
width:100px; height:100px;
|
|
background:yellow;
|
|
}
|
|
.doTest .test {
|
|
display:block;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div style="transform:translate(10px,0); overflow:scroll; width:200px; height:200px;">
|
|
<div class="test"></div>
|
|
</div>
|
|
<script>
|
|
function doTest() {
|
|
document.documentElement.setAttribute("class", "doTest");
|
|
}
|
|
window.addEventListener("MozReftestInvalidate", doTest, false);
|
|
</script>
|
|
</body>
|
|
</html>
|