mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add docs for text-emphasis-property values
This commit is contained in:
parent
73113e28dd
commit
6febdf3751
2 changed files with 25 additions and 0 deletions
|
@ -152,15 +152,22 @@ impl TextDecorationsInEffect {
|
|||
/// A specified value for the `-moz-tab-size` property.
|
||||
pub type MozTabSize = GenericMozTabSize<NonNegativeNumber, NonNegativeLength>;
|
||||
|
||||
/// computed value for the text-emphasis-style property
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||
pub enum TextEmphasisStyle {
|
||||
/// Keyword value for the text-emphasis-style property (`filled` `open`)
|
||||
Keyword(KeywordValue),
|
||||
/// `none`
|
||||
None,
|
||||
/// String (will be used only first character) for the text-emphasis-style property
|
||||
String(String),
|
||||
}
|
||||
|
||||
/// Keyword value for the text-emphasis-style property
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||
pub struct KeywordValue {
|
||||
/// fill for the text-emphasis-style property
|
||||
pub fill: FillMode,
|
||||
/// shape for the text-emphasis-style property
|
||||
pub shape: ShapeKeyword,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue