4 <link href=
"resources/flexbox.css" rel=
"stylesheet">
13 -webkit-writing-mode: horizontal-tb;
17 -webkit-writing-mode: horizontal-bt;
21 -webkit-writing-mode: vertical-rl;
25 -webkit-writing-mode: vertical-lr;
29 border:
5px solid pink;
40 .flexbox
> div
> div {
43 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%);
44 background: -moz-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%);
53 <p>Scrollbars should work in all the flexboxes. Each row should be aligned
54 to the same corner.
</p>
57 var writingModes
= ['horizontal-bt', 'vertical-rl', 'vertical-lr', 'horizontal-tb'];
58 var flexDirections
= ['row', 'column', 'row-reverse', 'column-reverse'];
59 writingModes
.forEach(function(writingMode
) {
60 flexDirections
.forEach(function(flexDirection
) {
61 var containerClass
= 'container ' + writingMode
;
62 var flexboxClass
= 'flexbox ' + flexDirection
;
63 document
.body
.innerHTML
+=
64 "<div class='" + containerClass
+ "'>" +
65 "<div class='" + flexboxClass
+ "'>" +
66 "<div><div></div></div>" +
70 document
.body
.innerHTML
+= "<br>";