1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 09:27:46 +00:00

LibWeb: Implement rounding for PixelUnits

This commit is contained in:
Hendiadyoin1 2023-07-29 16:01:50 +02:00 committed by Alexander Kalenik
parent cc74083f27
commit 6c341ca985
79 changed files with 1638 additions and 1600 deletions

View file

@ -1,6 +1,6 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x468.90625 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x452.90625 children: not-inline
BlockContainer <html> at (0,0) content-size 800x470.28125 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x454.28125 children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 784x21.84375 children: inline
line 0 width: 391.65625, height: 21.84375, bottom: 21.84375, baseline: 16.921875
frag 0 from TextNode start: 0, length: 40, rect: [8,8 391.65625x21.84375]
@ -13,11 +13,11 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,29.84375 200x100]
BlockContainer <(anonymous)> at (8,29.84375) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,129.84375) content-size 784x65.53125 children: inline
BlockContainer <(anonymous)> at (8,129.84375) content-size 784x66.21875 children: inline
line 0 width: 0, height: 21.84375, bottom: 21.84375, baseline: 16.921875
line 1 width: 0, height: 21.84375, bottom: 43.6875, baseline: 16.921875
line 2 width: 441.28125, height: 21.84375, bottom: 65.53125, baseline: 16.921875
frag 0 from TextNode start: 1, length: 42, rect: [8,173.53125 441.28125x21.84375]
line 2 width: 441.28125, height: 22.53125, bottom: 66.21875, baseline: 16.921875
frag 0 from TextNode start: 1, length: 42, rect: [8,172.84375 441.28125x21.84375]
"Variable set by CSS rule matching element:"
TextNode <#text>
BreakNode <br>
@ -25,15 +25,15 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <div.b> at (8,195.375) content-size 784x100 children: inline
BlockContainer <div.b> at (8,196.0625) content-size 784x100 children: inline
line 0 width: 200, height: 100, bottom: 100, baseline: 100
frag 0 from BlockContainer start: 0, length: 0, rect: [8,195.375 200x100]
BlockContainer <(anonymous)> at (8,195.375) content-size 200x100 inline-block [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,196.0625 200x100]
BlockContainer <(anonymous)> at (8,196.0625) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,295.375) content-size 784x65.53125 children: inline
BlockContainer <(anonymous)> at (8,296.0625) content-size 784x66.21875 children: inline
line 0 width: 0, height: 21.84375, bottom: 21.84375, baseline: 16.921875
line 1 width: 0, height: 21.84375, bottom: 43.6875, baseline: 16.921875
line 2 width: 520.625, height: 21.84375, bottom: 65.53125, baseline: 16.921875
line 2 width: 520.625, height: 22.53125, bottom: 66.21875, baseline: 16.921875
frag 0 from TextNode start: 1, length: 49, rect: [8,339.0625 520.625x21.84375]
"Variable set by CSS rule matching pseudo element:"
TextNode <#text>
@ -42,27 +42,27 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <div.c> at (8,360.90625) content-size 784x100 children: inline
BlockContainer <div.c> at (8,362.28125) content-size 784x100 children: inline
line 0 width: 200, height: 100, bottom: 100, baseline: 100
frag 0 from BlockContainer start: 0, length: 0, rect: [8,360.90625 200x100]
BlockContainer <(anonymous)> at (8,360.90625) content-size 200x100 inline-block [BFC] children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,362.28125 200x100]
BlockContainer <(anonymous)> at (8,362.28125) content-size 200x100 inline-block [BFC] children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,460.90625) content-size 784x0 children: inline
BlockContainer <(anonymous)> at (8,462.28125) content-size 784x0 children: inline
TextNode <#text>
PaintableWithLines (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x468.90625]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x452.90625]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x470.28125]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x454.28125]
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x21.84375]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.a) [8,29.84375 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,29.84375 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,129.84375 784x65.53125]
PaintableWithLines (BlockContainer(anonymous)) [8,129.84375 784x66.21875]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.b) [8,195.375 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,195.375 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,295.375 784x65.53125]
PaintableWithLines (BlockContainer<DIV>.b) [8,196.0625 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,196.0625 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,296.0625 784x66.21875]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>.c) [8,360.90625 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,360.90625 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,460.90625 784x0]
PaintableWithLines (BlockContainer<DIV>.c) [8,362.28125 784x100]
PaintableWithLines (BlockContainer(anonymous)) [8,362.28125 200x100]
PaintableWithLines (BlockContainer(anonymous)) [8,462.28125 784x0]