зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1412375 - Add reftest for atomicity of masks. r=kats
MozReview-Commit-ID: 7rckMw1DWFj --HG-- extra : rebase_source : 8de286b236e1ea68178d8c908a308365f4e169b9
This commit is contained in:
Родитель
faa067542e
Коммит
545f6207bd
|
@ -0,0 +1,30 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Masks need to cause grouping / intermediate surfaces</title>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.outer {
|
||||||
|
filter: opacity(50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one {
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.another {
|
||||||
|
background: blue;
|
||||||
|
margin-top: -50px;
|
||||||
|
margin-left: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div class="one box"></div>
|
||||||
|
<div class="another box"></div>
|
||||||
|
</div>
|
|
@ -0,0 +1,31 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Masks need to cause grouping / intermediate surfaces</title>
|
||||||
|
<style>
|
||||||
|
|
||||||
|
.outer {
|
||||||
|
/* should give similar results to opacity: 0.5 */
|
||||||
|
mask: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one {
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.another {
|
||||||
|
background: blue;
|
||||||
|
margin-top: -50px;
|
||||||
|
margin-left: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="outer">
|
||||||
|
<div class="one box"></div>
|
||||||
|
<div class="another box"></div>
|
||||||
|
</div>
|
|
@ -2066,3 +2066,4 @@ fuzzy-if(Android,66,574) fuzzy-if(d2d,89,777) fuzzy-if(!Android&&!d2d,1,31219) =
|
||||||
pref(layout.css.moz-document.url-prefix-hack.enabled,true) == 1446470.html 1035091-ref.html
|
pref(layout.css.moz-document.url-prefix-hack.enabled,true) == 1446470.html 1035091-ref.html
|
||||||
pref(layout.css.moz-document.url-prefix-hack.enabled,false) == 1446470-2.html 1035091-ref.html
|
pref(layout.css.moz-document.url-prefix-hack.enabled,false) == 1446470-2.html 1035091-ref.html
|
||||||
test-pref(layout.css.prefixes.gradients,false) == 1451874.html 1451874-ref.html
|
test-pref(layout.css.prefixes.gradients,false) == 1451874.html 1451874-ref.html
|
||||||
|
fuzzy-if(!(webrender&>kWidget),1-2,17500-17500) == 1412375.html 1412375-ref.html
|
||||||
|
|
Загрузка…
Ссылка в новой задаче