| Index: third_party/WebKit/LayoutTests/paint/invalidation/compositing/non-composited-sticky-element-repaint.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/compositing/non-composited-sticky-element-repaint.html b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/non-composited-sticky-element-repaint.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ccae1bdc71d9c052941abdb8b911489f00421e88
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/compositing/non-composited-sticky-element-repaint.html
|
| @@ -0,0 +1,48 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +.scroller {
|
| + overflow: scroll;
|
| + width: 200px;
|
| + height: 600px;
|
| +}
|
| +
|
| +.composited {
|
| + will-change: transform;
|
| +}
|
| +
|
| +.box {
|
| + background: rgba(255, 0, 0, 0.5);
|
| + position: sticky;
|
| + width: 100%;
|
| + height: 50px;
|
| + top: 0px;
|
| +}
|
| +
|
| +.container {
|
| + width: 100%;
|
| + height: 1000px;
|
| + background: green;
|
| +}
|
| +
|
| +.spacer {
|
| + height: 300px;
|
| +}
|
| +</style>
|
| +
|
| +<div id="scroller" class="scroller">
|
| + <div class="spacer"></div>
|
| + <div class="composited container">
|
| + <div class="box"></div>
|
| + </div>
|
| +</div>
|
| +
|
| +<script src="../resources/text-based-repaint.js"></script>
|
| +<script>
|
| + // The sticky box should not be invalidated as it hasn't
|
| + // passed the starting constraint yet.
|
| + function repaintTest() {
|
| + let scroller = document.getElementById('scroller');
|
| + scroller.scrollTop = 200;
|
| + }
|
| + onload = runRepaintAndPixelTest;
|
| +</script>
|
|
|