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 784x18
        RenderText {#text} at (0,0) size 611x18
          text run at (0,0) width 611: "This tests for a bug where style would not be applied to a selection that ended just after an image."
      RenderBlock {DIV} at (0,34) size 784x125
        RenderBlock (anonymous) at (0,0) size 784x18
          RenderInline {B} at (0,0) size 0x18
            RenderBR {BR} at (0,0) size 0x18
        RenderBlock {DIV} at (0,18) size 784x107
          RenderInline {B} at (0,0) size 166x18
            RenderText {#text} at (0,89) size 166x18
              text run at (0,89) width 166: "This text should be bold."
          RenderInline {B} at (0,0) size 76x18
            RenderImage {IMG} at (166,0) size 76x103
selection start: position 0 of child 0 {BR} of child 0 {B} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
selection end:   position 1 of child 0 {IMG} of child 1 {B} of child 1 {DIV} of child 2 {DIV} of child 0 {BODY} of child 0 {HTML} of document
