mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:37:34 +00:00
LibWeb: Support line-height: calc(...)
values that resolve to number
This is used on GitHub and many other websites.
This commit is contained in:
parent
dcead6f5eb
commit
966058d693
3 changed files with 23 additions and 0 deletions
8
Tests/LibWeb/Layout/expected/line-height-calc-number.txt
Normal file
8
Tests/LibWeb/Layout/expected/line-height-calc-number.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x80 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x64 children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 784x64 children: inline
|
||||
line 0 width: 100.203125, height: 64, bottom: 64, baseline: 36.796875
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [8,8 100.203125x64]
|
||||
"hello friends"
|
||||
TextNode <#text>
|
6
Tests/LibWeb/Layout/input/line-height-calc-number.html
Normal file
6
Tests/LibWeb/Layout/input/line-height-calc-number.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!doctype html><style>
|
||||
div {
|
||||
line-height: calc(2 + 2);
|
||||
background: pink;
|
||||
}
|
||||
</style><div>hello friends
|
Loading…
Add table
Add a link
Reference in a new issue