ladybird/Tests/LibWeb/Layout/input/grid/define-area-using-line-names.html
Aliaksandr Kalenik 7a1f3f7ae3 LibWeb: Change grid item placement to look for area by boundary lines
Areas are disassembled into boundary lines on `build_grid_areas()` step,
so we can always use them to find grid item's position during placement.
This way we support both ways to define area: `grid-template-areas` and
implicitly using `-start` and `-end` boundary line names.
2024-07-18 09:05:37 +02:00

17 lines
475 B
HTML

<!doctype html><style>
* {
outline: 1px solid black;
}
html {
background: white;
}
body {
display: grid;
grid-template-columns: 1fr [content-start] 500px [content-end] 1fr;
background: wheat;
}
main {
grid-column: content;
background: pink;
}
</style><body><main><div id="item">Smartphones