mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
The :host family of pseudo class selectors select the shadow host element when matching against a rule from within the element's shadow tree. This is a bit convoluted due to the fact that the document-level StyleComputer keeps track of *all* style rules, and not just the document-level ones. In the future, we should refactor style storage so that shadow roots have their own style scope, and we can simplify a lot of this.
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x63 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x47 children: not-inline
|
|
BlockContainer <main> at (8,8) content-size 784x47 children: inline
|
|
frag 0 from BlockContainer start: 0, length: 0, rect: [23,23 343.96875x17] baseline: 28.296875
|
|
BlockContainer <div> at (23,23) content-size 343.96875x17 inline-block [BFC] children: inline
|
|
InlineNode <span>
|
|
frag 0 from TextNode start: 0, length: 42, rect: [23,23 343.96875x17] baseline: 13.296875
|
|
"hello :host and :host(<compound-selector>)"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x63]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x47]
|
|
PaintableWithLines (BlockContainer<MAIN>) [8,8 784x47]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 373.96875x47]
|
|
InlinePaintable (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|