Skip to main content

LineClamp

Type Alias LineClamp 

Source
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: BlockEllipsis

Ellipsis displayed at the clamp point.

§webkit_legacy: bool

Whether legacy line clamping behavior is used.

Implementations§

Source§

impl LineClamp

Source

pub fn parse_legacy( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>

Parses the legacy -webkit-line-clamp syntax.

Trait Implementations§

Source§

impl Parse for LineClamp

Source§

fn parse( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>

Parse a value of this type. Read more