The two attached tests have each have a shape image defined on an img element where the width and height of the element are different than the actual width and height of the image. One of them has the element larger (2x) then the image, the other is smaller (1/2). In each case, it appears as though the shape image is being calculated incorrectly. In WebKit, both cases seem to make the image 1 pixel wider than it should be, which causes the text to wrap below the element rather than to the right of it. If I increase the size of the containing element by 1px, the text wraps correctly. In Blink, it's more off in the case where the element is larger than the image - there, it appears to be 5px wider than it should be as I have to increase the containing element's width by 5px to see the text wrap correctly.
Created attachment 239965 [details] Test case for bug
Created attachment 239966 [details] Reference file for test
Created attachment 239967 [details] Image file for test
Created attachment 239968 [details] Second test case for bug
Created attachment 239970 [details] Reference file for second test
Created attachment 239971 [details] Image file for second test
Created attachment 239981 [details] Second test case for bug