This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24900 - Remove parser support for filterRes attribute
Summary: Remove parser support for filterRes attribute
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-03 18:14 UTC by Max Vujovic
Modified: 2014-03-18 18:36 UTC (History)
7 users (show)

See Also:


Attachments
Simple SVG Content Test Case: filterRes of "5 5" on left box, no filterRes on right box (462 bytes, image/svg+xml)
2014-03-03 19:40 UTC, Max Vujovic
Details
Simple HTML Content Test Case: filterRes of "5 5" on left box, no filterRes on right box (632 bytes, text/html)
2014-03-03 19:41 UTC, Max Vujovic
Details

Description Max Vujovic 2014-03-03 18:14:49 UTC
filterRes has been removed from the Filter Effects spec:
http://dev.w3.org/fxtf/filters/#element-attrdef-filterres
Comment 1 Ian 'Hixie' Hickson 2014-03-03 18:41:28 UTC
Does anyone implement <filterRes>?
Comment 2 Max Vujovic 2014-03-03 19:38:51 UTC
(In reply to Ian 'Hixie' Hickson from comment #1)
> Does anyone implement <filterRes>?

It's an attribute on the <filter> element (e.g. <filter filterRes="5 5" .../>).

Safari and Chrome implement it when the filter is applied on SVG content. It does not work on HTML content in either browser.

Firefox implements it right now but is in the process of removing it.

I'm not sure what IE does.

Interestingly, the renderings for each browser vary vastly for the simplest test cases.
Comment 3 Max Vujovic 2014-03-03 19:40:42 UTC
Created attachment 1445 [details]
Simple SVG Content Test Case: filterRes of "5 5" on left box, no filterRes on right box
Comment 4 Max Vujovic 2014-03-03 19:41:51 UTC
Created attachment 1446 [details]
Simple HTML Content Test Case: filterRes of "5 5" on left box, no filterRes on right box
Comment 5 Ian 'Hixie' Hickson 2014-03-03 19:42:51 UTC
Well if some browsers support it, it seems better to leave it.

Any idea why Gecko is removing it? Will other browsers follow suit?
Comment 6 Robert O'Callahan (Mozilla) 2014-03-03 20:17:33 UTC
To be clear, Max is removing it from Gecko (with my approval).

AFAIK filterRes is very little used. It's not very well designed. I think removing it is safe because we'll fall back to picking the resolution ourselves instead, which is generally the best thing to do anyway. It adds significant code complexity.
Comment 7 Ian 'Hixie' Hickson 2014-03-17 20:44:28 UTC
Chrome guys are looking into this too:
   https://code.google.com/p/chromium/issues/detail?id=353272
Comment 8 Ian 'Hixie' Hickson 2014-03-18 18:35:31 UTC
Ok, I've removed it.
Comment 9 contributor 2014-03-18 18:36:20 UTC
Checked in as WHATWG revision r8554.
Check-in comment: Drop filterRes SVG attribute from the HTML parser, since it has fallen into disrepute.
http://html5.org/tools/web-apps-tracker?from=8553&to=8554