RESOLVED FIXED Bug 32862
Background image positioning on RTL text
https://bugs.webkit.org/show_bug.cgi?id=32862
Summary Background image positioning on RTL text
David Vella
Reported 2009-12-22 02:04:40 PST
Hi there, 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: http://extdev.bbc.co.uk/worldservice/testcases/webkit_background_image.shtml
Attachments
WebArchive of http://extdev.bbc.co.uk/.../webkit_background_image.shtml (5.50 KB, application/octet-stream)
2010-03-27 15:54 PDT, Daniel Bates
no flags
Patch. (751.77 KB, patch)
2011-02-11 14:53 PST, Yael
darin: review+
Patch. (761.15 KB, patch)
2011-02-11 15:32 PST, Yael
no flags
Daniel Bates
Comment 1 2010-03-27 15:54:38 PDT
mitz
Comment 2 2010-10-08 16:02:48 PDT
See also bug 9272.
Yael
Comment 3 2011-02-11 14:53:39 PST
Created attachment 82184 [details] Patch. 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 :)
Yael
Comment 4 2011-02-11 14:55:39 PST
Sorry, one test is missing, I'll update the patch soon.
Darin Adler
Comment 5 2011-02-11 14:57:21 PST
Comment on attachment 82184 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=82184&action=review > Source/WebCore/rendering/InlineFlowBox.cpp:1012 > + int totalLogicalWidth = 0; No reason to initialize this to zero. It’s set in all code paths below.
Yael
Comment 6 2011-02-11 15:32:50 PST
Created attachment 82196 [details] Patch. Removed un-needed initializer and added the missing test.
WebKit Commit Bot
Comment 7 2011-02-11 17:34:47 PST
Comment on attachment 82196 [details] Patch. Clearing flags on attachment: 82196 Committed r78396: <http://trac.webkit.org/changeset/78396>
WebKit Commit Bot
Comment 8 2011-02-11 17:34:54 PST
All reviewed patches have been landed. Closing bug.
WebKit Review Bot
Comment 9 2011-02-13 02:19:45 PST
http://trac.webkit.org/changeset/78396 might have broken SnowLeopard Intel Release (WebKit2 Tests) The following tests are not passing: fast/loader/empty-embed-src-attribute.html
Note You need to log in before you can comment on or make changes to this bug.