Add `auto-vertical` attribute for auto basis only in the vertical direction; simplify rules; add test.