From 85b743f27081944e77b84e349e3495b135750e9c Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Fri, 28 Feb 2025 12:32:27 +0100 Subject: [PATCH] Safari doesn't reflect the font-weight of the Canvas context font (#26055) * Safari doesn't reflect the font-weight of the Canvas context font * Safari 18.4 fixes the `font-weight` serialization Co-authored-by: Florian Scholz * Update Safari bug --------- Co-authored-by: Florian Scholz --- api/CanvasRenderingContext2D.json | 14 +++++++++++--- api/OffscreenCanvasRenderingContext2D.json | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/api/CanvasRenderingContext2D.json b/api/CanvasRenderingContext2D.json index a4bf0c58f479dd..4cbe31361c2507 100644 --- a/api/CanvasRenderingContext2D.json +++ b/api/CanvasRenderingContext2D.json @@ -1239,9 +1239,17 @@ "opera_android": { "version_added": "≤12.1" }, - "safari": { - "version_added": "4" - }, + "safari": [ + { + "version_added": "18.4" + }, + { + "version_added": "4", + "version_removed": "18.4", + "partial_implementation": true, + "notes": "The `font-weight` can be set, but is not reflected back (see [bug 284115](https://webkit.org/b/284115))." + } + ], "safari_ios": "mirror", "samsunginternet_android": "mirror", "webview_android": { diff --git a/api/OffscreenCanvasRenderingContext2D.json b/api/OffscreenCanvasRenderingContext2D.json index 7823301757adf9..a56f8975a165d4 100644 --- a/api/OffscreenCanvasRenderingContext2D.json +++ b/api/OffscreenCanvasRenderingContext2D.json @@ -897,9 +897,17 @@ "oculus": "mirror", "opera": "mirror", "opera_android": "mirror", - "safari": { - "version_added": "16.4" - }, + "safari": [ + { + "version_added": "18.4" + }, + { + "version_added": "16.4", + "version_removed": "18.4", + "partial_implementation": true, + "notes": "The `font-weight` can be set, but is not reflected back (see [bug 284115](https://webkit.org/b/284115))." + } + ], "safari_ios": "mirror", "samsunginternet_android": "mirror", "webview_android": "mirror",