pub type LineClamp = GenericLineClamp<PositiveInteger>;Expand description
A specified value for the line-clamp property.
Aliased Type§
#[repr(C)]pub struct LineClamp {
pub max_lines: GenericMaxLines<GreaterThanOrEqualToOne<Integer>>,
pub block_ellipsis: BlockEllipsis,
pub webkit_legacy: bool,
}Fields§
§max_lines: GenericMaxLines<GreaterThanOrEqualToOne<Integer>>Maximum line-count and block-size clamping behavior.
block_ellipsis: BlockEllipsisEllipsis displayed at the clamp point.
webkit_legacy: boolWhether legacy line clamping behavior is used.
Implementations§
Source§impl LineClamp
impl LineClamp
Sourcepub fn parse_legacy(
context: &ParserContext<'_>,
input: &mut Parser<'_>,
) -> Result<Self, ParseError>
pub fn parse_legacy( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>
Parses the legacy -webkit-line-clamp syntax.