1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +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,8 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (1,1) content-size 798x54.9375 [BFC] children: not-inline
Box <body> at (10,10) content-size 780x36.9375 [GFC] children: not-inline
BlockContainer <h1> at (55.5,11) content-size 689x34.9375 [BFC] children: inline
line 0 width: 200.40625, height: 34.9375, bottom: 34.9375, baseline: 27.0625
frag 0 from TextNode start: 0, length: 13, rect: [55.5,11 200.40625x34.9375]
"hello friends"
TextNode <#text>