color attribute has no effect on feFlood element.

RESOLVED FIXED in Firefox 61

Status

()

defect
--
minor
RESOLVED FIXED
Last year
Last year

People

(Reporter: kamidphish, Assigned: longsonr)

Tracking

60 Branch
mozilla61
Points:
---

Firefox Tracking Flags

(firefox61 fixed)

Details

Attachments

(2 attachments)

A `color="..."` attribute on <feFlood> element appears to have no effect (as shown in the attached sample).

Changing color attribute to `style="color: ..."`, successfully sets the color.
Assignee

Comment 1

Last year
invalid
There's no such thing as a color attribute in SVG.
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → INVALID
Assignee

Comment 2

Last year
invalid
Actually no. The SVG resolved

a) not to add any new CSS properties as attributes in SVG 2 and
b) to add a color property per https://www.w3.org/TR/SVG2/painting.html#ColorProperty

Does any other browser support this property as an attribute?
Status: RESOLVED → UNCONFIRMED
Ever confirmed: false
Resolution: INVALID → ---
We do support a color="" presentation attribute (it was one of the properties that was in SVG 1) but seemingly not on all elements.
Assignee

Comment 4

Last year
We just missed it from one spot. I'm clearly not on form at the moment.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Both Chrome (66.0.3359.139) and Safari (11.1) accept `color="green"`
Assignee

Comment 6

Last year
Assignee: nobody → longsonr
Attachment #8971455 - Flags: review?(cam)
Assignee

Comment 7

Last year
(In reply to Dan Glastonbury (:kamidphish) | needinfo me from comment #5)
> Both Chrome (66.0.3359.139) and Safari (11.1) accept `color="green"`

Indeed, sorry about the mess here.
Comment on attachment 8971455 [details] [diff] [review]
map color in filters

Review of attachment 8971455 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good, thanks.  There is the broader issue of making (nearly) all presentation attributes available on all SVG namespaced elements, per https://svgwg.org/svg2-draft/styling.html#PresentationAttributes, but I'll file a separate bug about that.
Attachment #8971455 - Flags: review?(cam) → review+
Filed bug 1457360 for that.

Comment 11

Last year
Pushed by longsonr@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4b0e963b050b
color attribute should apply to filters. r=heycam

Comment 12

Last year
bugherder
https://hg.mozilla.org/mozilla-central/rev/4b0e963b050b
Status: NEW → RESOLVED
Closed: Last yearLast year
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.