Procházet zdrojové kódy

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
Sam Atkins před 3 roky
rodič
revize
c4ef4fcd72

+ 3 - 1
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",

+ 2 - 0
Userland/Libraries/LibWeb/CSS/Identifiers.json

@@ -181,6 +181,8 @@
   "nwse-resize",
   "oblique",
   "opaque",
+  "optimizespeed",
+  "optimizequality",
   "outset",
   "outside",
   "overline",