Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / multicolumn / column-containing-block-003.htm
blobdb75a1c7d865f83c82dcf6ebd03f536742eb5a01
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: Column boxes establish the containing box for floated elements</title>
32 <script src="../../../resources/ahem.js"></script>
33 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
34 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model"/>
35 <meta name="flags" content="" />
36 <meta name="assert" content="Column boxes that contain a floated element create a containing box for the floated element." />
37 <style type="text/css">
38 #parent
40 position: relative;
42 #test
44 -moz-column-count: 2;
45 -moz-column-width: 5em;
46 -moz-column-gap: 1em;
48 -o-column-count: 2;
49 -o-column-width: 5em;
50 -o-column-gap: 1em;
52 -webkit-column-count: 2;
53 -webkit-column-width: 5em;
54 -webkit-column-gap: 1em;
56 column-count: 2;
57 column-width: 5em;
58 column-gap: 1em;
60 div
62 color: green;
63 font: 20px/1 Ahem;
64 height: 6em;
65 width: 11em;
67 #reference
69 background: red;
70 color: red;
71 position: absolute;
72 z-index: -1;
74 #reference span
76 color: green;
78 #test span
80 color: green;
81 width: 2em;
83 #span1
85 float: right;
87 #span2
89 float: left;
91 </style>
92 </head>
93 <body>
94 <p>Test passes if there is no red visible on the page.</p>
95 <div id="parent">
96 <div id="reference">
97 XXXXX<span>X</span>XXXXX XXXXX<span>X</span>XXXXX XXXXX<span>X</span>XXXXX XXXX<span>XX</span>X<span>X</span>XXX XXXXX<span>X</span>XXXXX XXXXX<span>X</span>XXXXX
98 </div>
99 <div id="test">
100 XXXXX XXXXX XXXXX XXX<span id="span1">X XX</span> XXX XXXXX
102 XXXXX XXXXX XXXXX XXX<span id="span2">X XX</span> XXX XXXXX
103 </div>
104 </div>
105 </body>
106 </html>