mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Adding parsing support for text-decoration-skip-ink
Differential Revision: https://phabricator.services.mozilla.com/D35831
This commit is contained in:
parent
3530ea9862
commit
034557a717
6 changed files with 41 additions and 2 deletions
|
@ -78,7 +78,7 @@ pub use self::svg::{SVGLength, SVGOpacity, SVGPaint, SVGPaintKind};
|
|||
pub use self::svg::{SVGPaintOrder, SVGStrokeDashArray, SVGWidth};
|
||||
pub use self::svg_path::SVGPathData;
|
||||
pub use self::table::XSpan;
|
||||
pub use self::text::TextTransform;
|
||||
pub use self::text::{TextTransform, TextDecorationSkipInk};
|
||||
pub use self::text::{InitialLetter, LetterSpacing, LineBreak, LineHeight, TextAlign};
|
||||
pub use self::text::{OverflowWrap, TextEmphasisPosition, TextEmphasisStyle, WordBreak};
|
||||
pub use self::text::{TextAlignKeyword, TextDecorationLine, TextOverflow, WordSpacing};
|
||||
|
|
|
@ -1054,3 +1054,28 @@ pub enum OverflowWrap {
|
|||
BreakWord,
|
||||
Anywhere,
|
||||
}
|
||||
|
||||
/// Implements text-decoration-skip-ink which takes the keywords auto | none
|
||||
///
|
||||
/// https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-ink-property
|
||||
#[repr(u8)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
MallocSizeOf,
|
||||
Parse,
|
||||
PartialEq,
|
||||
SpecifiedValueInfo,
|
||||
ToComputedValue,
|
||||
ToCss,
|
||||
ToResolvedValue,
|
||||
ToShmem,
|
||||
)]
|
||||
#[allow(missing_docs)]
|
||||
pub enum TextDecorationSkipInk {
|
||||
Auto,
|
||||
None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue