aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/style/properties/gecko.mako.rs11
-rw-r--r--components/style/properties/longhand/inherited_text.mako.rs2
2 files changed, 12 insertions, 1 deletions
diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs
index 3c0b57c9fe0..fe8b2de3499 100644
--- a/components/style/properties/gecko.mako.rs
+++ b/components/style/properties/gecko.mako.rs
@@ -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>
<% text_size_adjust_keyword = Keyword("text-size-adjust", "auto none") %>
diff --git a/components/style/properties/longhand/inherited_text.mako.rs b/components/style/properties/longhand/inherited_text.mako.rs
index 9b4004712ec..70a3710b161 100644
--- a/components/style/properties/longhand/inherited_text.mako.rs
+++ b/components/style/properties/longhand/inherited_text.mako.rs
@@ -698,7 +698,7 @@ ${helpers.predefined_type(
"-moz-tab-size", "LengthOrNumber",
"::values::Either::Second(8.0)",
"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")}