mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Support remaining display property values.
MozReview-Commit-ID: HjLu7t2g7gF
This commit is contained in:
parent
b92c451b97
commit
0bc711b023
2 changed files with 11 additions and 3 deletions
|
@ -1028,9 +1028,13 @@ fn static_assert() {
|
|||
<% display_keyword = Keyword("display", "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 none " +
|
||||
"-moz-box -moz-inline-box",
|
||||
"inline-flex grid inline-grid ruby ruby-base ruby-base-container " +
|
||||
"ruby-text ruby-text-container contents -webkit-box -webkit-inline-box " +
|
||||
"-moz-box -moz-inline-box -moz-grid -moz-inline-grid -moz-grid-group " +
|
||||
"-moz-grid-line -moz-stack -moz-inline-stack -moz-deck -moz-popup " +
|
||||
"-moz-groupbox",
|
||||
gecko_enum_prefix="StyleDisplay",
|
||||
gecko_inexhaustive=True) %>
|
||||
gecko_strip_moz_prefix=False) %>
|
||||
${impl_keyword('display', 'mDisplay', display_keyword, True)}
|
||||
|
||||
// overflow-y is implemented as a newtype of overflow-x, so we need special handling.
|
||||
|
|
|
@ -22,7 +22,11 @@
|
|||
none
|
||||
""".split()
|
||||
if product == "gecko":
|
||||
values += "-moz-box -moz-inline-box".split()
|
||||
values += """inline-flex grid inline-grid ruby ruby-base ruby-base-container
|
||||
ruby-text ruby-text-container contents -webkit-box -webkit-inline-box
|
||||
-moz-box -moz-inline-box -moz-grid -moz-inline-grid -moz-grid-group
|
||||
-moz-grid-line -moz-stack -moz-inline-stack -moz-deck -moz-popup
|
||||
-moz-groupbox""".split()
|
||||
%>
|
||||
pub use self::computed_value::T as SpecifiedValue;
|
||||
use values::computed::ComputedValueAsSpecified;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue