CSS Grid Layout implementor (Chromium/Blink & Safari/WebKit)
Member of Igalia Web Platform Team
Property: display
Values | Status |
---|---|
grid |
DONE |
inline-grid |
DONE |
subgrid |
TODO (at-risk) - #618969 |
Properties | Status |
---|---|
order |
DONE |
z-index |
DONE |
min-size: auto |
DONE |
Properties: grid-template-columns|rows
Values | Status |
---|---|
auto , length, percentage |
DONE |
flex (fr unit) |
DONE |
min-contet , max-content |
DONE |
minmax() |
DONE |
fit-content() |
TODO - #618972 |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
<div class="d">D</div>
</div>
Properties: grid-template-columns|rows
Values/Features | Status |
---|---|
repeat(integer, ) |
DONE |
repeat(auto-fill, ) |
DONE |
repeat(auto-fit, ) |
WIP - #589460 |
Multiple tracks | TODO - #619930 |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
<div class="d">D</div>
<div class="e">E</div>
<div class="f">F</div>
</div>
Properties | Status |
---|---|
grid-template-areas |
DONE |
grid-template shorthand |
DONE |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
<div class="d">D</div>
</div>
Properties | Status |
---|---|
grid-auto-columns|rows |
DONE |
grid-auto-columns|rows multiple tracks |
TODO - #618970 |
Properties | Status |
---|---|
grid-auto-flow |
DONE |
grid shorthand |
DONE |
grid shorthand new syntax |
TODO - #618971 |
Properties: grid-column|row-start|end
Values | Status |
---|---|
auto |
DONE |
line name | DONE |
span |
DONE |
Properties/Features | Status |
---|---|
grid-column|rows shorthands |
DONE |
grid-area shorthand |
DONE |
Placement algorithm | DONE |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
</div>
Features | Status |
---|---|
Placement | DONE |
Alignment | TODO - #603423 |
Properties/Values | Status |
---|---|
grid-column|row-gap length |
DONE |
grid-column|row-gap percentage |
WIP (at risk) - #615248 |
grid-gap shorthand |
DONE |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
<div class="d">D</div>
<div class="e">E</div>
</div>
Properties | Status |
---|---|
auto margins |
DONE |
justify|align-self |
DONE |
justify|align-items |
DONE |
justify|align-content |
DONE |
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
</div>
<div class="grid">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
</div>
Features | Status |
---|---|
normal value |
WIP - #565883 |
Overflow alignment | DONE |
Baseline alignment | WIP - #412410 |
Features | Status |
---|---|
Track sizing algorithm | DONE |
Orthogonal flows support | WIP - #445742 |
Features | Status |
---|---|
Fragmentation algorithm | TODO - #614667 |
display: subgrid;
grid-template-columns|rows
)grid-auto-columns|rows
)grid-template-area
can be used within the subgrid
<form><ul>
<li><label>Input</label><input></li>
<li><label>Checkbox</label><input type="checkbox"></li>
<li><button>Submit form</button></li>
</ul></form>
Optimizations to avoid re-layout in some situations
Complete the test suite
Currently 117 tests (most unreviewed)
Import test suite once it's ready
Add grid layout support
Ideas: show grid lines, highlight item's grid area, etc.
display: contents;
Useful for other things (not only Grid Layout)
Already supported on Firefox
CSS Grid Layout - https://drafts.csswg.org/css-grid/
Started by Microsoft in 2010
Last Working Draft 19 May 2016
W3C Test Suite