mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +00:00
LibWeb: Fix absolute positioning issues
Make sure the insets and margins calculated according to the spec are not later ignored and ad-hoc recomputed in layout_absolutely_positioned_element. Use the static position calculation in a couple of places where the spec (and comment) was indicating it should be used. Fixes #19362
This commit is contained in:
parent
61fe7c230f
commit
fd37ad3a84
8 changed files with 134 additions and 134 deletions
|
@ -0,0 +1,10 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.only-t-l> at (6,6) content-size 10x10 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.only-mt-ml> at (16,16) content-size 10x10 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.both> at (11,11) content-size 10x10 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
|
@ -4,5 +4,5 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
Box <div.pink> at (38,38) content-size 724x0 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div.orange> at (38,-12) content-size 100x100 positioned [BFC] children: inline
|
||||
BlockContainer <div.orange> at (48,-12) content-size 100x100 positioned [BFC] children: inline
|
||||
TextNode <#text>
|
||||
|
|
|
@ -4,73 +4,73 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.normal> at (38,38) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (38,48) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (48,48) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 54.578125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [38,48 54.578125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [48,48 54.578125x17.46875]
|
||||
"normal"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.stretch> at (208,38) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (208,48) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (218,48) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 58.796875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [208,48 58.796875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [218,48 58.796875x17.46875]
|
||||
"stretch"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.start> at (378,38) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (378,48) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (388,48) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 41.234375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [378,48 41.234375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [388,48 41.234375x17.46875]
|
||||
"start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.flex-start> at (548,38) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (548,48) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (558,48) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [548,48 76.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [558,48 76.8125x17.46875]
|
||||
"flex-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.end> at (38,208) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (38,298) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (48,308) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 26.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [38,298 26.1875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [48,308 26.1875x17.46875]
|
||||
"end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.flex-end> at (208,208) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (208,298) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (218,308) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.765625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [208,298 61.765625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [218,308 61.765625x17.46875]
|
||||
"flex-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.center> at (378,208) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (378,258) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (388,258) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 51.625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [378,258 51.625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 6, rect: [388,258 51.625x17.46875]
|
||||
"center"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.self-start> at (548,208) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (548,218) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (558,218) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.453125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [548,218 76.453125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [558,218 76.453125x17.46875]
|
||||
"self-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
TextNode <#text>
|
||||
Box <div.outer.self-end> at (38,378) content-size 150x150 flex-container(row) flex-item [FFC] children: not-inline
|
||||
BlockContainer <div> at (38,468) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (48,478) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.40625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [38,468 61.40625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [48,478 61.40625x17.46875]
|
||||
"self-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
||||
|
|
|
@ -4,33 +4,33 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,38) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.outer.start> at (53,53) content-size 300x60 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,68) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,68) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 41.234375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [53,68 41.234375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [68,68 41.234375x17.46875]
|
||||
"start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,128) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.outer.flex-start> at (53,143) content-size 300x60 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,158) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,158) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [53,158 76.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [68,158 76.8125x17.46875]
|
||||
"flex-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,218) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.outer.end> at (53,233) content-size 300x60 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (203,248) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (188,248) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 26.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [203,248 26.1875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [188,248 26.1875x17.46875]
|
||||
"end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,308) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.outer.flex-end> at (53,323) content-size 300x60 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (203,338) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (188,338) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.765625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [203,338 61.765625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [188,338 61.765625x17.46875]
|
||||
"flex-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,398) content-size 724x0 children: inline
|
||||
|
@ -52,9 +52,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,578) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.outer.space-between> at (53,593) content-size 300x60 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,608) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,608) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 115.515625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [53,608 115.515625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,608 115.515625x17.46875]
|
||||
"space-between"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,668) content-size 724x0 children: inline
|
||||
|
@ -68,33 +68,33 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,758) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.reverse.outer.start> at (53,773) content-size 300x60 flex-container(row-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (203,788) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (218,788) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 41.234375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [203,788 41.234375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [218,788 41.234375x17.46875]
|
||||
"start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,848) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.reverse.outer.flex-start> at (53,863) content-size 300x60 flex-container(row-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (203,878) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (218,878) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [203,878 76.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [218,878 76.8125x17.46875]
|
||||
"flex-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,938) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.reverse.outer.end> at (53,953) content-size 300x60 flex-container(row-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,968) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (38,968) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 26.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [53,968 26.1875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [38,968 26.1875x17.46875]
|
||||
"end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1028) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.reverse.outer.flex-end> at (53,1043) content-size 300x60 flex-container(row-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,1058) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (38,1058) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.765625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [53,1058 61.765625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [38,1058 61.765625x17.46875]
|
||||
"flex-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1118) content-size 724x0 children: inline
|
||||
|
@ -116,9 +116,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,1298) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.row.reverse.outer.space-between> at (53,1313) content-size 300x60 flex-container(row-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (53,1328) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,1328) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 115.515625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [53,1328 115.515625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,1328 115.515625x17.46875]
|
||||
"space-between"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1388) content-size 724x0 children: inline
|
||||
|
@ -132,33 +132,33 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,1478) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.outer.start> at (53,1493) content-size 300x60 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,1493) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,1508) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 41.234375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [68,1493 41.234375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [68,1508 41.234375x17.46875]
|
||||
"start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1568) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.outer.flex-start> at (53,1583) content-size 300x60 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,1583) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,1598) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [68,1583 76.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [68,1598 76.8125x17.46875]
|
||||
"flex-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1658) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.outer.end> at (53,1673) content-size 300x60 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,1683) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,1668) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 26.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [68,1683 26.1875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [68,1668 26.1875x17.46875]
|
||||
"end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1748) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.outer.flex-end> at (53,1763) content-size 300x60 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,1773) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,1758) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.765625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [68,1773 61.765625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [68,1758 61.765625x17.46875]
|
||||
"flex-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,1838) content-size 724x0 children: inline
|
||||
|
@ -180,9 +180,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,2018) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.outer.space-between> at (53,2033) content-size 300x60 flex-container(column) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2033) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2048) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 115.515625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,2033 115.515625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,2048 115.515625x17.46875]
|
||||
"space-between"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2108) content-size 724x0 children: inline
|
||||
|
@ -196,33 +196,33 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,2198) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.reverse.outer.start> at (53,2213) content-size 300x60 flex-container(column-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2223) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2238) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 41.234375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [68,2223 41.234375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [68,2238 41.234375x17.46875]
|
||||
"start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2288) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.reverse.outer.flex-start> at (53,2303) content-size 300x60 flex-container(column-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2313) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2328) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 76.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [68,2313 76.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 10, rect: [68,2328 76.8125x17.46875]
|
||||
"flex-start"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2378) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.reverse.outer.end> at (53,2393) content-size 300x60 flex-container(column-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2393) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2378) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 26.1875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [68,2393 26.1875x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [68,2378 26.1875x17.46875]
|
||||
"end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2468) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.reverse.outer.flex-end> at (53,2483) content-size 300x60 flex-container(column-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2483) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2468) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 61.765625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [68,2483 61.765625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 8, rect: [68,2468 61.765625x17.46875]
|
||||
"flex-end"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2558) content-size 724x0 children: inline
|
||||
|
@ -244,9 +244,9 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <(anonymous)> at (38,2738) content-size 724x0 children: inline
|
||||
TextNode <#text>
|
||||
Box <div.column.reverse.outer.space-between> at (53,2753) content-size 300x60 flex-container(column-reverse) [FFC] children: not-inline
|
||||
BlockContainer <div> at (68,2753) content-size 150x50 positioned [BFC] children: inline
|
||||
BlockContainer <div> at (68,2768) content-size 150x50 positioned [BFC] children: inline
|
||||
line 0 width: 115.515625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,2753 115.515625x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 13, rect: [68,2768 115.515625x17.46875]
|
||||
"space-between"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (38,2828) content-size 724x0 children: inline
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
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 784x0 children: inline
|
||||
BlockContainer <div#container> at (8,8) content-size 500x400 positioned [BFC] children: inline
|
||||
BlockContainer <div#container> at (28,28) content-size 500x400 positioned [BFC] children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#red> at (38,38) content-size 100x100 positioned [BFC] children: not-inline
|
||||
BlockContainer <div#red> at (58,58) content-size 100x100 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#green> at (338,78) content-size 100x100 positioned [BFC] children: not-inline
|
||||
BlockContainer <div#green> at (358,98) content-size 100x100 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#blue> at (28,288) content-size 100x100 positioned [BFC] children: not-inline
|
||||
BlockContainer <div#blue> at (48,308) content-size 100x100 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div#yellow> at (388,288) content-size 100x100 positioned [BFC] children: not-inline
|
||||
BlockContainer <div#yellow> at (408,308) content-size 100x100 positioned [BFC] children: not-inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
* { border: 1px solid black; }
|
||||
div {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
.only-t-l {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
background-color: red;
|
||||
}
|
||||
.only-mt-ml {
|
||||
margin: 5px;
|
||||
background-color: orange;
|
||||
}
|
||||
.both {
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
margin: 5px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="only-t-l"></div>
|
||||
<div class="only-mt-ml"></div>
|
||||
<div class="both"></div>
|
Loading…
Add table
Add a link
Reference in a new issue