Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / ietestcenter / css3 / grid / display-grid-001-expected.htm
blob9025267fcaff9990c7e762321594381706f27494
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: Display property with 'grid' value</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-declaration" />
35 <meta name="flags" content="ahem" />
36 <meta name="assert" content="The 'display' property accepts the 'grid' value." />
37 <style type="text/css">
38 #parent
40 font: 20px/1 Ahem;
41 position: relative;
42 width: 13em;
44 #test
46 color: green;
47 display: -ms-grid;
48 display: -moz-grid;
49 display: -o-grid;
50 display: -webkit-grid;
51 display: grid;
52 height: 3em;
53 -ms-grid-template-columns: auto 1fr;
54 -moz-grid-template-columns: auto 1fr;
55 -o-grid-template-columns: auto 1fr;
56 -webkit-grid-template-columns: auto 1fr;
57 grid-template-columns: auto 1fr;
58 -ms-grid-template-rows: auto 1fr;
59 -moz-grid-template-rows: auto 1fr;
60 -o-grid-template-rows: auto 1fr;
61 -webkit-grid-template-rows: auto 1fr;
62 grid-template-rows: auto 1fr;
64 #title
66 -ms-grid-column: 1;
67 -moz-grid-column: 1;
68 -o-grid-column: 1;
69 -webkit-grid-column: 1;
70 grid-column: 1;
71 -ms-grid-row: 1;
72 -moz-grid-row: 1;
73 -o-grid-row: 1;
74 -webkit-grid-row: 1;
75 grid-row: 1;
77 #board
79 -ms-grid-column: 2;
80 -moz-grid-column: 2;
81 -o-grid-column: 2;
82 -webkit-grid-column: 2;
83 grid-column: 2;
84 -ms-grid-row: 1;
85 -moz-grid-row: 1;
86 -o-grid-row: 1;
87 -webkit-grid-row: 1;
88 grid-row: 1;
90 #absolute
92 color: red;
93 height: 3em;
94 position: absolute;
95 z-index: -1;
97 #absolute span
99 color: green;
101 </style>
102 </head>
103 <body>
104 <p>Test passes if there is no red visible on the page.</p>
105 <div id="parent">
106 <div id="absolute">
107 XXXXXXXXX<span>XXXX</span>
108 </div>
109 <div id="test">
110 <div id="board">XXXX</div>
111 <div id="title">XXXXX</div>
112 </div>
113 </div>
114 </body>
115 </html>