position-static-001.html (722B)
1 <!DOCTYPE html> 2 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 3 <link rel="help" href="https://drafts.csswg.org/css-position/#insets"> 4 <link rel="help" href="https://github.com/servo/servo/issues/39399"> 5 <link rel="match" href="../reference/ref-filled-green-200px-square.html"> 6 <meta name="assert" content="Inset propeties do not apply to a statically positioned grid item."> 7 8 <style> 9 #grid { 10 display: grid; 11 width: 200px; 12 height: 200px; 13 background: red; 14 } 15 #item { 16 width: 200px; 17 height: 200px; 18 top: 200px; 19 left: 200px; 20 background: green; 21 } 22 </style> 23 24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 25 <div id="grid"> 26 <div id="item"></div> 27 </div>