Add some unit tests for logical geometry.
Fix WritingMode::is_inline_tb(), which was backwards.
Typo fix.