mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +00:00
LibWeb: Remove early resolve to auto while calculating border-box width
`Length::resolved(Node&)` transforms infinite values to "auto". Following transformations: Infinite (Length) -> "auto" -> 0 (px) cause border-box width to be resolved in zero when it should be inf px. Removing `Length::resolved(Node&)` makes it work right: Infinite (Length) -> Infinite (px) Fixes #18649
This commit is contained in:
parent
2d2d2539b4
commit
34b1186272
3 changed files with 22 additions and 6 deletions
|
@ -0,0 +1,8 @@
|
|||
<!doctype html><style>
|
||||
* { border: 1px solid black; font-family: 'SerenitySans'; }
|
||||
body { position: absolute; }
|
||||
nav {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style><body><nav>border box
|
Loading…
Add table
Add a link
Reference in a new issue