Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / grid / grid-items-004-expected.htm
blobfcdde478a6726aa08300443249a8e3b2442c39da
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: Grid items set to 'display: inline'</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://dev.w3.org/csswg/css3-grid-align/#grid-items"/>
35 <meta name="flags" content="ahem" />
36 <meta name="assert" content="Elements set to 'display: inline' are inline-level elements that can be placed by grid alignment properties." />
37 <style type="text/css">
38 #test
40 background: red;
41 color: green;
42 display: -ms-grid;
43 display: -moz-grid;
44 display: -o-grid;
45 display: -webkit-grid;
46 display: grid;
47 font: 20px/1 Ahem;
48 -ms-grid-template-columns: auto 1fr;
49 -moz-grid-template-columns: auto 1fr;
50 -o-grid-template-columns: auto 1fr;
51 -webkit-grid-template-columns: auto 1fr;
52 grid-template-columns: auto 1fr;
53 -ms-grid-template-rows: auto 1fr;
54 -moz-grid-template-rows: auto 1fr;
55 -o-grid-template-rows: auto 1fr;
56 -webkit-grid-template-rows: auto 1fr;
57 grid-template-rows: auto 1fr;
58 width: 12em;
60 div div
62 -ms-grid-column: 1;
63 -moz-grid-column: 1;
64 -o-grid-column: 1;
65 -webkit-grid-column: 1;
66 grid-column: 1;
67 -ms-grid-row: 1;
68 -moz-grid-row: 1;
69 -o-grid-row: 1;
70 -webkit-grid-row: 1;
71 grid-row: 1;
73 span
75 display: inline;
76 background: green;
77 -ms-grid-column: 2;
78 -moz-grid-column: 2;
79 -o-grid-column: 2;
80 -webkit-grid-column: 2;
81 grid-column: 2;
82 -ms-grid-row: 1;
83 -moz-grid-row: 1;
84 -o-grid-row: 1;
85 -webkit-grid-row: 1;
86 grid-row: 1;
88 </style>
89 </head>
90 <body>
91 <p>Test passes if there is no red visible on the page.</p>
92 <div id="test">
93 <div>XXXXXX</div>
94 <span>XXXXXX</span>
95 </div>
96 </body>
97 </html>