mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
LibWeb: Support font-size: calc()
Now that we have a way to resolve calc() lengths without a layout node, we can finally support calc() values in font-size. This wasn't possible before because font-related properties have to be resolved eagerly in StyleComputer due to font-relative CSS length units depending on the computed font being known.
This commit is contained in:
parent
df8a96ee00
commit
7115446995
3 changed files with 38 additions and 25 deletions
3
Tests/LibWeb/Layout/input/css-font-size-calc.html
Normal file
3
Tests/LibWeb/Layout/input/css-font-size-calc.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!doctype html><style>
|
||||
body { font-size: calc(100px); }
|
||||
</style>Hello friends
|
Loading…
Add table
Add a link
Reference in a new issue