Closed Bug 534841 Opened 15 years ago Closed 15 years ago

SVG filter feFunc[RGBA] of type="gamma" without amplitude attribute removes the color

Categories

(Core :: SVG, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: bugs, Assigned: longsonr)

References

()

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091214 Minefield/3.7a1pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091214 Minefield/3.7a1pre

The implementation doesn’t follow the SVG spec: “[if] the [amplitude] attribute is not specified, then the effect is as if a value of 1 were specified” but a value of 0 is get.

The spec is here: http://www.w3.org/TR/2003/REC-SVG11-20030114/filters.html#feComponentTransferAmplitudeAttribute

Reproducible: Always

Steps to Reproduce:
Load URL and look at the bottom image.
Actual Results:  
It is totally black.

Expected Results:  
It should be darker than the top one.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → longsonr
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #417670 - Flags: review?(roc)
OS: Linux → All
Hardware: x86 → All
Comment on attachment 417670 [details] [diff] [review]
patch

Seems like it would be easy to write a reftest here
Attachment #417670 - Flags: review?(roc) → review+
Attachment #417670 - Attachment is obsolete: true
checked in http://hg.mozilla.org/mozilla-central/rev/cdb87287a747
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

Created:
Updated:
Size: