Add reftest for bug 830299.

This commit is contained in:
L. David Baron 2013-01-23 13:11:26 +00:00
parent f4b6720f8f
commit 03d41f69d4
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Testcase, bug 830299</title>
<meta charset=UTF-8>
<style type="text/css">
html { margin: 1px; padding: 2px }
body { margin: 4px; padding: 8px }
#outer {
position: absolute;
top: 3px; left: 5px;
width: 200px; height: 200px;
background: yellow;
}
#inner {
position: absolute;
top: 7px; left: 9px;
width: 100px; height: 100px;
background: aqua;
}
</style>
</head>
<body>
<div id="outer">
<div id="inner">inner</div>
</div>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en-US" class="reftest-wait">
<head>
<title>Testcase, bug 830299</title>
<meta charset=UTF-8>
<style type="text/css">
html { margin: 1px; padding: 2px }
body { margin: 4px; padding: 8px }
#outer {
position: absolute;
overflow: hidden;
transform: translateX(0px);
top: 3px; left: 5px;
width: 200px; height: 200px;
background: yellow;
}
#inner {
position: fixed;
top: 7px; left: 9px;
width: 100px; height: 100px;
background: aqua;
}
</style>
<script type="text/javascript">
window.addEventListener("load", function(event) {
setTimeout(function() {
document.getElementById("inner").style.display = "";
document.documentElement.removeAttribute("class");
}, 100);
}, false);
</script>
</head>
<body>
<div id="outer">
<div id="inner" style="display:none">inner</div>
</div>
</body>
</html>

View File

@ -115,6 +115,7 @@ skip-if(B2G) fails-if(Android) fuzzy-if(cocoaWidget,1,2) == stresstest-1.html st
# Bugs
== 601894-1.html 601894-ref.html
== 601894-2.html 601894-ref.html
fails asserts(1) == 830299-1.html 830299-1-ref.html
# Bug 722777
== table-1a.html table-1-ref.html
== table-1b.html table-1-ref.html