mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 11:07:46 +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,10 +1,10 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x47.671875 children: inline
|
||||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.828125
|
||||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.84375
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 61.1875x47.671875]
|
||||
BlockContainer <div.ib> at (8,8) content-size 61.1875x47.671875 inline-block [BFC] children: inline
|
||||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.828125
|
||||
line 0 width: 61.1875, height: 47.671875, bottom: 47.671875, baseline: 35.84375
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [9,26 17.828125x21.84375]
|
||||
frag 1 from TextNode start: 0, length: 1, rect: [28,30 8x17.46875]
|
||||
" "
|
||||
|
@ -17,11 +17,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <button> at (41,10) content-size 23.359375x43.671875 inline-block [BFC] children: inline
|
||||
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.671875]
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.671875 flex-item [BFC] children: inline
|
||||
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.828125
|
||||
line 0 width: 23.359375, height: 43.671875, bottom: 43.671875, baseline: 33.84375
|
||||
frag 0 from BlockContainer start: 0, length: 0, rect: [41,10 23.359375x43.6875]
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (41,10) content-size 23.359375x43.6875 flex-item [BFC] children: inline
|
||||
line 0 width: 23.359375, height: 43.6875, bottom: 43.6875, baseline: 33.84375
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [41,10 23.359375x43.671875]
|
||||
"B"
|
||||
TextNode <#text>
|
||||
|
@ -35,6 +35,6 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|||
TextPaintable (TextNode<#text>)
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<BUTTON>) [36,8 33.359375x47.671875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.671875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [41,10 23.359375x43.6875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue