| Index: third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-squashed-layer-in-rect.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-squashed-layer-in-rect.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-squashed-layer-in-rect.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c9f278add3bd2de7c192ac7b7b6334f0002faff
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/repaint-squashed-layer-in-rect.html
|
| @@ -0,0 +1,19 @@
|
| +<!doctype html>
|
| +<div style="height: 800px; width: 800px; background-color: lightgray; transform:translateZ(0)">
|
| +</div>
|
| +<div style="position:absolute; top: 0px; height: 200px; width: 200px">
|
| +</div>
|
| +<div style="position:absolute; top: 400px; left: 400px; height: 200px; width: 200px; background-color: lightblue">
|
| + <div id="imgElement" style="height: 200px; width: 200px; background-color: lightblue">
|
| + </div>
|
| +</div>
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| +// Test that a repaint for the rect containing the changed background image is issued in the coordinate space of the
|
| +// squashing layer, *not* local to the div with the background image on it.
|
| +function repaintTest() {
|
| + var imgElement = document.querySelector("#imgElement");
|
| + imgElement.style.backgroundImage = "url('data:image/gif;base64,R0lGODdhAgACAIABAAAAAP///ywAAAAAAgACAAACA0QCBQA7')";
|
| +}
|
| +runRepaintAndPixelTest();
|
| +</script>
|
|
|