Implement webkit prefixed values for display property

This commit is contained in:
Nazım Can Altınova 2017-06-21 12:00:08 -07:00
parent 819a40bfb0
commit 82ef35b7e8

View file

@ -19,9 +19,10 @@
values = """inline block inline-block
table inline-table table-row-group table-header-group table-footer-group
table-row table-column-group table-column table-cell table-caption
list-item flex inline-flex
none
list-item none
""".split()
webkit_prefixed_values = "flex inline-flex".split()
values += webkit_prefixed_values
if product == "gecko":
values += """grid inline-grid ruby ruby-base ruby-base-container
ruby-text ruby-text-container contents flow-root -webkit-box
@ -121,6 +122,11 @@
Ok(computed_value::T::${to_rust_ident(value)})
},
% endfor
% for value in webkit_prefixed_values:
"-webkit-${value}" => {
Ok(computed_value::T::${to_rust_ident(value)})
},
% endfor
}
}