зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2221410077
Коммит
01f253039b
|
@ -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>
|
|
@ -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>
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче