| Index: third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ddb860bc586c13bb41d89e2ae4f4bf7ae3574a01
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| @@ -0,0 +1,51 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| +if (window.internals)
|
| + window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
|
| +
|
| +function repaintTest() {
|
| + container.scrollTop = 100;
|
| +}
|
| +
|
| +onload = runRepaintAndPixelTest;
|
| +</script>
|
| +<style>
|
| +::-webkit-scrollbar {
|
| + width: 0;
|
| + height: 0;
|
| +}
|
| +
|
| +#container {
|
| + width: 100px;
|
| + height: 300px;
|
| + border: 1px black solid;
|
| + overflow: scroll;
|
| + position: relative;
|
| + backface-visibility: hidden;
|
| +}
|
| +
|
| +#neg-z {
|
| + position: relative;
|
| + z-index: -1;
|
| +}
|
| +
|
| +.scrolled {
|
| + width: 50px;
|
| + height: 50px;
|
| + margin: 10px;
|
| + position: relative;
|
| + background-color: green;
|
| +}
|
| +</style>
|
| +<div id="container">
|
| + <div id="neg-z">
|
| + <div class="scrolled">1</div>
|
| + <div class="scrolled">2</div>
|
| + <div class="scrolled">3</div>
|
| + <div class="scrolled">4</div>
|
| + <div class="scrolled">5</div>
|
| + <div class="scrolled">6</div>
|
| + <div class="scrolled">7</div>
|
| + </div>
|
| +</div>
|
|
|