1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Support more CSS functions in grid track size lists

Instead of hard-coding a check for "calc", we now call out to
parse_dynamic_value() which allows use of other functions like min(),
max(), clamp(), etc.
This commit is contained in:
Andreas Kling 2023-06-12 14:25:46 +02:00
parent 6a7a7e2337
commit 741c7aef21
3 changed files with 21 additions and 5 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><style>
* { border: 1px solid black; }
body {
display: grid;
grid-template-columns: 1fr min(89ch, 100% - 89px) 1fr;
}
h1 {
grid-column: 2 / auto;
margin: 0;
}
</style><body><h1>hello friends</h1>