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:
parent
6a7a7e2337
commit
741c7aef21
3 changed files with 21 additions and 5 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue