[css-multicol] style: Implement percentages for 'column-gap'.

Bug: 1398537
Reviewed-by: emilio,dholbert
This commit is contained in:
Mats Palmgren 2018-04-02 00:25:30 +02:00 committed by Emilio Cobos Álvarez
parent 9677d5c1ba
commit 3532f64b32
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 26 additions and 12 deletions

View file

@ -679,9 +679,6 @@ impl NonNegativeLength {
}
}
/// Either a NonNegativeLength or the `normal` keyword.
pub type NonNegativeLengthOrNormal = Either<NonNegativeLength, Normal>;
/// Either a NonNegativeLength or the `auto` keyword.
pub type NonNegativeLengthOrAuto = Either<NonNegativeLength, Auto>;
@ -1020,6 +1017,12 @@ impl Parse for LengthOrPercentageOrNone {
/// A wrapper of LengthOrPercentage, whose value must be >= 0.
pub type NonNegativeLengthOrPercentage = NonNegative<LengthOrPercentage>;
/// Either a computed NonNegativeLength or the `normal` keyword.
pub type NonNegativeLengthOrNormal = Either<NonNegativeLength, Normal>;
/// Either a NonNegativeLengthOrPercentage or the `normal` keyword.
pub type NonNegativeLengthOrPercentageOrNormal = Either<NonNegativeLengthOrPercentage, Normal>;
impl From<NoCalcLength> for NonNegativeLengthOrPercentage {
#[inline]
fn from(len: NoCalcLength) -> Self {