9 overflow: hidden; /* hide scrollbars */
29 outline: 2px solid black;
46 background-color: green;
53 background-color: red;
59 window.scrollTo(100, 0);
61 window.addEventListener('load', doTest, false);
65 <p>This test checks the behavior of position:sticky with flex box items.
66 There should be no red.</p>
68 <div class="group" style="left: 100px">
69 <div class="indicator box" style="left: 100px;"></div>
70 <div class="flex-container" style="left: 0px;">
71 <div class="sticky flex-item"></div>
72 <div class="flex-item" style="background-color: green;"></div>
76 <div class="group" style="left: 150px">
77 <div class="indicator box" style="left: 50px;"></div>
78 <div class="flex-container" style="left: 0px;">
79 <div class="sticky flex-item"></div>
80 <div class="flex-item" style="background-color: green;"></div>
84 <div class="group" style="left: 200px">
85 <div class="indicator box" style="left: 0;"></div>
86 <div class="flex-container" style="left: 0px;">
87 <div class="sticky flex-item"></div>
88 <div class="flex-item" style="background-color: green;"></div>