1 layer at (0,0) size 800x600
2 RenderView at (0,0) size 800x600
3 layer at (0,0) size 800x600
4 RenderBlock {HTML} at (0,0) size 800x600
5 RenderBody {BODY} at (8,8) size 784x576
6 RenderBlock {P} at (0,0) size 784x21
7 RenderText {#text} at (0,0) size 354x21
8 text run at (0,0) width 354: "This text should be green if the viewport is portrait."
9 RenderBlock {P} at (0,37) size 784x21 [color=#008000]
10 RenderText {#text} at (0,0) size 379x21
11 text run at (0,0) width 379: "This text should be green if the viewport is landscape."
12 RenderBlock {P} at (0,74) size 784x21
13 RenderText {#text} at (0,0) size 522x21
14 text run at (0,0) width 522: "Obviously, at least one should be green, but never both. Square is portrait."