Test that resolving minmax function with max-content on grid items works properly.

XXX
XXXXX
XXXXXXXXXX
XXXXX
XXXXXXXXXX
XX
XXX
XXXXX
XXXXX
XX