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

RESOLVED FIXED

Status

()

--
minor
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: bugs, Assigned: longsonr)

Tracking

unspecified
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment, 1 obsolete attachment)

(Reporter)

Description

9 years ago
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.
(Assignee)

Comment 1

9 years ago
Created attachment 417670 [details] [diff] [review]
patch
Assignee: nobody → longsonr
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #417670 - Flags: review?(roc)
(Assignee)

Updated

9 years ago
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+
(Assignee)

Comment 3

9 years ago
Created attachment 417794 [details] [diff] [review]
patch with reftest
Attachment #417670 - Attachment is obsolete: true
(Assignee)

Comment 4

9 years ago
checked in http://hg.mozilla.org/mozilla-central/rev/cdb87287a747
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.