mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
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:
committed by
Sam Atkins
parent
e20a887a8d
commit
879af72850
21
Tests/LibWeb/Ref/input/inline-nested-node.html
Normal file
21
Tests/LibWeb/Ref/input/inline-nested-node.html
Normal 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>
|
||||
Reference in New Issue
Block a user