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

@ -0,0 +1,21 @@
<!DOCTYPE html>
<link rel="match" href="../expected/inline-nested-node-ref.html">
<style>
.bluebg {
background-color: #0000FF7F;
}
</style>
<body>
<div>
<span class="bluebg">1<span>2</span></span>
</div>
<div>
<span class="bluebg"><span>1</span>2</span>
</div>
<div>
<span class="bluebg">1<span>2</span>3<span>4</span></span><span>consecutive inline item</span>
</div>
<div>
<span class="bluebg"><span>2</span><span>4</span></span>
</div>
</body>