| scroll-snap-type: y mandatory; |
| let write = s => output.innerHTML += s + "<br>"; |
| testRunner.waitUntilDone(); |
| if (!window.testRunner || !window.internals) { |
| write(`To manually test, verify that scrolling in the container snaps such that:`); |
| write(`- The first and fourth boxes align their top edge to the top edge of the scrolling container`); |
| write(`- The second and fifth boxes align their center to the center of the scrolling container`); |
| write(`- The third and sixth boxes align their bottom edge to the bottom edge of the scrolling container`); |
| write("Scroll-snap offsets are: " + internals.scrollSnapOffsets(container)); |
| <div class="child" style="background-color: red; scroll-snap-align: start;"></div> |
| <div class="child" style="background-color: green; scroll-snap-align: center;"></div> |
| <div class="child" style="background-color: blue; scroll-snap-align: end;"></div> |
| <div class="child" style="background-color: aqua; scroll-snap-align: start;"></div> |
| <div class="child" style="background-color: yellow; scroll-snap-align: center;"></div> |
| <div class="child" style="background-color: fuchsia; scroll-snap-align: end;"></div> |