Skip to content

Commit 61c9280

Browse files
style: disable two-valued text-overflow
Signed-off-by: Richard Tjokroutomo <richard.tjokro2@gmail.com>
1 parent 7d6d5f9 commit 61c9280

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

style/values/specified/text.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ impl Parse for TextOverflow {
228228
context: &ParserContext,
229229
input: &mut Parser<'i, 't>,
230230
) -> Result<TextOverflow, ParseError<'i>> {
231-
let first = TextOverflowSide::parse(context, input)?;
231+
let first = <TextOverflowSide as Parse>::parse(context, input)?;
232232
Ok(
233-
if let Ok(second) = input.try_parse(|input| TextOverflowSide::parse(context, input)) {
233+
#[cfg(feature = "gecko")]
234+
if let Ok(second) = input.try_parse(|input| <TextOverflowSide as Parse>::parse(context, input)) {
234235
Self {
235236
first,
236237
second,
@@ -243,6 +244,12 @@ impl Parse for TextOverflow {
243244
sides_are_logical: true,
244245
}
245246
},
247+
#[cfg(feature = "servo")]
248+
Self {
249+
first: TextOverflowSide::Clip,
250+
second: first,
251+
sides_are_logical: true,
252+
}
246253
)
247254
}
248255
}

0 commit comments

Comments
 (0)