[Webkit-unassigned] [Bug 25484] SVG patterns with some scale patternTransform are not displayed correctly for small elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 14 03:05:02 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25484





------- Comment #12 from krit at webkit.org  2009-05-14 03:05 PDT -------
(In reply to comment #8)
> Maybe the clipping optimization could be kept if there is no
> patternTransformation at all?

Sorry, haven't seen your comment. Yes and no. It should work but it doesn't
like expected. The code doesnt' respect patternUnits. If you move your object,
it can happen that the pattern is cut on the wrong place. Short example: 

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="pattern" height="200" width="200" patternUnits="userSpaceOnUse">
<rect x="0" y="0" width="100" height="200" fill="blue" />
<rect x="60" y="0" width="100" height="200" fill="red" />
</pattern>
</defs>
<rect x="10" y="140" width="100" height="100" fill="url(#pattern)" />
</svg>

I don't use patternTransform, but the calculation of the cutting is still
wrong.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list