From 35faa37a256d3e7c39aa40517b9e1fed1a605675 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 25 Apr 2017 15:16:58 -0700 Subject: [PATCH] overflow: -moz-scrollbars-none is shorthand-only --- components/style/properties/longhand/box.mako.rs | 1 - components/style/properties/shorthand/box.mako.rs | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 580cd41c8c9..59f9ae7e8b2 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -358,7 +358,6 @@ ${helpers.single_keyword("overflow-clip-box", "padding-box content-box", // FIXME(pcwalton, #2742): Implement scrolling for `scroll` and `auto`. ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", need_clone=True, animation_value_type="none", - extra_gecko_aliases="-moz-scrollbars-none=hidden", extra_gecko_values="-moz-hidden-unscrollable", custom_consts=overflow_custom_consts, gecko_constant_prefix="NS_STYLE_OVERFLOW", diff --git a/components/style/properties/shorthand/box.mako.rs b/components/style/properties/shorthand/box.mako.rs index cf98bffa347..f3d1be988d9 100644 --- a/components/style/properties/shorthand/box.mako.rs +++ b/components/style/properties/shorthand/box.mako.rs @@ -27,6 +27,12 @@ overflow_y: SpecifiedValue::scroll, }) } + "-moz-scrollbars-none" => { + Ok(Longhands { + overflow_x: SpecifiedValue::hidden, + overflow_y: SpecifiedValue::hidden, + }) + } _ => Err(()) }); if moz_kw_found.is_ok() {