mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/741c7aef21 Pull-request: https://github.com/SerenityOS/serenity/pull/19365
@@ -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>
|
||||
Reference in New Issue
Block a user