Skip to content

Commit

Permalink
overflow: -moz-scrollbars-none is shorthand-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Apr 25, 2017
1 parent cd8af86 commit 35faa37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/style/properties/longhand/box.mako.rs
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions components/style/properties/shorthand/box.mako.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit 35faa37

Please sign in to comment.