mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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:
parent
e20a887a8d
commit
879af72850
Notes:
github-actions[bot]
2024-12-04 11:24:53 +00:00
Author: https://github.com/todderod
Commit: 879af72850
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2499
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Gingeh
4 changed files with 80 additions and 14 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue