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

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!