LibWeb: Ensure anonymous wrappers inherit inline-block display

When restructuring a block node inside an inline parent, if the
nearest block ancestor is `display: inline-block`, ensure that
the generated anonymous wrappers also have `display: inline-block`.
This fixes layout issues with block elements nested
inside inline-block elements.
This commit is contained in:
Aziz Berkay Yesilyurt 2025-04-08 10:46:22 +02:00 committed by Jelle Raaijmakers
commit 6711438e0d
Notes: github-actions[bot] 2025-05-23 09:17:05 +00:00
4 changed files with 55 additions and 2 deletions

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
foo
<div style="display: inline-block;">
<span>
<div style="display: block;">bar</div>
</span>
</div> baz