Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / ietestcenter / css3 / grid / grid-column-003.htm
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.
4
5  Redistribution and use in source and binary forms, with or without modification,
6  are permitted provided that the following conditions are met:
7
8  Redistributions of source code must retain the above copyright notice, this list of
9  conditions and the following disclaimer.
10
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.
14
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.
18
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-column with a value of '1'</title>
32         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
33         <link rel="help" href="http://dev.w3.org/csswg/css3-grid-align/#grid-declaration" />
34         <meta name="flags" content="ahem" />
35         <meta name="assert" content="The 'grid-column' with a value of '1' inserts the grid-item in the first column and overlaps non-grid-item elements within the same grid parent." />
36         <script src="testRunnerEnableGrid.js"></script>
37         <link rel="stylesheet" href="testRunner.css">
38         <style type="text/css">
39             #test
40             {
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                 height: 3em;
49                 -ms-grid-template-columns: auto 1fr;
50                 -moz-grid-template-columns: auto 1fr;
51                 -o-grid-template-columns: auto 1fr;
52                 -webkit-grid-template-columns: auto 1fr;
53                 grid-template-columns: auto 1fr;
54                 -ms-grid-template-rows: auto 1fr;
55                 -moz-grid-template-rows: auto 1fr;
56                 -o-grid-template-rows: auto 1fr;
57                 -webkit-grid-template-rows: auto 1fr;
58                 grid-template-rows: auto 1fr;
59                 -ms-grid-auto-flow: stack;
60                 -moz-grid-auto-flow: stack;
61                 -o-grid-auto-flow: stack;
62                 -webkit-grid-auto-flow: stack;
63                 grid-auto-flow: stack;
64             }
65             #griditem
66             {
67                 color: green;
68                 -ms-grid-column: 1;
69                 -moz-grid-column: 1;
70                 -o-grid-column: 1;
71                 -webkit-grid-column: 1;
72                 grid-column: 1;
73                 -ms-grid-row: 1;
74                 -moz-grid-row: 1;
75                 -o-grid-row: 1;
76                 -webkit-grid-row: 1;
77                 grid-row: 1;
78             }
79             span
80             {
81                 color: red;
82             }
83         </style>
84     </head>
85     <body>
86         <p>Test passes if there is no red visible on the page.</p>
87         <div id="test">
88             <div><span>XX</span>X<span>XX</span></div>
89             <div id="griditem">XX XX</div>
90         </div>
91     </body>
92 </html>