[layout] Change fit-content min-inline-size/max-inline-size behaviour.
This (by my reading how any of this works FWIW) doesn't defined by
the specification, but Gecko's behaviour here seems reasonable.
Previously during the content-contribution calculation we'd treat
fit-content as indefinite, which result in:
- max-inline-size == LayoutUnit::Max()
- min-inline-size == border_padding.
Gecko instead (if the available-size is indefinite) does:
- max-inline-size:fit-content use max-content instead.
- min-inline-size:fit-content use min-content instead.
This seems like a better behaviour.
Adds two tentative tests, and I've filed the relevant CSSWG issue:
w3c/csswg-drafts#10721
Fixed: 358393344
Change-Id: Ia7a350b241af4e0301e14dc812f2e04b41441076
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5778080
Reviewed-by: David Baron dbaron@chromium.org
Commit-Queue: Ian Kilpatrick ikilpatrick@chromium.org
Cr-Commit-Position: refs/heads/main@{#1339852}