Bug 16281 - SVGs do not work as tiled background images
Summary: SVGs do not work as tiled background images
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nikolas Zimmermann
URL:
Keywords: InRadar
Depends on: 47156
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-03 13:22 PST by Beth Dakin
Modified: 2011-10-31 08:27 PDT (History)
9 users (show)

See Also:


Attachments
Test case for SVG background scaling/tiling (1.12 KB, application/zip)
2010-08-24 08:54 PDT, Sidney San Martín
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2007-12-03 13:22:53 PST
SVGs work as background-images right now, but not when the background image is tiled. This is covered by an existing layout test:

fast/images/svg-as-tiled-background.html
Comment 1 Beth Dakin 2007-12-03 13:23:22 PST
<rdar://problem/5615946>
Comment 2 Beth Dakin 2007-12-13 14:23:22 PST
I think SVGImage needs to implement its own version of Image::drawPattern()
Comment 3 Sidney San Martín 2010-08-24 08:54:33 PDT
Created attachment 65278 [details]
Test case for SVG background scaling/tiling

Should be scaled to `background-size`, not element size
Comment 4 Sidney San Martín 2010-08-24 08:57:33 PDT
This attachment may help clarify the bug… The SVG background image tiles just fine with `background-size`, but is scaled to the element size and clipped to the `background-size`, which is wrong behavior.
Comment 5 Nikolas Zimmermann 2011-07-04 09:20:07 PDT
I have a fix for this.
Comment 6 Nikolas Zimmermann 2011-07-23 05:01:16 PDT
47156 fixes this bug (except zooming which is still broken).
Comment 7 Nikolas Zimmermann 2011-10-31 08:27:04 PDT
Fixed in r98852. Thanks for the testcase!