The solid green and blue rectangles should be contained by the blue triangle outlines.


X
XX
XXX

Writing-mode is horizontal-tb


   X
  XX
 XXX

Writing-mode is vertical-rl.

 XXX
  XX
   X

Writing-mode is vertical-lr.