From 82ef35b7e8affae0e34be5c254fc2e64b034c6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?= Date: Wed, 21 Jun 2017 12:00:08 -0700 Subject: [PATCH] Implement webkit prefixed values for display property --- components/style/properties/longhand/box.mako.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index a286625fa8f..4f0449ad0bf 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -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 } }