Files
serenity/Tests/LibWeb/Layout/input/grid/define-area-using-line-names.html
Aliaksandr Kalenik c82f41dac8 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.

(cherry picked from commit 7a1f3f7ae3af2744e2f99df29baf09153d631b24)
2024-07-21 14:08:37 -04:00

18 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