mirror of
https://github.com/RGBCube/serenity
synced 2025-07-08 14:37:35 +00:00

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
15 lines
1.1 KiB
Text
15 lines
1.1 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x68.40625 [BFC] children: not-inline
|
|
Box <body.pink> at (8,8) content-size 784x52.40625 flex-container(row) [FFC] children: not-inline
|
|
Box <div.orange> at (8,8) content-size 194.71875x52.40625 flex-container(row) flex-item [FFC] children: not-inline
|
|
BlockContainer <div.lime> at (8,8) content-size 87.34375x52.40625 flex-item [BFC] children: inline
|
|
line 0 width: 74.75, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
|
frag 0 from TextNode start: 0, length: 9, rect: [8,8 74.75x17.46875]
|
|
"This is a"
|
|
line 1 width: 71.828125, height: 17.46875, bottom: 34.9375, baseline: 13.53125
|
|
frag 0 from TextNode start: 10, length: 8, rect: [8,25.46875 71.828125x17.46875]
|
|
"bunch of"
|
|
line 2 width: 32.140625, height: 17.46875, bottom: 52.40625, baseline: 13.53125
|
|
frag 0 from TextNode start: 19, length: 4, rect: [8,42.9375 32.140625x17.46875]
|
|
"text"
|
|
TextNode <#text>
|