pub type TextIndent = GenericTextIndent<LengthPercentage>;
Expand description
A specified value for the text-indent
property
which takes the grammar of [
https://drafts.csswg.org/css-text/#propdef-text-indent
Aliased Type§
struct TextIndent {
pub length: LengthPercentage,
pub hanging: bool,
pub each_line: bool,
}
Fields§
§length: LengthPercentage
The amount of indent to be applied to the inline-start of the first line.
hanging: bool
Apply indent to non-first lines instead of first.
each_line: bool
Apply to each line after a hard break, not only first in block.
Trait Implementations§
source§impl Parse for TextIndent
impl Parse for TextIndent
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more