Closed Bug 861153 Opened 11 years ago Closed 11 years ago

feConvolveMatrix effect behaves inconsistently

Categories

(Core :: SVG, defect)

19 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: letmespellitoutforyou, Unassigned)

Details

Attachments

(3 files)

Attached image Firefox rendering
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307023931

Steps to reproduce:

* Go to http://letmespellitoutforyou.com/samples/svg_inlineFilters.html
* Choose filter_convolve.svg#sharpenMore or filter_convolve.svg#moatMore


Actual results:

These effects rendered differently than in other web engines


Expected results:

Effect should apply the same formula, so pixel values should match.
Attached image WebKit rendering
View that SVG directly to test browsers that don't support CSS filter:url(filters.svg#filter)
Component: Untriaged → SVG
Product: Firefox → Core
From http://www.w3.org/TR/SVG/filters.html#feConvolveMatrixElement

Because they operate on pixels, matrix convolutions are inherently resolution-dependent. To make ‘feConvolveMatrix’ produce resolution-independent results, an explicit value should be provided for either the ‘filterRes’ attribute on the ‘filter’ element and/or attribute ‘kernelUnitLength’.

The viewBox scales the filter and there's no filterRes so that's why it's different because Opera tries to do something to mask the resolution dependence. Do take this up with the w3c SVG folks though via http://lists.w3.org/Archives/Public/www-svg/ if the specification were to state explicitly what should happen we'd likely follow it.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Thanks; I forwarded the issue on as you suggested.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: