mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Implement webkit prefixed values for display property
This commit is contained in:
parent
819a40bfb0
commit
82ef35b7e8
1 changed files with 8 additions and 2 deletions
|
@ -19,9 +19,10 @@
|
||||||
values = """inline block inline-block
|
values = """inline block inline-block
|
||||||
table inline-table table-row-group table-header-group table-footer-group
|
table inline-table table-row-group table-header-group table-footer-group
|
||||||
table-row table-column-group table-column table-cell table-caption
|
table-row table-column-group table-column table-cell table-caption
|
||||||
list-item flex inline-flex
|
list-item none
|
||||||
none
|
|
||||||
""".split()
|
""".split()
|
||||||
|
webkit_prefixed_values = "flex inline-flex".split()
|
||||||
|
values += webkit_prefixed_values
|
||||||
if product == "gecko":
|
if product == "gecko":
|
||||||
values += """grid inline-grid ruby ruby-base ruby-base-container
|
values += """grid inline-grid ruby ruby-base ruby-base-container
|
||||||
ruby-text ruby-text-container contents flow-root -webkit-box
|
ruby-text ruby-text-container contents flow-root -webkit-box
|
||||||
|
@ -121,6 +122,11 @@
|
||||||
Ok(computed_value::T::${to_rust_ident(value)})
|
Ok(computed_value::T::${to_rust_ident(value)})
|
||||||
},
|
},
|
||||||
% endfor
|
% endfor
|
||||||
|
% for value in webkit_prefixed_values:
|
||||||
|
"-webkit-${value}" => {
|
||||||
|
Ok(computed_value::T::${to_rust_ident(value)})
|
||||||
|
},
|
||||||
|
% endfor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue