mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:57:35 +00:00
LibWeb: Perform rounding when dividing CSSPixels
This should allow us to produce results that more closely match old layouts when divisions were done in floating-point.
This commit is contained in:
parent
bd85e1b30b
commit
98926b487c
27 changed files with 250 additions and 233 deletions
|
@ -1,30 +1,30 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x570.84375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,70) content-size 784x492.84375 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x570.859375 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,70) content-size 784x492.859375 children: not-inline
|
||||
BlockContainer <p.min-inline-test> at (8,70) content-size 784x200 children: inline
|
||||
line 0 width: 85.859375, height: 76.421875, bottom: 76.421875, baseline: 59.1875
|
||||
line 0 width: 85.859375, height: 76.4375, bottom: 76.4375, baseline: 59.203125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [8,70 85.859375x76.421875]
|
||||
"KK"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (8,340) content-size 784x76.421875 children: inline
|
||||
line 0 width: 0, height: 76.421875, bottom: 76.421875, baseline: 59.1875
|
||||
line 0 width: 0, height: 76.421875, bottom: 76.421875, baseline: 59.203125
|
||||
TextNode <#text>
|
||||
BreakNode <br>
|
||||
TextNode <#text>
|
||||
BlockContainer <p.max-inline-test> at (8,486.421875) content-size 100x76.421875 children: inline
|
||||
line 0 width: 85.859375, height: 76.421875, bottom: 76.421875, baseline: 59.1875
|
||||
BlockContainer <p.max-inline-test> at (8,486.421875) content-size 100x76.4375 children: inline
|
||||
line 0 width: 85.859375, height: 76.4375, bottom: 76.4375, baseline: 59.203125
|
||||
frag 0 from TextNode start: 0, length: 2, rect: [8,486.421875 85.859375x76.421875]
|
||||
"KK"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (8,632.84375) content-size 784x0 children: inline
|
||||
BlockContainer <(anonymous)> at (8,632.859375) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x632.84375]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x570.84375] overflow: [0,0 800x632.84375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,70 784x492.84375] overflow: [8,70 784x562.84375]
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x632.859375]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x570.859375] overflow: [0,0 800x632.859375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,70 784x492.859375] overflow: [8,70 784x562.859375]
|
||||
PaintableWithLines (BlockContainer<P>.min-inline-test) [8,70 784x200]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,340 784x76.421875]
|
||||
PaintableWithLines (BlockContainer<P>.max-inline-test) [8,486.421875 100x76.421875]
|
||||
PaintableWithLines (BlockContainer<P>.max-inline-test) [8,486.421875 100x76.4375]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,632.84375 784x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,632.859375 784x0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue