Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion style/properties/longhands/text.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ${helpers.predefined_type(
"TextOverflow",
"computed::TextOverflow::get_initial_value()",
engines="gecko servo",
servo_pref="layout.unimplemented",
animation_type="discrete",
boxed=True,
spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow",
Expand Down
3 changes: 3 additions & 0 deletions style/values/specified/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ pub enum TextOverflowSide {
/// Render ellipsis to represent clipped inline content.
Ellipsis,
/// Render a given string to represent clipped inline content.
#[cfg(feature = "gecko")]
String(crate::values::AtomString),
}

Expand Down Expand Up @@ -229,7 +230,9 @@ impl Parse for TextOverflow {
) -> Result<TextOverflow, ParseError<'i>> {
let first = TextOverflowSide::parse(context, input)?;
Ok(

if let Ok(second) = input.try_parse(|input| TextOverflowSide::parse(context, input)) {
#[cfg(feature = "gecko")]
Self {
first,
second,
Expand Down