Test that resolving calc lengths on grid items works properly on a fixed grid with different writing modes.

PASS
PASS
PASS
PASS