mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00:00
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:
parent
09f5ce42f6
commit
6711438e0d
Notes:
github-actions[bot]
2025-05-23 09:17:05 +00:00
Author: https://github.com/abyesilyurt
Commit: 6711438e0d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4282
Reviewed-by: https://github.com/gmta ✅
4 changed files with 55 additions and 2 deletions
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
foo
|
||||
<div style="display: inline-block;">
|
||||
<span>
|
||||
<div style="display: block;">bar</div>
|
||||
</span>
|
||||
</div> baz
|
Loading…
Add table
Add a link
Reference in a new issue