Closed Bug 519368 Opened 15 years ago Closed 15 years ago

<pattern> viewBox not treated correctly

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martin.hejral, Assigned: longsonr)

Details

Attachments

(5 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; cs; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; cs; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1

By my opinion, there can be problem with the temporary memory used when replicate pattern...

Reproducible: Always

Steps to Reproduce:
Please try the SVG test file
Actual Results:  
See screenshot from the FF

Expected Results:  
See screenshot from the Safari
Attached image test file
Attached image Expected result
Attached image Bad rendering in FF
The test file looks the same to me in Opera and Firefox i.e. a big black square. That's what both the screenshots look like too. What difference am I supposed to be seeing?
Removing |viewBox| from <pattern> (and translating pattern shape manually), this doesn't happened.
The problem of viewBox handling of patterns?
Ahh I see now. Red on black is pretty much invisible on my laptop.
I wonder if this is something to do with overflow? I don't think we support overflow on patterns currently.
Can the testcase be reduced further please?
Attached patch patch (obsolete) — Splinter Review
I think this is right. It is copied from nsSVGMarkerElement::GetViewBoxTransform
Assignee: nobody → longsonr
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #419355 - Flags: review?(jwatt)
Attachment #419355 - Attachment is patch: true
Attachment #419355 - Flags: review?(jwatt) → review+
Summary: complex SVG <pattern> are incorrectly rendered → <pattern> viewBox not treated correctly
Attachment #419355 - Attachment is obsolete: true
checked in http://hg.mozilla.org/mozilla-central/rev/540cddf958e3
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: