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 784x17
        RenderText {#text} at (0,0) size 611x17
          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,33) size 784x123
        RenderBlock (anonymous) at (0,0) size 784x17
          RenderInline {B} at (0,0) size 0x17
            RenderBR {BR} at (0,0) size 0x17
        RenderBlock {DIV} at (0,17) size 784x106
          RenderInline {B} at (0,0) size 242x17
            RenderText {#text} at (0,89) size 166x17
              text run at (0,89) width 166: "This text should be bold."
            RenderImage {IMG} at (166,0) size 76x103
selection start: position 0 of child 0 {BR} of child 0 {B} of child 2 {DIV} of body
selection end:   position 1 of child 1 {IMG} of child 0 {B} of child 1 {DIV} of child 2 {DIV} of body
