Test that resolving percent lengths on grid items works properly on a fixed grid with different writing modes in quirks mode.