mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1125750 - Add auto test to detect error when using mOuter to check overflow area of a scrollable frame. r=dbaron
This commit is contained in:
parent
fa71c5ca6c
commit
b89c80ae72
27
layout/reftests/scrolling/move-item-ref.html
Normal file
27
layout/reftests/scrolling/move-item-ref.html
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style type="text/css">
|
||||||
|
#a_box {
|
||||||
|
overflow:auto;
|
||||||
|
width:100px;
|
||||||
|
height:100px;
|
||||||
|
border:1px solid black;
|
||||||
|
}
|
||||||
|
#item {
|
||||||
|
transform: translate(80px, 80px);
|
||||||
|
width:40px;
|
||||||
|
height:40px;
|
||||||
|
position:relative;
|
||||||
|
background-color:#666;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="a_box">
|
||||||
|
<div id="item"></div>
|
||||||
|
</div>
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
31
layout/reftests/scrolling/move-item.html
Normal file
31
layout/reftests/scrolling/move-item.html
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<!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>
|
@ -33,3 +33,4 @@ skip-if(B2G) == huge-vertical-overflow.html huge-vertical-overflow-ref.html
|
|||||||
skip-if(B2G&&browserIsRemote) == iframe-scrolling-attr-2.html iframe-scrolling-attr-ref.html
|
skip-if(B2G&&browserIsRemote) == iframe-scrolling-attr-2.html iframe-scrolling-attr-ref.html
|
||||||
== frame-scrolling-attr-1.html frame-scrolling-attr-ref.html
|
== frame-scrolling-attr-1.html frame-scrolling-attr-ref.html
|
||||||
== frame-scrolling-attr-2.html frame-scrolling-attr-ref.html
|
== frame-scrolling-attr-2.html frame-scrolling-attr-ref.html
|
||||||
|
== move-item.html move-item-ref.html # bug 1125750
|
||||||
|
Loading…
Reference in New Issue
Block a user