1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibWeb: Add basic parsing of grid shorthand CSS property

Introduces incomplete parsing of grid shorthand property. Only
<grid-template> part of syntax is supported for now but it is enough
to significantly improve rendering of websites that use this shorthand
to define grid :)
This commit is contained in:
Aliaksandr Kalenik 2023-05-27 02:58:19 +03:00 committed by Andreas Kling
parent 1e526af430
commit ab5b89eb95
6 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,10 @@
<style>
.container {
display: grid;
grid: 100px / 200px;
}
.item {
background-color: navy;
}
</style><div class="container"><div class="item"></div></div>