| OLD | NEW |
| (Empty) |
| 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 lis
t 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 mater
ials | |
| 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 I
MPLIED | |
| 20 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTAB
ILITY AND | |
| 21 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICROSOFT CO
RPORATION | |
| 22 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUE
NTIAL | |
| 23 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERV
ICES; | |
| 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 NEGLIGE
NCE 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 '0'</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-dec
laration" /> | |
| 34 <meta name="flags" content="ahem invalid" /> | |
| 35 <meta name="assert" content="The 'grid-column' with a value of '0' is in
valid and inserts the grid-item in the first column." /> | |
| 36 <link rel="stylesheet" href="testRunner.css"> | |
| 37 <style type="text/css"> | |
| 38 #test | |
| 39 { | |
| 40 color: green; | |
| 41 display: -ms-grid; | |
| 42 display: -moz-grid; | |
| 43 display: -o-grid; | |
| 44 display: -webkit-grid; | |
| 45 display: grid; | |
| 46 font: 20px/1 Ahem; | |
| 47 height: 3em; | |
| 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 -ms-grid-auto-flow: stack; | |
| 59 -moz-grid-auto-flow: stack; | |
| 60 -o-grid-auto-flow: stack; | |
| 61 -webkit-grid-auto-flow: stack; | |
| 62 grid-auto-flow: stack; | |
| 63 } | |
| 64 #griditem | |
| 65 { | |
| 66 color: red; | |
| 67 -ms-grid-column: 0; | |
| 68 -moz-grid-column: 0; | |
| 69 -o-grid-column: 0; | |
| 70 -webkit-grid-column: 0; | |
| 71 grid-column: 0; | |
| 72 -ms-grid-row: 1; | |
| 73 -moz-grid-row: 1; | |
| 74 -o-grid-row: 1; | |
| 75 -webkit-grid-row: 1; | |
| 76 grid-row: 1; | |
| 77 } | |
| 78 </style> | |
| 79 </head> | |
| 80 <body> | |
| 81 <p>Test passes if there is no red visible on the page.</p> | |
| 82 <div id="test"> | |
| 83 <div id="griditem">XXXX</div> | |
| 84 <div>XXXXX</div> | |
| 85 </div> | |
| 86 </body> | |
| 87 </html> | |
| OLD | NEW |