Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / multicolumn / column-width-applies-to-010.htm
blobb916405dc3cedc9412ff56b5c57b382802213c22
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-width applied to 'display: list-item'</title>
32 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
33 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw"/>
34 <meta name="flags" content="" />
35 <meta name="assert" content="The 'column-width' property applies to elements of 'display: list-item'."/>
36 <style type="text/css">
37 #parent
39 font: 20px/1 monospace;
40 margin-left: 2em;
41 position: relative;
43 #multicolumn
45 color: red;
46 display: list-item;
47 -moz-column-width: 5em;
49 -o-column-width: 5em;
51 -webkit-column-width: 5em;
53 column-width: 5em;
55 #multicolumn, #reference
57 height: 6em;
58 width: 11em;
60 #reference
62 color: green;
63 position: absolute;
64 top: 0;
66 #reference div
68 position: absolute;
69 width: 5em;
71 #right
73 right: 0;
75 #marker
77 display: list-item;
79 </style>
80 </head>
81 <body>
82 <p>Test passes if there is a marker to the left of the first line of text and there is no red visible on the page.</p>
83 <div id="parent">
84 <span id="multicolumn">
85 AAAAAAAAA BBBBBBBBB CCCCCCCCC DDDDDDDDD EEEEEEEEE FFFFFFFFF GGGGGGGGG HHHHHHHHH IIIIIIIII JJJJJJJJJ KKKKKKKKK LLLLLLLLL
86 </span>
87 <div id="reference">
88 <div id="marker">AAAAAAAAA BBBBBBBBB CCCCCCCCC DDDDDDDDD EEEEEEEEE FFFFFFFFF</div>
89 <div id="right">GGGGGGGGG HHHHHHHHH IIIIIIIII JJJJJJJJJ KKKKKKKKK LLLLLLLLL</div>
90 </div>
91 </div>
92 </body>
93 </html>