blob: 5ee6f2fca197a23e5434ae4ab39af9bdbb4b2da4 [file] [log] [blame]
ogaoga231bfd12013-06-08 04:01:371<!DOCTYPE html> <!-- coding:utf-8 -->
2<html>
3<head>
4 <meta charset="utf-8" />
5 <title>CSS Flexbox Test: flex direction: row, writing mode vertical</title>
ogaoga194ff7b2013-06-08 05:02:486 <link rel="author" title="Tsutomu ogaoga Ogasawara" href="mailto:info@ogaoga.org" />
7 <link rel="reviewer" title="Elika J Etemad" href="http://fantasai.inkedblade.net/contact" />
ogaoga231bfd12013-06-08 04:01:378 <!-- You must have at least one spec link, but may have as many as are covered in the test. -->
9 <!-- Be sure to make the main testing area first in the order -->
Rebecca Haucke94f23c2014-08-01 23:53:1810 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow">
ogaoga231bfd12013-06-08 04:01:3711 <!-- The match link is only required if this is a reftest -->
ogaoga194ff7b2013-06-08 05:02:4812 <link rel="match" href="css-flexbox-test1-ref.html">
ogaoga231bfd12013-06-08 04:01:3713 <meta name="flags" content="">
ogaoga194ff7b2013-06-08 05:02:4814 <meta name="assert" content="Test checks that when writing mode is vertical and flex-flow: row, the flex container is vertical.">
ogaoga231bfd12013-06-08 04:01:3715 <style type="text/css">
16 .container {
ogaoga231bfd12013-06-08 04:01:3717 display: flex;
ogaoga194ff7b2013-06-08 05:02:4818 flex-flow: row;
ogaoga231bfd12013-06-08 04:01:3719 writing-mode: vertical-rl;
ogaoga231bfd12013-06-08 04:01:3720 color: white;
ogaoga231bfd12013-06-08 04:01:3721 }
22 .item {
ogaoga194ff7b2013-06-08 05:02:4823 background: green;
24 height: 3em;
25 width: 3em;
26
27 /* make sure UA that doesn't support writing mode and flexbox fails. */
28 float: right;
ogaoga231bfd12013-06-08 04:01:3729 }
30 .error {
31 position: absolute;
ogaoga194ff7b2013-06-08 05:02:4832 background: red;
33 height: 9em;
34 width: 3em;
ogaoga231bfd12013-06-08 04:01:3735 z-index: -1;
nakajmg767cac52013-09-14 08:05:4536 }
ogaoga231bfd12013-06-08 04:01:3737 </style>
38</head>
39<body>
ogaoga194ff7b2013-06-08 05:02:4840 <p>The test passes if you see a tall green box with pairs of the digits 1-9 listed top to bottom in two columns.</p>
ogaoga231bfd12013-06-08 04:01:3741
42 <div class="error"></div>
43 <div class="container">
ogaoga194ff7b2013-06-08 05:02:4844 <div class="item">123<br />123</div>
45 <div class="item">456<br />456</div>
46 <div class="item">789<br />789</div>
ogaoga231bfd12013-06-08 04:01:3747 </div>
48
49</body>
50</html>