1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +00:00

LibWeb: Resolve block max-width percentage against containing block

This commit is contained in:
FalseHonesty 2023-10-28 20:53:17 -04:00 committed by Alexander Kalenik
parent 8df3e6b203
commit 2285dfb80e
5 changed files with 37 additions and 24 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html><style>
* {
border: 1px solid black;
}
.text {
width: min-content;
max-width: 50%;
display: block;
}
</style><body><span class="text">Trimmed