mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Added derive ToCss for Content and removed manual Impl
This commit is contained in:
parent
2f4362e0c1
commit
8116962298
2 changed files with 2 additions and 23 deletions
|
@ -82,7 +82,7 @@ type CounterStyleType = CounterStyleOrNone;
|
|||
/// The specified value for the `content` property.
|
||||
///
|
||||
/// https://drafts.csswg.org/css-content/#propdef-content
|
||||
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue)]
|
||||
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq, ToComputedValue, ToCss)]
|
||||
pub enum Content {
|
||||
/// `normal` reserved keyword.
|
||||
Normal,
|
||||
|
@ -92,6 +92,7 @@ pub enum Content {
|
|||
#[cfg(feature = "gecko")]
|
||||
MozAltContent,
|
||||
/// Content items.
|
||||
#[css(iterable)]
|
||||
Items(Box<[ContentItem]>),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue