| <link href="resources/flexbox.css" rel="stylesheet"> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="../../resources/check-layout-th.js"></script> |
| window.onload = function() { |
| // Make failures more obvious by showing the red background that should have been clipped. |
| Array.prototype.forEach.call(document.querySelectorAll(".flexbox"), function(element) { |
| element.scrollTop = 1000; |
| <div class="flexbox align-items-flex-end" data-expected-scroll-height="50"> |
| <div class="flexbox align-items-flex-end" data-expected-scroll-height="150"> |
| <div style="position: absolute; left: 0; top: 50px;"></div> |
| <div class="flexbox align-items-center" data-expected-scroll-height="75"> |
| <div class="flexbox" data-expected-scroll-height="100"> |
| <div class="flexbox wrap-reverse" data-expected-scroll-height="50"> |
| <div class="flexbox align-items-flex-end vertical-padding" data-expected-scroll-height="65"> |
| <div class="flexbox align-items-center vertical-padding" data-expected-scroll-height="90"> |
| <div class="flexbox vertical-padding" data-expected-scroll-height="115"> |
| <div class="flexbox wrap-reverse vertical-padding" data-expected-scroll-height="65"> |