mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Stylo: add content: -moz-alt-content
This commit is contained in:
parent
469ed934e7
commit
d2e0098a03
2 changed files with 16 additions and 0 deletions
|
@ -44,6 +44,11 @@
|
|||
NoOpenQuote,
|
||||
/// `no-close-quote`.
|
||||
NoCloseQuote,
|
||||
|
||||
% if product == "gecko":
|
||||
/// `-moz-alt-content`
|
||||
MozAltContent,
|
||||
% endif
|
||||
}
|
||||
|
||||
impl ToCss for ContentItem {
|
||||
|
@ -72,6 +77,10 @@
|
|||
ContentItem::CloseQuote => dest.write_str("close-quote"),
|
||||
ContentItem::NoOpenQuote => dest.write_str("no-open-quote"),
|
||||
ContentItem::NoCloseQuote => dest.write_str("no-close-quote"),
|
||||
|
||||
% if product == "gecko":
|
||||
ContentItem::MozAltContent => dest.write_str("-moz-alt-content"),
|
||||
% endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -159,6 +168,11 @@
|
|||
"close-quote" => content.push(ContentItem::CloseQuote),
|
||||
"no-open-quote" => content.push(ContentItem::NoOpenQuote),
|
||||
"no-close-quote" => content.push(ContentItem::NoCloseQuote),
|
||||
|
||||
% if product == "gecko":
|
||||
"-moz-alt-content" => content.push(ContentItem::MozAltContent),
|
||||
% endif
|
||||
|
||||
_ => return Err(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue