From 6395279d2b91fd396ee0c00fea8c3713c7baba1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Wed, 14 Sep 2022 15:17:29 +0200 Subject: [PATCH] Update early support for CanvasGradient and CanvasPattern MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support for CanvasPattern is implied by support for ctx.createPattern(), since that's how a CanvasPattern instance is created. Similarly, support for CanvasGradient is implied by support for either createLinearGradient() or createRadialGradient(). The support data for CanvasRenderingContext2D looks reliable based on the PRs that updated it to the current state: https://github.com/mdn/browser-compat-data/pull/7465 https://github.com/mdn/browser-compat-data/pull/8666 Update CanvasGradient and CanvasPattern to match. The versions now match for all browsers except Opera, where some ≤12.1 versions were left alone rather than trying to confirm the correct versions. --- api/CanvasGradient.json | 16 ++++++---------- api/CanvasPattern.json | 10 +++------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/api/CanvasGradient.json b/api/CanvasGradient.json index 3ca0fa705603df..a36688fd7a0732 100644 --- a/api/CanvasGradient.json +++ b/api/CanvasGradient.json @@ -6,7 +6,7 @@ "spec_url": "https://html.spec.whatwg.org/multipage/canvas.html#canvasgradient", "support": { "chrome": { - "version_added": "6" + "version_added": "1" }, "chrome_android": "mirror", "edge": { @@ -30,13 +30,11 @@ "version_added": "10.1" }, "safari": { - "version_added": "5.1" + "version_added": "2" }, "safari_ios": "mirror", "samsunginternet_android": "mirror", - "webview_android": { - "version_added": "3" - } + "webview_android": "mirror" }, "status": { "experimental": false, @@ -50,7 +48,7 @@ "spec_url": "https://html.spec.whatwg.org/multipage/canvas.html#dom-canvasgradient-addcolorstop-dev", "support": { "chrome": { - "version_added": "6" + "version_added": "1" }, "chrome_android": "mirror", "edge": { @@ -71,13 +69,11 @@ "version_added": "10.1" }, "safari": { - "version_added": "5.1" + "version_added": "2" }, "safari_ios": "mirror", "samsunginternet_android": "mirror", - "webview_android": { - "version_added": "3" - } + "webview_android": "mirror" }, "status": { "experimental": false, diff --git a/api/CanvasPattern.json b/api/CanvasPattern.json index 6500857dbc3a48..b2dcc6867941ac 100644 --- a/api/CanvasPattern.json +++ b/api/CanvasPattern.json @@ -27,15 +27,11 @@ "version_added": "10.1" }, "safari": { - "version_added": "≤4" - }, - "safari_ios": { - "version_added": "1" + "version_added": "2" }, + "safari_ios": "mirror", "samsunginternet_android": "mirror", - "webview_android": { - "version_added": "≤37" - } + "webview_android": "mirror" }, "status": { "experimental": false,