Bug 41603

Summary: Incorrect pattern tilling
Product: WebKit Reporter: rspierer
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
test case none

Description rspierer 2010-07-05 04:06:53 PDT
Created attachment 60509 [details]
test case

The interior of the ellipse is empty. In Opera 10.60 there is a black circle in the middle of the ellipse.

According to my interpretation of section 13.3 from the SVG 1.1 (Second Edition) specification the pattern element defines a reference rectangle (the pattern tile) whose origin and dimensions are determined by the attributes x, y, width and height in the coordinate system specified by patternUnits. If there is no viewBox attribute, then the coordinates of the elements inside the pattern element are relative to the origin of the pattern tile:

"The contents of the ‘pattern’ are relative to a new coordinate system. ... If there is no ‘viewBox’ attribute, then the new coordinate system has its origin at (x, y), where x is established by the ‘x’ attribute on the ‘pattern’ element, and y is established by the ‘y’ attribute on the ‘pattern’ element."
Comment 1 Nikolas Zimmermann 2010-08-19 04:55:50 PDT

*** This bug has been marked as a duplicate of bug 41396 ***