layout: Implement 2D CSS transforms per CSS-TRANSFORMS § 5, 6, 7, and 8.

r? @SimonSapin