| Index: third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html
|
| diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c684e0c4c7146c100c6905bdb2552a8913e8d549
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/compositing/overflow/mixed-composited-nested-sticky.html
|
| @@ -0,0 +1,64 @@
|
| +<style>
|
| +body {
|
| + margin: 0;
|
| +}
|
| +
|
| +.container {
|
| + width: 200px;
|
| + height: 2000px;
|
| +}
|
| +
|
| +.composited {
|
| + /* Forces promotion without creating a stacking context. */
|
| + backface-visibility: hidden;
|
| +}
|
| +
|
| +.outerSticky {
|
| + position: sticky;
|
| + top: 50px;
|
| + background-color: green;
|
| + width: 200px;
|
| + height: 200px;
|
| +}
|
| +
|
| +.middleSticky {
|
| + position: sticky;
|
| + top: 100px;
|
| + background-color: yellow;
|
| + width: 200px;
|
| + height: 100px;
|
| +}
|
| +
|
| +.innerSticky {
|
| + position: sticky;
|
| + top: 125px;
|
| + background-color: red;
|
| + width: 200px;
|
| + height: 50px;
|
| +}
|
| +</style>
|
| +
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| +
|
| +function finishTest() {
|
| + window.scrollTo(0, 200);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| +}
|
| +
|
| +window.addEventListener('load', function() {
|
| + requestAnimationFrame(function() {
|
| + requestAnimationFrame(finishTest);
|
| + });
|
| +});
|
| +</script>
|
| +
|
| +<div class="container">
|
| + <div class="outerSticky">
|
| + <div class="middleSticky composited">
|
| + <div class="innerSticky composited"></div>
|
| + </div>
|
| + </div>
|
| +</div>
|
|
|