diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 0a26ae4555b..38243aa45e4 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -2590,8 +2590,10 @@ pub mod style_structs { /// The ${style_struct.name} style struct. pub struct ${style_struct.name} { % for longhand in style_struct.longhands: - /// The ${longhand.name} computed value. - pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T, + % if not longhand.logical: + /// The ${longhand.name} computed value. + pub ${longhand.ident}: longhands::${longhand.ident}::computed_value::T, + % endif % endfor % if style_struct.name == "InheritedText": /// The "used" text-decorations that apply to this box. @@ -3836,7 +3838,9 @@ mod lazy_static_module { % for style_struct in data.active_style_structs(): ${style_struct.ident}: Arc::new(style_structs::${style_struct.name} { % for longhand in style_struct.longhands: - ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % if not longhand.logical: + ${longhand.ident}: longhands::${longhand.ident}::get_initial_value(), + % endif % endfor % if style_struct.name == "InheritedText": text_decorations_in_effect: