pub trait CanvasGradientMethods<D: DomTypes> { // Required method fn AddColorStop( &self, offset: Finite<f64>, color: DOMString, ) -> Fallible<()>; }