Bug 16281

Summary: SVGs do not work as tiled background images
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: SVGAssignee: Nikolas Zimmermann <zimmermann>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, jeffschiller, krit, mackyle, rik, simon.fraser, s+webkit, webkit, zimmermann
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on: 47156    
Bug Blocks:    
Attachments:
Description Flags
Test case for SVG background scaling/tiling none

Beth Dakin
Reported 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
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
Beth Dakin
Comment 1 2007-12-03 13:23:22 PST
Beth Dakin
Comment 2 2007-12-13 14:23:22 PST
I think SVGImage needs to implement its own version of Image::drawPattern()
Sidney San Martín
Comment 3 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
Sidney San Martín
Comment 4 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.
Nikolas Zimmermann
Comment 5 2011-07-04 09:20:07 PDT
I have a fix for this.
Nikolas Zimmermann
Comment 6 2011-07-23 05:01:16 PDT
47156 fixes this bug (except zooming which is still broken).
Nikolas Zimmermann
Comment 7 2011-10-31 08:27:04 PDT
Fixed in r98852. Thanks for the testcase!
Note You need to log in before you can comment on or make changes to this bug.