aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/properties/longhand/box.mako.rs10
1 files 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
}
}