9 overflow: hidden; /* hide scrollbars */
29 outline: 2px solid black;
45 background-color: green;
52 window.scrollTo(100, 0);
54 window.addEventListener('load', doTest, false);
58 <p>This test checks the behavior of position:sticky with flex box items.
59 There should be no red.</p>
61 <div class="group" style="left: 100px">
62 <div class="flex-container" style="left: 0px;">
63 <div class="sticky flex-item" style="left:100px"></div>
64 <div class="flex-item" style="background-color: green;"></div>
68 <div class="group" style="left: 150px">
69 <div class="flex-container" style="left: 0px;">
70 <div class="sticky flex-item" style="left:50px"></div>
71 <div class="flex-item" style="background-color: green;"></div>
75 <div class="group" style="left: 200px">
76 <div class="flex-container" style="left: 0px;">
77 <div class="sticky flex-item"></div>
78 <div class="flex-item" style="background-color: green;"></div>