Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / multicolumn / column-containing-block-001.htm
blob860f4a0c269f32b7adf382552a1a72ac3c297139
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 do not establish containing blocks for position absolute</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 the static position of an absolutely positioned element do not create a containing block. Absolutely positioned elements are positioned based on the nearest ancestor element that is not static postioned." />
37 <style type="text/css">
38 div
40 -moz-column-count: 2;
41 -moz-column-width: 5em;
42 -moz-column-gap: 1em;
44 -o-column-count: 2;
45 -o-column-width: 5em;
46 -o-column-gap: 1em;
48 -webkit-column-count: 2;
49 -webkit-column-width: 5em;
50 -webkit-column-gap: 1em;
52 column-count: 2;
53 column-width: 5em;
54 column-gap: 1em;
56 div
58 background: green;
59 color: green;
60 font: 20px/1 Ahem;
61 height: 6em;
62 position: relative;
63 width: 11em;
65 span
67 color: red;
69 #span2
71 color: green;
72 position: absolute;
73 left: 8em;
74 width: 2em;
76 </style>
77 </head>
78 <body>
79 <p>Test passes if there is no red visible on the page.</p>
80 <div>
81 XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX XX<span>XX</span><span id="span2">XX XX</span>X XX<span>XX</span>X XXXXX
82 </div>
83 </body>
84 </html>