Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..586534775dff7c295ee709f000a8e768e1e4a05e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html |
| @@ -0,0 +1,14 @@ |
| +<!doctype HTML> |
| +<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| +<div style="will-change: transform; overflow: scroll; width: 200px; height: 200px; background: lightgray"> |
| + <div style="position: relative; z-index: -1; width: 200px; height: 200px; background: lightblue; will-change: transform"></div> |
| + <div id="target" style="width: 200px; height: 200px; margin-top: -100px; margin-left: 100px; background: red"></div> |
| +</div> |
| +<script> |
| +function repaintTest() { |
| + target.style.background = "green"; |
|
Xianzhu
2016/05/31 18:27:04
Nit: too much indent
chrishtr
2016/05/31 18:35:29
Fixed.
|
| +} |
| +onload = function() { |
| + runRepaintAndPixelTest(); |
|
Xianzhu
2016/05/31 18:27:04
Ditto.
chrishtr
2016/05/31 18:35:29
Done.
|
| +} |
| +</script> |