15 border:
5px solid lightgreen;
29 background: -webkit-radial-gradient(center, ellipse cover, rgba(
30,
87,
153,
1)
0%,rgba(
89,
148,
202,
1)
62%,rgba(
95,
154,
207,
0.7)
68%,rgba(
125,
185,
232,
0)
100%);
34 <p>Scrollbars should work in all the flexboxes.
</p>
37 // The -almost values are cases where we don't scroll all the way because of
38 // https://bugs.webkit.org/show_bug.cgi?id=76129 .
40 'left top', 'left top', 'right top', 'left bottom',
41 'left bottom-almost', 'left bottom-almost', 'right bottom-almost', 'left top',
42 'right-almost top', 'right-almost top', 'right-almost bottom', 'left top',
43 'left top', 'left top', 'left bottom', 'right top'];
45 var testContents
= '';
46 for (var i
= 0; i
< results
.length
; ++i
) {
48 testContents
+= "<div class='test-row'>";
50 var containerClass
= 'container ' + results
[i
];
52 "<div class='" + containerClass
+ "'>" +
53 "<div class='flexbox'>" +
58 testContents
+= "</div>";
61 document
.body
.innerHTML
+= testContents
;
63 Array
.prototype.forEach
.call(document
.querySelectorAll(".right"), function(element
) {
64 element
.firstChild
.scrollLeft
= 1000;
67 Array
.prototype.forEach
.call(document
.querySelectorAll(".bottom"), function(element
) {
68 element
.firstChild
.scrollTop
= 1000;
71 Array
.prototype.forEach
.call(document
.querySelectorAll(".right-almost"), function(element
) {
72 element
.firstChild
.scrollLeft
= element
.firstChild
.scrollWidth
- element
.firstChild
.offsetWidth
;
75 Array
.prototype.forEach
.call(document
.querySelectorAll(".bottom-almost"), function(element
) {
76 element
.firstChild
.scrollTop
= element
.firstChild
.scrollHeight
- element
.firstChild
.offsetHeight
;