LibWeb: Improve painting of nested inline elements

PaintableWithLines created from inline nodes need to examine their
children to fully compute their size and offset as nested children
might have textnodes that are placed before their parent.

Fixes #1286
This commit is contained in:
Christoffer Sandberg 2024-11-22 10:54:00 +01:00 committed by Sam Atkins
commit 879af72850
Notes: github-actions[bot] 2024-12-04 11:24:53 +00:00
4 changed files with 80 additions and 14 deletions

View file

@ -52,9 +52,9 @@ Test embed.vspace = "120." maps to marginBottom: 120px
Test embed.width = "100" maps to width: 0px
Test embed.width = " 00110 " maps to width: 0px
Test embed.width = "120." maps to width: 0px
Test embed.height = "100" maps to height: 0px
Test embed.height = " 00110 " maps to height: 0px
Test embed.height = "120." maps to height: 0px
Test embed.height = "100" maps to height: 17px
Test embed.height = " 00110 " maps to height: 17px
Test embed.height = "120." maps to height: 17px
Test tr.height = "100" maps to height: 100px
Test tr.height = " 00110 " maps to height: 110px
Test tr.height = "120." maps to height: 120px