1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:17:45 +00:00

LibWeb: Apply min/max-widths to block container during intrinsic layout

Fixes https://github.com/SerenityOS/serenity/issues/22430
This commit is contained in:
Aliaksandr Kalenik 2023-12-26 05:49:45 +01:00 committed by Andreas Kling
parent 9258d7b98a
commit b172c29d9a
5 changed files with 116 additions and 2 deletions

View file

@ -0,0 +1,8 @@
<!doctype html><style>
* { outline: 1px solid black; }
.constrained { max-width: 270px; }
.wrapper { background: yellow; width: max-content }
</style><body><div class="wrapper"><div class="constrained">
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
<div></div></div></div>

View file

@ -0,0 +1,8 @@
<!doctype html><style>
* { outline: 1px solid black; }
div { max-width: 270px; }
table { background: pink; }
</style><body><table><tr><td><div>
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello
<div>