We're run into a minor display problem in Webkit where positioning a background image to multiline Right-to-Left text, will position the image to the last line of the text, instead of the top right (as stated by the CSS).
The issue seems to appear only when the style is applied to <a> tags, it works normally on <p> (or other) tags.
The bug has been reproduced on a reducted page:
Created attachment 51844 [details]
WebArchive of http://extdev.bbc.co.uk/.../webkit_background_image.shtml
For the purpose of preservation, a WebArchive of the reduction <http://extdev.bbc.co.uk/worldservice/testcases/webkit_background_image.shtml>
See also bug 9272.
Created attachment 82184 [details]
When the style of InlineFlowBox is right-to-left, the strips should be re-arranged in reverse oreder.
Please note that the code change is very small and the patch is big due to the tests :)
Sorry, one test is missing, I'll update the patch soon.
Comment on attachment 82184 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=82184&action=review
> + int totalLogicalWidth = 0;
No reason to initialize this to zero. It’s set in all code paths below.
Created attachment 82196 [details]
Removed un-needed initializer and added the missing test.
Comment on attachment 82196 [details]
Clearing flags on attachment: 82196
Committed r78396: <http://trac.webkit.org/changeset/78396>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/78396 might have broken SnowLeopard Intel Release (WebKit2 Tests)
The following tests are not passing: