diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/invalidation/scroll-inactive-layers-2.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/invalidation/scroll-inactive-layers-2.html')
-rw-r--r-- | layout/reftests/invalidation/scroll-inactive-layers-2.html | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/layout/reftests/invalidation/scroll-inactive-layers-2.html b/layout/reftests/invalidation/scroll-inactive-layers-2.html new file mode 100644 index 000000000..11ccc75e5 --- /dev/null +++ b/layout/reftests/invalidation/scroll-inactive-layers-2.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html class="reftest-wait" + reftest-displayport-x="0" + reftest-displayport-y="0" + reftest-displayport-w="800" + reftest-displayport-h="1000"> +<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> |