mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:27:35 +00:00
LibWeb: Add support for "display: contents"
This change makes tree builder omit elements with "display: contents" from the layout tree during construction. Their child elements are instead directly appended to the parent element in layout tree.
This commit is contained in:
parent
b91af3c6a0
commit
0e8a0a8191
5 changed files with 31 additions and 3 deletions
|
@ -0,0 +1,14 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x41.46875 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,16) content-size 784x17.46875 children: not-inline
|
||||
Box <ul.globalnav-list> at (48,16) content-size 744x17.46875 flex-container(row) [FFC] children: not-inline
|
||||
BlockContainer <div#item-1> at (48,16) content-size 46.734375x17.46875 flex-item [BFC] children: inline
|
||||
line 0 width: 46.734375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [48,16 46.734375x17.46875]
|
||||
"Store"
|
||||
TextNode <#text>
|
||||
BlockContainer <div#item-2> at (762,16) content-size 30x17.46875 flex-item [BFC] children: inline
|
||||
line 0 width: 30, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [762,16 30x17.46875]
|
||||
"Mac"
|
||||
TextNode <#text>
|
Loading…
Add table
Add a link
Reference in a new issue