4 <link href=
"resources/flexbox.css" rel=
"stylesheet">
10 background-color: red;
17 background-color: lime;
23 background-color: green;
26 <script src=
"../../resources/check-layout.js"></script>
28 window
.onload = function() {
29 checkLayout('.flexbox');
31 // Make failures more obvious by showing the red background that should have been clipped.
32 Array
.prototype.forEach
.call(document
.querySelectorAll(".flexbox"), function(element
) {
33 element
.scrollTop
= 1000;
40 <div class=
"flexbox align-items-flex-end" data-expected-scroll-height=
"50">
44 <div class=
"flexbox align-items-flex-end" data-expected-scroll-height=
"150">
46 <div style=
"position: absolute; left: 0; top: 50px;"></div>
49 <div class=
"flexbox align-items-center" data-expected-scroll-height=
"75">
53 <div class=
"flexbox" data-expected-scroll-height=
"100">
57 <div class=
"flexbox wrap-reverse" data-expected-scroll-height=
"50">
62 <div class=
"flexbox align-items-flex-end vertical-padding" data-expected-scroll-height=
"65">
66 <div class=
"flexbox align-items-center vertical-padding" data-expected-scroll-height=
"90">
70 <div class=
"flexbox vertical-padding" data-expected-scroll-height=
"115">
74 <div class=
"flexbox wrap-reverse vertical-padding" data-expected-scroll-height=
"65">