mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
LibWeb: Account for box-sizing:border-box in layout-less definite sizes
When we determine that a size is definite because it can be resolved now without performing layout, we also need to account for the box-sizing property. This lets us remove a hack from flex layout where box-sizing:border-box was manually undone at one point in the layout algorithm.
This commit is contained in:
parent
deea7cbc11
commit
00e3e82bbd
Notes:
sideshowbarker
2024-07-16 21:51:02 +09:00
Author: https://github.com/awesomekling
Commit: 00e3e82bbd
Pull-request: https://github.com/SerenityOS/serenity/pull/18603
Reviewed-by: https://github.com/kalenikaliaksandr
4 changed files with 53 additions and 13 deletions
|
@ -0,0 +1,14 @@
|
|||
<!doctype html><html><head><style>
|
||||
* {
|
||||
font: 20px SerenitySans;
|
||||
}
|
||||
.button {
|
||||
align-items: center;
|
||||
background-color: orange;
|
||||
display: inline-flex;
|
||||
height: 30px;
|
||||
padding: 20px;
|
||||
font-size: 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style></head><body><div class="button">Hello
|
Loading…
Add table
Add a link
Reference in a new issue