pub type ContentItem = GenericContentItem<Image>;
Expand description
The specified value for a content item in the content
property.
Aliased Type§
enum ContentItem {
String(OwnedStr),
Counter(CustomIdent, T),
Counters(CustomIdent, OwnedStr, T),
OpenQuote,
CloseQuote,
NoOpenQuote,
NoCloseQuote,
Attr(Attr),
Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>),
}
Variants§
String(OwnedStr)
Literal string content.
Counter(CustomIdent, T)
counter(name, style)
.
Counters(CustomIdent, OwnedStr, T)
counters(name, separator, style)
.
OpenQuote
open-quote
.
CloseQuote
close-quote
.
NoOpenQuote
no-open-quote
.
NoCloseQuote
no-close-quote
.
Attr(Attr)
attr([namespace?
|]? ident)
Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>)
image-set(url) | url(url)