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

LibWeb: Set max-width for inline child boxes after inside layout

max-width for boxes with inline children can only be applied after
inside layout is done and width of box content is known.

Fixes https://github.com/SerenityOS/serenity/issues/20235
This commit is contained in:
Aliaksandr Kalenik 2023-08-02 01:02:44 +03:00 committed by Andreas Kling
parent 24c848607c
commit 1f28fdacf0
4 changed files with 46 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<!doctype html><style>
* {
border: 1px solid black !important;
}
body {
width: max-content;
}
.inner {
max-width: 200px;
font-size: 50px;
}
</style><body><div class="outer"><div class="inner">well hello friends