layer at (0,0) size 800x600
  RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
  RenderBlock {HTML} at (0,0) size 800x600
    RenderBody {BODY} at (8,8) size 784x584
      RenderBlock {P} at (0,0) size 784x14
        RenderText {#text} at (0,0) size 410x14
          text run at (0,0) width 410: "This tests rowIndex, in particular in cases where the table sections are in different orders."
      RenderBlock {P} at (0,24) size 784x14
        RenderText {#text} at (0,0) size 338x14
          text run at (0,0) width 338: "A: This table has the header and footer before the body (\"normal\" order)."
      RenderTable {TABLE} at (0,48) size 148x68 [border: (1px outset #808080)]
        RenderTableSection {THEAD} at (1,1) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 72x14
                text run at (2,2) width 72: "table A, header"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 0"
        RenderTableSection {TFOOT} at (1,45) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 66x14
                text run at (2,2) width 66: "table A, footer"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 2"
        RenderTableSection {TBODY} at (1,23) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 62x14
                text run at (2,2) width 62: "table A, body"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 1"
      RenderBlock {P} at (0,126) size 784x14
        RenderText {#text} at (0,0) size 338x14
          text run at (0,0) width 338: "B: This table has the footer before the body and both before the header."
      RenderTable {TABLE} at (0,150) size 148x68 [border: (1px outset #808080)]
        RenderTableSection {TFOOT} at (1,45) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 66x14
                text run at (2,2) width 66: "table B, footer"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 2"
        RenderTableSection {TBODY} at (1,23) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 62x14
                text run at (2,2) width 62: "table B, body"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 1"
        RenderTableSection {THEAD} at (1,1) size 146x22
          RenderTableRow {TR} at (0,2) size 146x18
            RenderTableCell {TD} at (2,2) size 76x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 72x14
                text run at (2,2) width 72: "table B, header"
            RenderTableCell {TD} at (80,2) size 64x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 0"
      RenderBlock {P} at (0,228) size 784x14
        RenderText {#text} at (0,0) size 638x14
          text run at (0,0) width 638: "C: This table has two footers before two bodies before two heads. The rows inside the extra footers and heads don't get row indices at all."
      RenderTable {TABLE} at (0,252) size 190x254 [border: (1px outset #808080)]
        RenderTableSection {TFOOT} at (1,211) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 105x14
                text run at (2,2) width 105: "table C, footer A row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 6"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 105x14
                text run at (2,2) width 105: "table C, footer A row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 7"
        RenderTableSection {TFOOT} at (1,43) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 105x14
                text run at (2,2) width 105: "table C, footer B row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 63x14
                text run at (2,2) width 63: "rowIndex = -1"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 105x14
                text run at (2,2) width 105: "table C, footer B row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 63x14
                text run at (2,2) width 63: "rowIndex = -1"
        RenderTableSection {TBODY} at (1,85) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 101x14
                text run at (2,2) width 101: "table C, body A row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 2"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 101x14
                text run at (2,2) width 101: "table C, body A row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 3"
        RenderTableSection {TBODY} at (1,127) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 101x14
                text run at (2,2) width 101: "table C, body B row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 4"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 101x14
                text run at (2,2) width 101: "table C, body B row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 5"
        RenderTableSection {THEAD} at (1,1) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 111x14
                text run at (2,2) width 111: "table C, header A row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 0"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 111x14
                text run at (2,2) width 111: "table C, header A row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 60x14
                text run at (2,2) width 60: "rowIndex = 1"
        RenderTableSection {THEAD} at (1,169) size 188x42
          RenderTableRow {TR} at (0,2) size 188x18
            RenderTableCell {TD} at (2,2) size 115x18 [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 111x14
                text run at (2,2) width 111: "table C, header B row A"
            RenderTableCell {TD} at (119,2) size 67x18 [border: (1px inset #808080)] [r=0 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 63x14
                text run at (2,2) width 63: "rowIndex = -1"
          RenderTableRow {TR} at (0,22) size 188x18
            RenderTableCell {TD} at (2,22) size 115x18 [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
              RenderText {#text} at (2,2) size 111x14
                text run at (2,2) width 111: "table C, header B row B"
            RenderTableCell {TD} at (119,22) size 67x18 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
              RenderText {#text} at (2,2) size 63x14
                text run at (2,2) width 63: "rowIndex = -1"
