important-expected.txt   [plain text]


layer at (0,0) size 800x600
  RenderCanvas at (0,0) size 800x600
layer at (0,0) size 800x473
  RenderBlock {HTML} at (0,0) size 800x473
    RenderBody {BODY} at (8,8) size 784x457 [bgcolor=#CCCCCC]
      RenderBlock {P} at (0,0) size 784x18 [color=#008000]
        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,34) size 784x60
        RenderText {TEXT} at (0,0) size 232x45
          text run at (0,0) width 232: "P {color: green ! important;}"
          text run at (0,15) width 120: "P {color: red;}"
          text run at (0,30) width 176: "P#id1 {color: purple;}"
      RenderBlock {HR} at (0,107) size 784x2 [border: (1px inset #000000)]
      RenderBlock {P} at (0,125) size 784x36 [color=#008000]
        RenderText {TEXT} at (0,0) size 767x36
          text run at (0,0) width 767: "This sentence should be green, because the declaration marked important should override any other normal declaration for"
          text run at (0,18) width 355: "the same element, even if it occurs later in the stylesheet."
      RenderBlock {P} at (0,177) size 784x36 [color=#008000]
        RenderText {TEXT} at (0,0) size 403x18
          text run at (0,0) width 403: "This sentence should also be green, even though it has an ID of "
        RenderInline {TT} at (0,0) size 24x15
          RenderText {TEXT} at (403,2) size 24x15
            text run at (403,2) width 24: "id1"
        RenderText {TEXT} at (427,0) size 781x36
          text run at (427,0) width 258: ", which would ordinarily make it purple. "
          text run at (685,0) width 96: "This is because"
          text run at (0,18) width 645: "declarations marked important have more weight than normal declarations given in a STYLE attribute."
      RenderBlock {P} at (0,229) size 784x36 [color=#008000]
        RenderText {TEXT} at (0,0) size 779x36
          text run at (0,0) width 604: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
          text run at (604,0) width 175: "This is because declarations"
          text run at (0,18) width 566: "marked important have more weight than normal declarations given in a STYLE attribute."
      RenderTable {TABLE} at (0,281) size 784x176 [border: (1px outset #808080)]
        RenderTableSection {TBODY} at (1,1) size 0x174
          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,87) 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 770x148 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderBlock {P} at (4,4) size 762x36 [color=#008000]
                RenderText {TEXT} at (0,0) size 745x36
                  text run at (0,0) width 745: "This sentence should be green, because the declaration marked important should override any other normal declaration"
                  text run at (0,18) width 377: "for the same element, even if it occurs later in the stylesheet."
              RenderBlock {P} at (4,56) size 762x36 [color=#008000]
                RenderText {TEXT} at (0,0) size 403x18
                  text run at (0,0) width 403: "This sentence should also be green, even though it has an ID of "
                RenderInline {TT} at (0,0) size 24x15
                  RenderText {TEXT} at (403,2) size 24x15
                    text run at (403,2) width 24: "id1"
                RenderText {TEXT} at (427,0) size 727x36
                  text run at (427,0) width 258: ", which would ordinarily make it purple. "
                  text run at (685,0) width 42: "This is"
                  text run at (0,18) width 699: "because declarations marked important have more weight than normal declarations given in a STYLE attribute."
              RenderBlock {P} at (4,108) size 762x36 [color=#008000]
                RenderText {TEXT} at (0,0) size 700x36
                  text run at (0,0) width 604: "This sentence should also be green, even though it has a STYLE attribute declaring it to be red. "
                  text run at (604,0) width 96: "This is because"
                  text run at (0,18) width 645: "declarations marked important have more weight than normal declarations given in a STYLE attribute."