mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibWeb: Parse calc() function in grid sizes
Adds missing part of grid size parsing function to handle calc().
This commit is contained in:
parent
7fee05e18c
commit
c2f6ba8f5f
4 changed files with 42 additions and 2 deletions
12
Tests/LibWeb/Layout/input/grid/calc-track-size.html
Normal file
12
Tests/LibWeb/Layout/input/grid/calc-track-size.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<style>
|
||||
.grid-container {
|
||||
display: grid;
|
||||
grid-template-columns: calc(200px);
|
||||
grid-template-rows: auto;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
background-color: lightskyblue;
|
||||
}
|
||||
</style>
|
||||
<div class="grid-container"><div class="grid-item">Uno</div></div>
|
Loading…
Add table
Add a link
Reference in a new issue