mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Honor box-sizing for block-level replaced element widths
Before this change, we were always behaving as if box-sizing were content-box for block-level replaced element widths. This fixes the squishy logo on https://videolan.org/
This commit is contained in:
parent
6da1dfa8f2
commit
11fa5fdd47
Notes:
github-actions[bot]
2025-07-14 09:17:25 +00:00
Author: https://github.com/awesomekling
Commit: 11fa5fdd47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5434
Reviewed-by: https://github.com/gmta ✅
3 changed files with 31 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
<!doctype html><style>
|
||||
* { outline: 1px solid black; }
|
||||
body {
|
||||
float: left;
|
||||
}
|
||||
img {
|
||||
display: block;
|
||||
padding-left: 50px;
|
||||
padding-right: 50px;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style><body><img src="../400.png" />
|
Loading…
Add table
Add a link
Reference in a new issue