aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/CanvasGradient.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/CanvasGradient.webidl')
-rw-r--r--components/script/dom/webidls/CanvasGradient.webidl5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/webidls/CanvasGradient.webidl b/components/script/dom/webidls/CanvasGradient.webidl
index fbeab843987..abe41d853dc 100644
--- a/components/script/dom/webidls/CanvasGradient.webidl
+++ b/components/script/dom/webidls/CanvasGradient.webidl
@@ -3,10 +3,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+// https://html.spec.whatwg.org/#canvasgradient
+// [Exposed=(Window,Worker)]
interface CanvasGradient {
// opaque object
- // addColorStop should take a double
- void addColorStop(float offset, DOMString color);
+ void addColorStop(double offset, DOMString color);
};