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 784x20
        RenderText {#text} at (0,0) size 624x19
          text run at (0,0) width 624: "This tests for a bug where style would not be applied to a selection that ended just after an image."
      RenderBlock {DIV} at (0,36) size 784x128
        RenderBlock (anonymous) at (0,0) size 784x20
          RenderInline {B} at (0,0) size 0x19
            RenderBR {BR} at (0,0) size 0x19
        RenderBlock {DIV} at (0,20) size 784x108
          RenderInline {B} at (0,0) size 244x19
            RenderText {#text} at (0,88) size 168x19
              text run at (0,88) width 168: "This text should be bold."
            RenderImage {IMG} at (167,0) size 77x103
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
