Closed Bug 1492694 Opened 7 years ago Closed 7 years ago

invalid filter primitive in="" attributes should be treated as if they weren't specified

Categories

(Core :: SVG, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: heycam, Assigned: heycam)

Details

Attachments

(1 file)

We currently make the entire filter invalid in this case.
Is this specified? What other UAs work this way?
Flags: needinfo?(cam)
Yes, it's specified in https://www.w3.org/TR/filter-effects-1/#element-attrdef-filter-primitive-in: References to non-existent results will be treated as if no result was specified. Chrome behaves this way at least.
Flags: needinfo?(cam)
Comment on attachment 9010517 [details] Bug 1492694 - Treat invalid in="" attributes as if they weren't specified Robert Longson [:longsonr] has approved the revision.
Attachment #9010517 - Flags: review+
Safari matches current Firefox behavior (those two tests show red rects). Edge matches current Firefox behavior for the first subtest, but fails in a different way (it shows a green/blue rect) in the second subtest.
Anyway, although Chrome is the only one matching the spec right now, the spec requirement seems reasonable, and hopefully the tests will help nudge the others to change.
(In reply to Cameron McCormack (:heycam) from comment #7) > Edge matches current Firefox behavior for the first subtest, but fails in a > different way (it shows a green/blue rect) in the second subtest. My mistake, that was a bug in the second test. :-) Edge passes this test with the correction.
Pushed by cmccormack@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4fa839cdb888 Treat invalid in="" attributes as if they weren't specified r=longsonr
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/13107 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: