Skip to content

Commit 1977193

Browse files
Enable overflow: clip and overflow-clip-margin for Servo (#114)
1 parent 8af5d51 commit 1977193

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

style/properties/longhands/margin.mako.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ${helpers.predefined_type(
3333
"Length",
3434
"computed::Length::zero()",
3535
parse_method="parse_non_negative",
36-
engines="gecko",
36+
engines="gecko servo",
3737
spec="https://drafts.csswg.org/css-overflow/#propdef-overflow-clip-margin",
3838
affects="overflow",
3939
)}

style/values/specified/box.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,6 @@ pub enum Overflow {
18131813
Hidden,
18141814
Scroll,
18151815
Auto,
1816-
#[cfg(feature = "gecko")]
18171816
Clip,
18181817
}
18191818

@@ -1829,7 +1828,6 @@ impl Parse for Overflow {
18291828
"hidden" => Self::Hidden,
18301829
"scroll" => Self::Scroll,
18311830
"auto" | "overlay" => Self::Auto,
1832-
#[cfg(feature = "gecko")]
18331831
"clip" => Self::Clip,
18341832
#[cfg(feature = "gecko")]
18351833
"-moz-hidden-unscrollable" if static_prefs::pref!("layout.css.overflow-moz-hidden-unscrollable.enabled") => {
@@ -1852,7 +1850,6 @@ impl Overflow {
18521850
match *self {
18531851
Self::Hidden | Self::Scroll | Self::Auto => *self,
18541852
Self::Visible => Self::Auto,
1855-
#[cfg(feature = "gecko")]
18561853
Self::Clip => Self::Hidden,
18571854
}
18581855
}

0 commit comments

Comments
 (0)