Closed
Bug 355467
Opened 18 years ago
Closed 18 years ago
<svg:pattern> does not render
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: djpnewton, Unassigned)
References
Details
Attachments
(6 files)
1.11 KB,
image/svg+xml
|
Details | |
32.48 KB,
image/png
|
Details | |
1.53 KB,
text/xml
|
Details | |
65.45 KB,
image/png
|
Details | |
984 bytes,
patch
|
Details | Diff | Splinter Review | |
5.34 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061001 Minefield/3.0a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061001 Minefield/3.0a1
I have a simple pattern that should stretch the pattern over an elements filled area but it is not rendering at all.
Reproducible: Always
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
Reporter | ||
Comment 3•18 years ago
|
||
Reporter | ||
Comment 4•18 years ago
|
||
Comment 5•18 years ago
|
||
Well, we're clearly not handling patternUnits="objectBoundingBox" right. We do the right thing in GetPatternRect, but we don't handle it correctly the other places we call GetX(), GetY(), GetHeight(), and GetWidth(). I did a quick hack to fix that up, but I'm still not getting the correct rendering (I think I'm getting some incorrect offsets). Pattern example 2 is totally messed up in my hacked version (but at least it paints a pattern!).
Does this help any with your patch? I needed this to fix bug 345448.
Comment 7•18 years ago
|
||
(In reply to comment #6)
> Created an attachment (id=241460) [edit]
> partial fix (actually bug 345448)
>
> Does this help any with your patch? I needed this to fix bug 345448.
>
No, but it certainly changes things. The pattern is still offset, but now it seems to be even more so. I'm attaching my patch, can you see what you see?
Comment 8•18 years ago
|
||
Updated•18 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 9•18 years ago
|
||
Example 2 seems to display as desired now. Example 1 does not though.
Comment 10•18 years ago
|
||
I think we are displaying Example 1 correctly. I.e. it should not display anything. To get it to display set patternContentUnits = "objectBoundingBox" on the pattern.
patternContentUnits is currently not specified and so it defaults to userSpaceOnUse.
Consider the rect in Example 1 for instance which is at x=0, y=250. This references a pattern rect at 0, 0 with height 100. Since we are in user space this means the pattern displays entirely outside the rect because 0 + 100 < 250.
Not sure whether to close this as INVALID based on Example 1 or a duplicate of bug 377263 based on Example 2.
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•