1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:07:34 +00:00
serenity/Tests/LibWeb/Layout/expected/div_align_nested.txt
Aliaksandr Kalenik bec07d4af7 LibWeb: Use fixed-point saturated arithmetics for CSSPixels
Using fixed-point saturated arithmetics for CSSPixels allows to avoid
accumulating floating-point errors.

This implementation is not complete yet: currently saturated
arithmetics implemented only for addition. But it is enough to not
regress any of layout tests we have :)

See https://github.com/SerenityOS/serenity/issues/18566
2023-07-25 11:52:02 +02:00

27 lines
2 KiB
Text

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 784x252.40625 children: not-inline
BlockContainer <div> at (8,8) content-size 784x252.40625 children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 784x17.46875 children: inline
line 0 width: 447.484375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 54, rect: [344.515625,8 447.484375x17.46875]
"This text and the green square are both right aligned:"
TextNode <#text>
BlockContainer <div.square> at (692,25.46875) content-size 100x100 children: not-inline
BlockContainer <(anonymous)> at (8,125.46875) content-size 784x0 children: inline
TextNode <#text>
BlockContainer <div> at (8,125.46875) content-size 784x134.9375 children: not-inline
BlockContainer <(anonymous)> at (8,125.46875) content-size 784x34.9375 children: inline
line 0 width: 711.4375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 1, length: 87, rect: [8,125.46875 711.4375x17.46875]
"This text and the green square are both left aligned despite being nested in a div with"
line 1 width: 94.296875, height: 17.46875, bottom: 34.9375, baseline: 13.53125
frag 0 from TextNode start: 89, length: 14, rect: [8,142.9375 94.296875x17.46875]
"align="right":"
TextNode <#text>
BlockContainer <div.square> at (8,160.40625) content-size 100x100 children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,260.40625) content-size 784x0 children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,260.40625) content-size 784x0 children: inline
TextNode <#text>