Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/grid-flex-item-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="A grid flex-item should have a definite grid." />
<p>Test passes if there is a filled green square.</p>
<div style="display: flex; width: 100px; height: 200px;">
<div style="display: grid; grid: 1fr 1fr / auto; flex: 1;">
<div style="background: green;"></div>
</div>
</div>