mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Fix width calculation for floating replaced elements
The path for floating, replaced elements must not fall through to the path taken for floating, non-replaced elements. The former works like inline replaced elements, while the latter uses a completely different algorithm which doesn't account for intrinsic ratio. Falling through overrides the correct value computed by the former. Fixes #19061.
This commit is contained in:
parent
7cc20f4cb5
commit
1e526af430
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/axgallo
Commit: 1e526af430
Pull-request: https://github.com/SerenityOS/serenity/pull/19062
Issue: https://github.com/SerenityOS/serenity/issues/19061
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 11 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
|||
}
|
||||
|
||||
.foo div {
|
||||
height: 600px;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.foo div img {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue