mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57:34 +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:
parent
90e95d38d7
commit
27ddfa84fa
4 changed files with 49 additions and 2 deletions
|
@ -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" />
|
Loading…
Add table
Add a link
Reference in a new issue