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

LibWeb: Accept height: {min,max,fit}-content

And treat them as "auto" for now, per CSS-SIZING-3, with a FIXME about
supporting more layout directions.

This fixes an issue on MDN where `height: max-content` was not
overriding height from non-CSS presentational hints.
This commit is contained in:
Andreas Kling 2023-08-20 18:25:54 +02:00
parent 90e95d38d7
commit 27ddfa84fa
4 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,8 @@
<!doctype html><style>
.min{ height: min-content; }
.max { height: max-content; }
.fit { height: fit-content; }
</style>
<img class="min" src="120.png" width="120" height="60" />
<img class="max" src="120.png" width="120" height="60" />
<img class="fit" src="120.png" width="120" height="60" />