Bug 722923. Part 0: Add reftest for opacity and out-of-flow needing to invalidate the out-of-flow. r=matspal

This commit is contained in:
Robert O'Callahan 2012-02-08 11:52:59 +13:00
parent 2f18e51054
commit 5c0eba1b31
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html class="reftest-wait">
<body>
<div id="d" style="opacity:0.9; position:absolute; top:100px; width:200px; height:200px; background:lime"></div>
<script>
var d = document.getElementById("d");
function doTest() {
d.style.opacity = 0.8;
setTimeout(function() {
d.style.opacity = 0.5;
document.documentElement.removeAttribute("class");
}, 50);
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html class="reftest-wait">
<body>
<div id="d" style="opacity:0.9; height:10px;">
<div style="position:absolute; top:100px; width:200px; height:200px; background:lime"></div>
</div>
<script>
var d = document.getElementById("d");
function doTest() {
d.style.opacity = 0.8;
setTimeout(function() {
d.style.opacity = 0.5;
document.documentElement.removeAttribute("class");
}, 50);
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>

View File

@ -1690,3 +1690,4 @@ needs-focus != 703186-1.html 703186-2.html
== 714519-2-q.html 714519-2-ref.html
fuzzy-if(cocoaWidget,1,170) == 718521.html 718521-ref.html
== 720987.html 720987-ref.html
== 722923-1.html 722923-1-ref.html