Skip to content

Commit

Permalink
Add overflow:clip
Browse files Browse the repository at this point in the history
  • Loading branch information
longvatrong111 committed Jan 15, 2025
1 parent dfed17b commit 860618a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions style/values/specified/box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,6 @@ pub enum Overflow {
Hidden,
Scroll,
Auto,
#[cfg(feature = "gecko")]
Clip,
}

Expand All @@ -1829,7 +1828,6 @@ impl Parse for Overflow {
"hidden" => Self::Hidden,
"scroll" => Self::Scroll,
"auto" | "overlay" => Self::Auto,
#[cfg(feature = "gecko")]
"clip" => Self::Clip,
#[cfg(feature = "gecko")]
"-moz-hidden-unscrollable" if static_prefs::pref!("layout.css.overflow-moz-hidden-unscrollable.enabled") => {
Expand All @@ -1852,7 +1850,6 @@ impl Overflow {
match *self {
Self::Hidden | Self::Scroll | Self::Auto => *self,
Self::Visible => Self::Auto,
#[cfg(feature = "gecko")]
Self::Clip => Self::Hidden,
}
}
Expand Down

0 comments on commit 860618a

Please sign in to comment.