margin_top-expected.txt   [plain text]


layer at (0,0) size 800x1650
  RenderCanvas at (0,0) size 800x600
layer at (0,0) size 800x1650
  RenderBlock {HTML} at (0,0) size 800x1650
    RenderBody {BODY} at (8,8) size 784x1634 [bgcolor=#CCCCCC]
      RenderBlock {P} at (0,0) size 784x18
        RenderText {TEXT} at (0,0) size 355x18
          text run at (0,0) width 355: "The style declarations which apply to the text below are:"
      RenderBlock {PRE} at (0,31) size 784x120
        RenderText {TEXT} at (0,0) size 392x120
          text run at (0,0) width 384: ".zero {background-color: silver; margin-top: 0;}"
          text run at (0,15) width 168: ".one {margin-top: 0.5"
          text run at (168,15) width 224: "in; background-color: aqua;}"
          text run at (0,30) width 160: ".two {margin-top: 25"
          text run at (160,30) width 224: "px; background-color: aqua;}"
          text run at (0,45) width 168: ".three {margin-top: 5"
          text run at (168,45) width 224: "em; background-color: aqua;}"
          text run at (0,60) width 384: ".four {margin-top: 25%; background-color: aqua;}"
          text run at (0,75) width 168: ".five {margin-top: 25"
          text run at (168,75) width 32: "px;}"
          text run at (0,90) width 168: ".six {margin-top: -10"
          text run at (168,90) width 224: "px; background-color: aqua;}"
          text run at (0,105) width 200: "P, UL {margin-bottom: 0;}"
      RenderBlock {HR} at (0,164) size 784x2 [border: (1px inset #000000)]
      RenderBlock {P} at (0,178) size 784x18 [bgcolor=#C0C0C0]
        RenderText {TEXT} at (0,0) size 203x18
          text run at (0,0) width 203: "This element has a class of zero."
      RenderBlock {P} at (0,196) size 784x18 [bgcolor=#C0C0C0]
        RenderText {TEXT} at (0,0) size 232x18
          text run at (0,0) width 232: "This element also has a class of zero."
      RenderBlock {P} at (0,262) size 784x36 [bgcolor=#00FFFF]
        RenderText {TEXT} at (0,0) size 759x36
          text run at (0,0) width 759: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the margin"
          text run at (0,18) width 155: "isn't applied to each line."
      RenderBlock {P} at (0,323) size 784x36 [bgcolor=#00FFFF]
        RenderText {TEXT} at (0,0) size 771x36
          text run at (0,0) width 771: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin isn't"
          text run at (0,18) width 126: "applied to each line."
      RenderBlock {P} at (0,439) size 784x36 [bgcolor=#00FFFF]
        RenderText {TEXT} at (0,0) size 745x36
          text run at (0,0) width 745: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
          text run at (0,18) width 126: "applied to each line."
      RenderBlock {P} at (0,671) size 784x36 [bgcolor=#00FFFF]
        RenderText {TEXT} at (0,0) size 781x36
          text run at (0,0) width 725: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
          text run at (725,0) width 56: "This will"
          text run at (0,18) width 204: "require extra text in order to test."
      RenderBlock {UL} at (0,732) size 784x97 [bgcolor=#00FFFF]
        RenderListItem {LI} at (40,0) size 744x18
          RenderListMarker at (0,0) size 0x14
          RenderText {TEXT} at (0,0) size 400x18
            text run at (0,0) width 196: "This list has a margin-top of 25"
            text run at (196,0) width 204: "px, and a light blue background."
        RenderListItem {LI} at (40,18) size 744x18
          RenderListMarker at (0,0) size 0x14
          RenderText {TEXT} at (0,0) size 264x18
            text run at (0,0) width 264: "Therefore, it ought to have such a margin."
        RenderListItem {LI} at (40,61) size 744x18
          RenderListMarker at (0,0) size 0x14
          RenderText {TEXT} at (0,0) size 567x18
            text run at (0,0) width 226: "This list item has a top margin of 25"
            text run at (226,0) width 341: "px, which should cause it to be offset in some fashion."
        RenderListItem {LI} at (40,79) size 744x18
          RenderListMarker at (0,0) size 0x14
          RenderText {TEXT} at (0,0) size 294x18
            text run at (0,0) width 294: "This list item has no special styles applied to it."
      RenderBlock {P} at (0,829) size 784x18 [bgcolor=#C0C0C0]
        RenderText {TEXT} at (0,0) size 203x18
          text run at (0,0) width 203: "This element has a class of zero."
      RenderBlock {P} at (0,837) size 784x54 [bgcolor=#00FFFF]
        RenderText {TEXT} at (0,0) size 766x54
          text run at (0,0) width 231: "This element has a top margin of -10"
          text run at (231,0) width 535: "px, which should cause it to be shifted \"upward\" on the page, and no bottom margin."
          text run at (0,18) width 488: "No other styles have been applied to it besides a light blue background color. "
          text run at (488,18) width 267: "In all other respects, the element should be"
          text run at (0,36) width 48: "normal."
      RenderTable {TABLE} at (0,891) size 784x743 [border: (1px outset #808080)]
        RenderTableSection {TBODY} at (1,1) size 0x741
          RenderTableRow {TR} at (0,0) size 0x0
            RenderTableCell {TD} at (0,0) size 782x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
              RenderInline {STRONG} at (0,0) size 163x18
                RenderText {TEXT} at (4,4) size 163x18
                  text run at (4,4) width 163: "TABLE Testing Section"
          RenderTableRow {TR} at (0,0) size 0x0
            RenderTableCell {TD} at (0,370) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {TEXT} at (4,4) size 4x18
                text run at (4,4) width 4: " "
            RenderTableCell {TD} at (12,26) size 770x715 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderBlock {P} at (4,4) size 762x18 [bgcolor=#C0C0C0]
                RenderText {TEXT} at (0,0) size 203x18
                  text run at (0,0) width 203: "This element has a class of zero."
              RenderBlock {P} at (4,22) size 762x18 [bgcolor=#C0C0C0]
                RenderText {TEXT} at (0,0) size 232x18
                  text run at (0,0) width 232: "This element also has a class of zero."
              RenderBlock {P} at (4,88) size 762x36 [bgcolor=#00FFFF]
                RenderText {TEXT} at (0,0) size 759x36
                  text run at (0,0) width 759: "This element should have a top margin of half an inch, which will require extra text in order to make sure that the margin"
                  text run at (0,18) width 155: "isn't applied to each line."
              RenderBlock {P} at (4,149) size 762x36 [bgcolor=#00FFFF]
                RenderText {TEXT} at (0,0) size 742x36
                  text run at (0,0) width 742: "This element should have a top margin of 25 pixels, which will require extra text in order to make sure that the margin"
                  text run at (0,18) width 155: "isn't applied to each line."
              RenderBlock {P} at (4,265) size 762x36 [bgcolor=#00FFFF]
                RenderText {TEXT} at (0,0) size 745x36
                  text run at (0,0) width 745: "This element should have a top margin of 5 em, which will require extra text in order to make sure that the margin isn't"
                  text run at (0,18) width 126: "applied to each line."
              RenderBlock {P} at (4,491) size 762x36 [bgcolor=#00FFFF]
                RenderText {TEXT} at (0,0) size 753x36
                  text run at (0,0) width 725: "This element should have a top margin of 25%, which is calculated with respect to the width of the parent element. "
                  text run at (725,0) width 28: "This"
                  text run at (0,18) width 232: "will require extra text in order to test."
              RenderBlock {UL} at (4,552) size 762x97 [bgcolor=#00FFFF]
                RenderListItem {LI} at (40,0) size 722x18
                  RenderListMarker at (0,0) size 0x14
                  RenderText {TEXT} at (0,0) size 400x18
                    text run at (0,0) width 196: "This list has a margin-top of 25"
                    text run at (196,0) width 204: "px, and a light blue background."
                RenderListItem {LI} at (40,18) size 722x18
                  RenderListMarker at (0,0) size 0x14
                  RenderText {TEXT} at (0,0) size 264x18
                    text run at (0,0) width 264: "Therefore, it ought to have such a margin."
                RenderListItem {LI} at (40,61) size 722x18
                  RenderListMarker at (0,0) size 0x14
                  RenderText {TEXT} at (0,0) size 567x18
                    text run at (0,0) width 226: "This list item has a top margin of 25"
                    text run at (226,0) width 341: "px, which should cause it to be offset in some fashion."
                RenderListItem {LI} at (40,79) size 722x18
                  RenderListMarker at (0,0) size 0x14
                  RenderText {TEXT} at (0,0) size 294x18
                    text run at (0,0) width 294: "This list item has no special styles applied to it."
              RenderBlock {P} at (4,649) size 762x18 [bgcolor=#C0C0C0]
                RenderText {TEXT} at (0,0) size 203x18
                  text run at (0,0) width 203: "This element has a class of zero."
              RenderBlock {P} at (4,657) size 762x54 [bgcolor=#00FFFF]
                RenderText {TEXT} at (0,0) size 742x54
                  text run at (0,0) width 231: "This element has a top margin of -10"
                  text run at (231,0) width 483: "px, which should cause it to be shifted \"upward\" on the page, and no bottom"
                  text run at (0,18) width 52: "margin. "
                  text run at (52,18) width 488: "No other styles have been applied to it besides a light blue background color. "
                  text run at (540,18) width 202: "In all other respects, the element"
                  text run at (0,36) width 113: "should be normal."