style: Implement -webkit-line-clamp.

Differential Revision: https://phabricator.services.mozilla.com/D20115
This commit is contained in:
Cameron McCormack 2019-05-09 02:32:30 +00:00 committed by Emilio Cobos Álvarez
parent 81e706469d
commit ca756a8550
5 changed files with 42 additions and 2 deletions

View file

@ -12,7 +12,7 @@ use super::generics::grid::{GridLine as GenericGridLine, TrackBreadth as Generic
use super::generics::grid::{TrackList as GenericTrackList, TrackSize as GenericTrackSize};
use super::generics::transform::IsParallelTo;
use super::generics::{self, GreaterThanOrEqualToOne, NonNegative};
use super::{Auto, CSSFloat, CSSInteger, Either};
use super::{Auto, CSSFloat, CSSInteger, Either, None_};
use crate::context::QuirksMode;
use crate::parser::{Parse, ParserContext};
use crate::values::serialize_atom_identifier;
@ -593,6 +593,9 @@ impl Parse for PositiveInteger {
}
}
/// A specified positive `<integer>` value or `none`.
pub type PositiveIntegerOrNone = Either<PositiveInteger, None_>;
/// The specified value of a grid `<track-breadth>`
pub type TrackBreadth = GenericTrackBreadth<LengthPercentage>;