mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00:00
LibWeb: Improve style propagation to anonymous wrappers
- We now propagate changes in font and line-height to anonymous wrappers when doing a partial style update after invalidation. - We no longer (incorrectly) propagate style from table wrapper boxes to the table root, since inheritance works in the other direction. Fixes #22395
This commit is contained in:
parent
242d1d8eba
commit
4a35693dd7
6 changed files with 94 additions and 8 deletions
|
@ -0,0 +1,21 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x36 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x20 children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 784x10 children: inline
|
||||
line 0 width: 98, height: 10, bottom: 10, baseline: 9.796875
|
||||
frag 0 from TextNode start: 0, length: 11, rect: [8,8 98x10]
|
||||
"foo bar baz"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (8,18) content-size 784x10 children: inline
|
||||
line 0 width: 98, height: 10, bottom: 10, baseline: 9.796875
|
||||
frag 0 from TextNode start: 0, length: 11, rect: [8,18 98x10]
|
||||
"foo bar baz"
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x36]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x20]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 784x10]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,18 784x10]
|
||||
TextPaintable (TextNode<#text>)
|
Loading…
Add table
Add a link
Reference in a new issue