mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Make -moz-tab-size animatable.
This commit is contained in:
parent
1ea4a44fad
commit
f34b9e2317
2 changed files with 12 additions and 1 deletions
|
@ -3790,6 +3790,17 @@ fn static_assert() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(non_snake_case)]
|
||||||
|
pub fn clone__moz_tab_size(&self) -> longhands::_moz_tab_size::computed_value::T {
|
||||||
|
use values::Either;
|
||||||
|
|
||||||
|
match self.gecko.mTabSize.as_value() {
|
||||||
|
CoordDataValue::Coord(coord) => Either::First(Au(coord)),
|
||||||
|
CoordDataValue::Factor(number) => Either::Second(number),
|
||||||
|
_ => unreachable!(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
<%call expr="impl_coord_copy('_moz_tab_size', 'mTabSize')"></%call>
|
<%call expr="impl_coord_copy('_moz_tab_size', 'mTabSize')"></%call>
|
||||||
|
|
||||||
<% text_size_adjust_keyword = Keyword("text-size-adjust", "auto none") %>
|
<% text_size_adjust_keyword = Keyword("text-size-adjust", "auto none") %>
|
||||||
|
|
|
@ -698,7 +698,7 @@ ${helpers.predefined_type(
|
||||||
"-moz-tab-size", "LengthOrNumber",
|
"-moz-tab-size", "LengthOrNumber",
|
||||||
"::values::Either::Second(8.0)",
|
"::values::Either::Second(8.0)",
|
||||||
"parse_non_negative",
|
"parse_non_negative",
|
||||||
products="gecko", animation_value_type="none",
|
products="gecko", animation_value_type="ComputedValue",
|
||||||
spec="https://drafts.csswg.org/css-text-3/#tab-size-property")}
|
spec="https://drafts.csswg.org/css-text-3/#tab-size-property")}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue