Type Alias style::values::computed::text::LetterSpacing

source ·
pub type LetterSpacing = GenericLetterSpacing<LengthPercentage>;
Expand description

This is generic just to make the #[derive()] code do the right thing for lengths.

Aliased Type§

struct LetterSpacing(pub LengthPercentage);

Fields§

§0: LengthPercentage

Implementations§

source§

impl LetterSpacing

source

pub fn normal() -> Self

Return the normal computed value, which is just zero.

Trait Implementations§

source§

impl ToCss for LetterSpacing

source§

fn to_css<W>(&self, dest: &mut CssWriter<'_, W>) -> Result
where W: Write,

Serialize self in CSS syntax, writing to dest.
source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more