mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2d595cf6e4
--HG-- extra : rebase_source : a0eb465b54735c13e7b1934c3f6379ef74fd3f35
83 lines
1.5 KiB
HTML
83 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<title>Scrolling over inactive layers shouldn't repaint their contents even if both the top and the bottom edge of the inactive layers are offscreen</title>
|
|
|
|
<style>
|
|
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.outer {
|
|
border: 1px solid black;
|
|
width: 100px;
|
|
height: 2000px;
|
|
margin-right: 20px;
|
|
padding-top: 200px;
|
|
float: left;
|
|
}
|
|
|
|
.opacity {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.transform {
|
|
transform: translateX(1px);
|
|
}
|
|
|
|
.filter {
|
|
filter: url(#filter);
|
|
}
|
|
|
|
.mask {
|
|
mask: url(#mask);
|
|
}
|
|
|
|
.reftest-no-paint {
|
|
height: 50px;
|
|
border: 1px solid lime;
|
|
}
|
|
|
|
</style>
|
|
|
|
<svg height="0">
|
|
<defs>
|
|
<filter id="filter" filterUnits="objectBoundingBox"
|
|
x="0%" y="0%" width="100%" height="100%"
|
|
color-interpolation-filters="sRGB">
|
|
<feMerge><feMergeNode/><feMerge>
|
|
</filter>
|
|
<mask id="mask" maskContentUnits="objectBoundingBox">
|
|
<rect x="0" y="0" width="1" height="1" fill="white"/>
|
|
</mask>
|
|
</defs>
|
|
</svg>
|
|
|
|
<div class="outer opacity">
|
|
<div class="reftest-no-paint"></div>
|
|
</div>
|
|
|
|
<div class="outer transform">
|
|
<div class="reftest-no-paint"></div>
|
|
</div>
|
|
|
|
<div class="outer filter">
|
|
<div class="reftest-no-paint"></div>
|
|
</div>
|
|
|
|
<div class="outer mask">
|
|
<div class="reftest-no-paint"></div>
|
|
</div>
|
|
|
|
<script>
|
|
|
|
function doTest() {
|
|
document.documentElement.scrollTop = 100;
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
document.documentElement.scrollTop = 50;
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
|
|
</script>
|