Added matchmedia test instead of pure css ones