Bug 1354000 - (Part 1) Make stylo recognize -moz-crisp-edges keyword. draft
authorKuoE0 <kuoe0.tw@gmail.com>
Mon, 10 Apr 2017 22:31:17 +0800
changeset 560876 432eb0335b6bbdb9f62a2c940e790f4fc54bbba5
parent 559365 45692c884fdd5136a64fb2f8a61a0c8183b69331
child 560877 a017e842eb363cb6ae964babfbb30ae1135e37a2
push id53572
push userbmo:kuoe0@mozilla.com
push dateWed, 12 Apr 2017 02:10:04 +0000
bugs1354000
milestone55.0a1
Bug 1354000 - (Part 1) Make stylo recognize -moz-crisp-edges keyword. MozReview-Commit-ID: GZyvkN4HAqT
servo/components/style/properties/longhand/inherited_box.mako.rs
--- a/servo/components/style/properties/longhand/inherited_box.mako.rs
+++ b/servo/components/style/properties/longhand/inherited_box.mako.rs
@@ -65,23 +65,24 @@
 
 // CSS Color Module Level 4
 // https://drafts.csswg.org/css-color/
 ${helpers.single_keyword("color-adjust",
                          "economy exact", products="gecko",
                          animation_type="none",
                          spec="https://drafts.csswg.org/css-color/#propdef-color-adjust")}
 
-<% image_rendering_custom_consts = { "crisp-edges": "CRISPEDGES" } %>
+<% image_rendering_custom_consts = { "crisp-edges": "CRISPEDGES",
+                                     "-moz-crisp-edges": "CRISPEDGES" } %>
 // According to to CSS-IMAGES-3, `optimizespeed` and `optimizequality` are synonyms for `auto`
 // And, firefox doesn't support `pixelated` yet (https://bugzilla.mozilla.org/show_bug.cgi?id=856337)
 ${helpers.single_keyword("image-rendering",
-                         "auto crisp-edges",
-                         extra_gecko_values="optimizespeed optimizequality",
-                         extra_servo_values="pixelated",
+                         "auto",
+                         extra_gecko_values="optimizespeed optimizequality -moz-crisp-edges",
+                         extra_servo_values="pixelated crisp-edges",
                          custom_consts=image_rendering_custom_consts,
                          animation_type="none",
                          spec="https://drafts.csswg.org/css-images/#propdef-image-rendering")}
 
 // Image Orientation
 <%helpers:longhand name="image-orientation"
                    products="None"
                    animation_type="none"