style: adding from-font support to text-underline-offset and text-decoration-thickness.

Differential Revision: https://phabricator.services.mozilla.com/D41476
This commit is contained in:
Charlie Marlow 2019-08-13 17:43:25 +00:00 committed by Emilio Cobos Álvarez
parent 566f1ea600
commit cf7b0e13b6
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
7 changed files with 59 additions and 9 deletions

View file

@ -10,7 +10,7 @@ use crate::values::computed::length::{Length, LengthPercentage};
use crate::values::computed::{Context, NonNegativeLength, NonNegativeNumber, ToComputedValue};
use crate::values::generics::text::InitialLetter as GenericInitialLetter;
use crate::values::generics::text::LineHeight as GenericLineHeight;
use crate::values::generics::text::Spacing;
use crate::values::generics::text::{Spacing, GenericTextDecorationLength};
use crate::values::specified::text::{self as specified, TextOverflowSide};
use crate::values::specified::text::{TextEmphasisFillMode, TextEmphasisShapeKeyword};
use crate::values::{CSSFloat, CSSInteger};
@ -26,6 +26,9 @@ pub use crate::values::specified::{TextDecorationSkipInk, TextTransform};
/// A computed value for the `initial-letter` property.
pub type InitialLetter = GenericInitialLetter<CSSFloat, CSSInteger>;
/// Implements type for `text-underline-offset` and `text-decoration-thickness` properties
pub type TextDecorationLength = GenericTextDecorationLength<Length>;
/// A computed value for the `letter-spacing` property.
#[repr(transparent)]
#[derive(