Bug 1477693 - Part 4: Add a reftest r=mattwoodrow

MozReview-Commit-ID: 3xGRchvAKeC

--HG--
extra : rebase_source : 1543f92e3b123c1316183c961dcc40121db779cb
This commit is contained in:
Miko Mynttinen 2018-07-26 00:25:08 +02:00
parent 536d27c7f5
commit 7bd6d0d2a6
3 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
#green {
position: absolute;
top: 8px;
left: 208px;
width: 200px;
height: 200px;
background-color: green;
z-index: 1;
}
</style>
<body>
<div id="green"></div>
</body>
</html>

View File

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
#parent {
width: 200px;
height: 200px;
}
#box {
width: 200px;
height: 200px;
background-color: red;
z-index: 0;
}
#green {
position: absolute;
top: 8px;
left: 208px;
width: 200px;
height: 200px;
background-color: green;
z-index: 1;
}
</style>
<body>
<div id="parent">
<div id="box"></div>
</div>
<div id="green"></div>
<script type="text/javascript">
function doTest() {
var element = document.getElementById("parent");
element.style.transform = "translate(200px, 0px)";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>

View File

@ -145,3 +145,4 @@ fuzzy-if(d2d,1,5) fuzzy-if(skiaContent,26,208) == table-overflowed-by-animation.
== translate-rounding-1.html translate-rounding-ref.html
== translate-rounding-2.html translate-rounding-ref.html
fails == translate-rounding-3.html translate-rounding-viewport-ref.html # bug 1397146
== invalidate-transform-1.html invalidate-transform-1-ref.html