gecko-dev/layout/reftests/scrolling/move-item.html
Ethan Lin a4f6df37a6 Bug 1125750 - Add auto test to detect error when using mOuter to check overflow area of a scrollable frame. r=dbaron
--HG--
extra : rebase_source : 25d3b279293a57d0e61dd16e0ddfc1a8086194fa
2015-03-03 17:46:00 +01:00

32 lines
646 B
HTML

<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<meta charset="utf-8">
<style type="text/css">
#a_box {
overflow:auto;
width:100px;
height:100px;
border:1px solid black;
}
#item {
width:40px;
height:40px;
position:relative;
background-color:#666;
}
</style>
</head>
<body onload="runTest();">
<div id="a_box">
<div id="item"></div>
</div>
<script>
function runTest() {
document.getElementById("item").style.transform = "translate(80px, 80px)";
document.documentElement.removeAttribute("class");
}
</script>
</body>
</html>