GNOME Bugzilla – Bug 677109
Fixes for interactions between background-repeat and background-position
Last modified: 2012-05-30 16:25:58 UTC
This also adds two reftests; one (courtesy of Benjamin) for the simple case of a centered repeating pattern, and the other for more complex positioning of a horizontally-repeating pattern.
Created attachment 215258 [details] [review] reftests: Add a simple reftest for background-position This is mostly to ensure that the background-positioning feature keeps working and to demonstrate it.
Created attachment 215259 [details] [review] reftests: add a reftest for repeating/positioned background patterns This currently fails.
Created attachment 215260 [details] [review] themingbackground: fix drawing for repeating positioned images When we determine the fill rectangle for an image layer, and the image is not repeating, we should also position the rectangle according to the values of background-position, or we will always fill a tiny slice at the top/left of the clip box.
Attachment 215258 [details] pushed as 3a8cec5 - reftests: Add a simple reftest for background-position Attachment 215259 [details] pushed as bce34d8 - reftests: add a reftest for repeating/positioned background patterns Attachment 215260 [details] pushed as 65166c3 - themingbackground: fix drawing for repeating positioned images ACK-ed on IRC by Benjamin