mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:27:45 +00:00
LibWeb: Make stretch-fit return 0 when the available size is indefinite
The spec says the result of this algorithm is undefined in such cases, and it appears that other engines yield a zero size. More importantly, this prevents us from leaking a non-finite value into the layout tree.
This commit is contained in:
parent
aa97c4675f
commit
434df52b91
3 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
<!doctype html><style>
|
||||
body { width: max-content; }
|
||||
</style><body><svg viewBox="0 0 10 10"></svg>
|
Loading…
Add table
Add a link
Reference in a new issue