mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
LibWeb: Resolve percentage vertical-align values against line-height
...instead of not resolving them at all. :^)
This commit is contained in:
parent
7447a91d7e
commit
e4b71495f5
3 changed files with 44 additions and 7 deletions
|
@ -0,0 +1,10 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x62.506248 children: not-inline
|
||||
BlockContainer <body> at (2,2) content-size 796x60.506248 children: inline
|
||||
line 0 width: 34, height: 28.50625, bottom: 28.50625, baseline: 28.50625
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [4,3 30x30]
|
||||
line 1 width: 32, height: 28.506248, bottom: 60.506248, baseline: 28.50625
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [3,35 30x30]
|
||||
BlockContainer <div.clump> at (4,3) content-size 30x30 inline-block children: not-inline
|
||||
BreakNode <br>
|
||||
BlockContainer <div.clump> at (3,35) content-size 30x30 inline-block children: not-inline
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: 16px SerenitySans;
|
||||
}
|
||||
.clump {
|
||||
display: inline-block;
|
||||
vertical-align: -20%;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
</style></head><body><div class="clump"></div><br><div class="clump"></div>
|
Loading…
Add table
Add a link
Reference in a new issue