From c4ef4fcd726a8450cf82c3e794f3eaeeb9c3d6bb Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 16 Jun 2022 16:05:53 +0100 Subject: [PATCH] LibWeb: Add deprecated `image-rendering` values From the spec: > This property previously accepted the values optimizeSpeed and optimizeQuality. These are now deprecated; a user agent must accept them as valid values but must treat them as having the same behavior as pixelated and smooth respectively, and authors must not use them. - https://www.w3.org/TR/css-images-3/#the-image-rendering --- Userland/Libraries/LibWeb/CSS/Enums.json | 4 +++- Userland/Libraries/LibWeb/CSS/Identifiers.json | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Enums.json b/Userland/Libraries/LibWeb/CSS/Enums.json index d46f8f15df..e006111bf8 100644 --- a/Userland/Libraries/LibWeb/CSS/Enums.json +++ b/Userland/Libraries/LibWeb/CSS/Enums.json @@ -89,7 +89,9 @@ "crisp-edges", "high-quality", "pixelated", - "smooth" + "smooth", + "optimizespeed=pixelated", + "optimizequality=smooth" ], "justify-content": [ "flex-start", diff --git a/Userland/Libraries/LibWeb/CSS/Identifiers.json b/Userland/Libraries/LibWeb/CSS/Identifiers.json index 60d52b3024..a1c9460ec3 100644 --- a/Userland/Libraries/LibWeb/CSS/Identifiers.json +++ b/Userland/Libraries/LibWeb/CSS/Identifiers.json @@ -181,6 +181,8 @@ "nwse-resize", "oblique", "opaque", + "optimizespeed", + "optimizequality", "outset", "outside", "overline",