Skip to content

Commit

Permalink
Make stylo recognize -moz-crisp-edges keyword.
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: GZyvkN4HAqT
  • Loading branch information
kuoe0 committed Apr 12, 2017
1 parent d77d752 commit fdbf0f2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/style/properties/longhand/inherited_box.mako.rs
Expand Up @@ -70,13 +70,14 @@ ${helpers.single_keyword("color-adjust",
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")}
Expand Down

0 comments on commit fdbf0f2

Please sign in to comment.