Open Bug 1514311 Opened 6 years ago Updated 4 months ago

Color interpolation does not work if one of the endpoint colors is context-fill or context-stroke

Categories

(Core :: CSS Transitions and Animations, defect, P3)

defect

Tracking

()

Tracking Status
firefox66 --- affected

People

(Reporter: mstange, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image embedded svg
Steps to reproduce: 1. Enable svg.context-properties.content.enabled in about:config. 2. Load the testcase which I am about to attach. Expected results: The testcase should show four purplish-colored circles, i.e. their color should be half-way between blue and red. Actual results: All circles are blue.
Attached file testcase
If we do this, we should probably add the capability to Color to have multiple partial weights like we do already for CurrentColor in: https://searchfox.org/mozilla-central/rev/49e78df13e7a505827a3a86daae9efdf827133c6/servo/components/style/values/generics/color.rs#36 Or implement a version of that just for the SVG colors in: https://searchfox.org/mozilla-central/rev/49e78df13e7a505827a3a86daae9efdf827133c6/servo/components/style/values/generics/svg.rs#64 Either way it's not terribly hard, just work. All the math should be already in ComplexColorRatios and such.
The hardest part I guess is the case where color is animated.
Priority: -- → P3
Mentor: emilio
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: