stylo: implement interpolation for currentColor

NEW
Unassigned

Status

()

Core
CSS Parsing and Computation
P2
normal
3 months ago
24 days ago

People

(Reporter: bholley, Unassigned)

Tracking

(Depends on: 1 bug, Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

See the discussion at bug 760345, which may impact how we implement it.
Xidorn, are there outstanding spec issues, or is this something we can assign to somebody to work on?
Flags: needinfo?(xidorn+moz)
It seems to me stylo is already able to keep currentcolor keyword in computed value, but it doesn't seem to be able to interpolate between currentcolor keyword and other values.

To support interpolation, we may need to make Servo's specified color and computed color include a new ratio field for the percentage of currentcolor, just like Gecko's eCSSUnit_ComplexColor of nsCSSValue (specified value) and StyleComplexColor struct (computed value).
Flags: needinfo?(xidorn+moz)
Summary: stylo: implement currentColor → stylo: implement interpolation for currentColor
You need to log in before you can comment on or make changes to this bug.