style: Support percentage values for the CSS text-decoration-thickness and text-underline-offset properties.

Differential Revision: https://phabricator.services.mozilla.com/D59777
This commit is contained in:
Jonathan Kew 2020-02-03 14:21:32 +00:00 committed by Emilio Cobos Álvarez
parent 127755551d
commit 2910ca6197
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
3 changed files with 4 additions and 4 deletions

View file

@ -124,7 +124,7 @@ impl<N, L> LineHeight<N, L> {
}
/// Implements type for text-underline-offset and text-decoration-thickness
/// which take the grammar of auto | from-font | <length>
/// which take the grammar of auto | from-font | <length> | <percentage>
///
/// https://drafts.csswg.org/css-text-decor-4/
#[repr(C, u8)]
@ -148,7 +148,7 @@ impl<N, L> LineHeight<N, L> {
)]
#[allow(missing_docs)]
pub enum GenericTextDecorationLength<L> {
Length(L),
LengthPercentage(L),
Auto,
FromFont,
}