CanvasGradient#addColorStop should throw for invalid colors and offsets

This commit is contained in:
David Zbarsky 2015-08-08 22:05:49 -04:00
parent 44d93bc37a
commit 7315b50973
7 changed files with 24 additions and 24 deletions

View file

@ -7,6 +7,7 @@
// [Exposed=(Window,Worker)]
interface CanvasGradient {
// opaque object
[Throws]
void addColorStop(double offset, DOMString color);
};