The solid green and blue rectangles should be contained by the blue triangle outlines.
Writing-mode is horizontal-tb
Writing-mode is vertical-rl.
Writing-mode is vertical-lr.