Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-position/position-static-001.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="../reference/ref-filled-green-200px-square.html">
<meta name="assert" content="Inset propeties do not apply to a statically positioned grid item.">
<style>
#grid {
  display: grid;
  width: 200px;
  height: 200px;
  background: red;
}
#item {
  width: 200px;
  height: 200px;
  top: 200px;
  left: 200px;
  background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="grid">
  <div id="item"></div>
</div>