Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / flexbox / flexbox-direction-001.htm
blob713820119428c8f46b9feb8fb3dd59aef4ba5f1c
1 <!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <!--
3 Internet Explorer Test Pages Copyright © 2012 Microsoft Corporation. All rights reserved.
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
8 Redistributions of source code must retain the above copyright notice, this list of
9 conditions and the following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of
12 conditions and the following disclaimer in the documentation and/or other materials
13 provided with the distribution.
15 Neither the name of the Microsoft Corporation nor the names of its contributors may be
16 used to endorse or promote products derived from this software without specific prior
17 written permission.
19 THIS SOFTWARE IS PROVIDED BY MICROSOFT CORPORATION "AS IS" AND ANY EXPRESS OR IMPLIED
20 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICROSOFT CORPORATION
22 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
25 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 POSSIBILITY OF SUCH DAMAGE.
28 -->
29 <html xmlns="http://www.w3.org/1999/xhtml">
30 <head>
31 <title>CSS Test: Box-Direction property is correct</title>
32 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
33 <link rel="help" href="http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/"/>
34 <meta name="flags" content="" />
35 <meta name="assert" content="box-direction property [normal, reverse, inherit] is correct in simple cases"/>
36 <style type="text/css">
37 .parent
39 float:left; /*to shrink to fit*/
41 .box
43 display: -ms-box;
44 display: -moz-box;
45 display: -o-box;
46 display: -webkit-box;
47 display: box;
49 .child
51 border:thin solid black;
52 margin: 0 10px;
53 padding:0 10px;
54 font-size:large;
55 -ms-box-direction:normal;
56 -webkit-box-direction:normal;
57 -moz-box-direction:normal;
58 -o-box-direction:normal;
59 box-direction:normal;
61 .reverse
63 -ms-box-direction:reverse;
64 -webkit-box-direction:reverse;
65 -moz-box-direction:reverse;
66 -o-box-direction:reverse;
67 box-direction:reverse;
69 .inherit
71 -ms-box-direction:inherit;
72 -webkit-box-direction:inherit;
73 -moz-box-direction:inherit;
74 -o-box-direction:inherit;
75 box-direction:inherit;
77 .lr
79 direction:ltr;
81 .rl
83 direction:rtl;
85 </style>
86 </head>
87 <body>
88 <p>Test passes if four rows of numbers (1,2,3) are read in increasing numerical order left to right.</p>
89 <div class="parent">
90 <div class="box">
91 <div class="child">1</div>
92 <div class="child">2</div>
93 <div class="child">3</div>
94 </div>
95 <br />
96 <div class="box reverse">
97 <div class="child">3</div>
98 <div class="child">2</div>
99 <div class="child">1</div>
100 </div>
101 <br />
102 <div class="lr">
103 <div class="box inherit">
104 <div class="child">1</div>
105 <div class="child">2</div>
106 <div class="child">3</div>
107 </div>
108 </div>
109 <br />
110 <div class="rl">
111 <div class="box inherit">
112 <div class="child">3</div>
113 <div class="child">2</div>
114 <div class="child">1</div>
115 </div>
116 </div>
117 </div>
118 </body>
119 </html>