Expand description
CSS properties for styling text.
Each property type implements PrintAsCssValue for CSS serialization and
(behind the parser feature) has a corresponding parse_style_* function
with borrowed/owned error type pairs.
Structs§
- Caret
Animation Duration - Caret
Color - Caret
Width - Width of the text cursor (caret) in pixels.
CSS doesn’t have a standard property for this, so we use
-azul-caret-width. - Style
Hanging Punctuation - hanging-punctuation property for hanging punctuation marks
- Style
Initial Letter - initial-letter property for drop caps
- Style
Letter Spacing - Represents a
letter-spacingattribute - Style
Line Clamp - line-clamp property for limiting visible lines
- Style
Line Height - Represents a
line-heightattribute - Style
TabSize - Represents a
tab-sizeattribute - Style
Text Color - Represents a
colorattribute. - Style
Text Indent - Represents a
text-indentattribute (indentation of first line in a block). - Style
Word Spacing - Represents a
word-spacingattribute
Enums§
- Option
Style Alignment Baseline - Option
Style Baseline Source - Option
Style Direction - Option
Style Dominant Baseline - Option
Style Hyphens - Option
Style Initial Letter Align - Option
Style Initial Letter Wrap - Option
Style Line Break - Option
Style Line FitEdge - Option
Style Overflow Wrap - Option
Style Text Align - Option
Style Text Align Last - Option
Style Text BoxEdge - Option
Style Text BoxTrim - Option
Style Text Decoration - Option
Style Text Transform - Option
Style Unicode Bidi - Option
Style User Select - Option
Style Vertical Align - Option
Style White Space - Option
Style Word Break - Style
Alignment Baseline - Represents the
alignment-baselineCSS property. - Style
Alignment Baseline Parse Error - Style
Alignment Baseline Parse Error Owned - Style
Baseline Source - Represents the
baseline-sourceCSS property. - Style
Baseline Source Parse Error - Style
Baseline Source Parse Error Owned - Style
Direction - Text direction.
- Style
Direction Parse Error - Style
Direction Parse Error Owned - Style
Dominant Baseline - Represents the
dominant-baselineCSS property. - Style
Dominant Baseline Parse Error - Style
Dominant Baseline Parse Error Owned - Style
Hanging Punctuation Parse Error - Style
Hanging Punctuation Parse Error Owned - Style
Hyphens - Hyphenation rules.
- Style
Hyphens Parse Error - Style
Hyphens Parse Error Owned - Style
Initial Letter Align - Represents the
initial-letter-alignCSS property. - Style
Initial Letter Align Parse Error - Style
Initial Letter Align Parse Error Owned - Style
Initial Letter Parse Error - Style
Initial Letter Parse Error Owned - Style
Initial Letter Wrap - Represents the
initial-letter-wrapCSS property. - Style
Initial Letter Wrap Parse Error - Style
Initial Letter Wrap Parse Error Owned - Style
Letter Spacing Parse Error - Style
Letter Spacing Parse Error Owned - Style
Line Break - Controls the strictness of line breaking rules.
- Style
Line Break Parse Error - Style
Line Break Parse Error Owned - Style
Line Clamp Parse Error - Style
Line Clamp Parse Error Owned - Style
Line FitEdge - Represents the
line-fit-edgeCSS property. - Style
Line FitEdge Parse Error - Style
Line FitEdge Parse Error Owned - Style
Line Height Parse Error - Style
Line Height Parse Error Owned - Style
Overflow Wrap - Controls whether the browser may break at otherwise disallowed points to prevent overflow.
- Style
Overflow Wrap Parse Error - Style
Overflow Wrap Parse Error Owned - Style
TabSize Parse Error - Style
TabSize Parse Error Owned - Style
Text Align - Horizontal text alignment enum (left, center, right) - default:
Left - Style
Text Align Last - Controls alignment of the last line of a block or a line right before a forced line break.
- Style
Text Align Last Parse Error - Style
Text Align Last Parse Error Owned - Style
Text Align Parse Error - Style
Text Align Parse Error Owned - Style
Text BoxEdge - Represents the
text-box-edgeCSS property. - Style
Text BoxEdge Parse Error - Style
Text BoxEdge Parse Error Owned - Style
Text BoxTrim - Represents the
text-box-trimCSS property. - Style
Text BoxTrim Parse Error - Style
Text BoxTrim Parse Error Owned - Style
Text Color Parse Error - Style
Text Color Parse Error Owned - Style
Text Combine Upright - text-combine-upright property for combining horizontal text in vertical layout
- Style
Text Combine Upright Parse Error - Style
Text Combine Upright Parse Error Owned - Style
Text Decoration - Text decoration (underline, overline, line-through).
- Style
Text Decoration Parse Error - Style
Text Decoration Parse Error Owned - Style
Text Indent Parse Error - Style
Text Indent Parse Error Owned - Style
Text Transform - Controls capitalization of a text run (applied before shaping).
- Style
Text Transform Parse Error - Style
Text Transform Parse Error Owned - Style
Unicode Bidi - Represents the
unicode-bidiCSS property. - Style
Unicode Bidi Parse Error - Style
Unicode Bidi Parse Error Owned - Style
User Select - Controls whether the user can select text. Used to prevent accidental text selection on UI controls like buttons.
- Style
User Select Parse Error - Style
User Select Parse Error Owned - Style
Vertical Align - CSS 2.2 §10.8.1 vertical-align property values
- Style
Vertical Align Parse Error - Style
Vertical Align Parse Error Owned - Style
White Space - How to handle white space inside an element.
- Style
White Space Parse Error - Style
White Space Parse Error Owned - Style
Word Break - Controls line breaking rules within words.
- Style
Word Break Parse Error - Style
Word Break Parse Error Owned - Style
Word Spacing Parse Error - Style
Word Spacing Parse Error Owned
Functions§
- parse_
caret_ animation_ duration - Errors
- parse_
caret_ color - Errors
- parse_
caret_ width - Errors
- parse_
style_ alignment_ baseline - Errors
- parse_
style_ baseline_ source - Errors
- parse_
style_ direction - Errors
- parse_
style_ dominant_ baseline - Errors
- parse_
style_ hanging_ punctuation - Errors
- parse_
style_ hyphens - Errors
- parse_
style_ initial_ letter - Errors
- parse_
style_ initial_ letter_ align - Errors
- parse_
style_ initial_ letter_ wrap - Errors
- parse_
style_ letter_ spacing - Errors
- parse_
style_ line_ break - Errors
- parse_
style_ line_ clamp - Errors
- parse_
style_ line_ fit_ edge - Errors
- parse_
style_ line_ height - Errors
- parse_
style_ overflow_ wrap - Errors
- parse_
style_ tab_ size - Errors
- parse_
style_ text_ align - Errors
- parse_
style_ text_ align_ last - Errors
- parse_
style_ text_ box_ edge - Errors
- parse_
style_ text_ box_ trim - Errors
- parse_
style_ text_ color - Errors
- parse_
style_ text_ combine_ upright - Errors
- parse_
style_ text_ decoration - Errors
- parse_
style_ text_ indent - Errors
- parse_
style_ text_ transform - Errors
- parse_
style_ unicode_ bidi - Errors
- parse_
style_ user_ select - Errors
- parse_
style_ vertical_ align - Errors
- parse_
style_ white_ space - Errors
- parse_
style_ word_ break - Errors
- parse_
style_ word_ spacing - Errors