Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / flexbox / flexbox-groups-001.htm
blobdadc70f2ef93119180dd50b21c9bcb7136a35d30
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: Flex groups with lower numbers flex to fill space first</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="image" />
35 <meta name="assert" content="box-flex-groups with lower integer values flex before higher groups are allowed to take space"/>
36 <style type="text/css">
37 .box
39 display: -ms-box;
40 display: -moz-box;
41 display: -o-box;
42 display: -webkit-box;
43 display: box;
44 background: red;
45 width: 300px;
46 height: 100px;
48 .child
50 width: 100px;
51 height: 100px;
52 -ms-box-flex: 1;
53 -moz-box-flex: 1;
54 -o-box-flex: 1;
55 -webkit-box-flex: 1;
56 box-flex: 1;
57 background: green;
59 .one
61 -ms-box-flex-group: 1;
62 -moz-box-flex-group: 1;
63 -o-box-flex-group: 1;
64 -webkit-box-flex-group: 1;
65 box-flex-group: 1;
66 background: url('../support/flexbox_200x100g_red.png') top left no-repeat red;
68 .two
70 -ms-box-flex-group: 2;
71 -moz-box-flex-group: 2;
72 -o-box-flex-group: 2;
73 -webkit-box-flex-group: 2;
74 box-flex-group: 2;
75 background: url('../support/flexbox_100x100g_red.png') top left no-repeat red;
77 </style>
78 </head>
79 <body>
80 <p>This test passes if there is no red showing.</p>
81 <div class="box">
82 <div class="child one"></div>
83 <div class="child two"></div>
84 </div>
85 </body>
86 </html>