Replace NonNegativeLengthOrNumber by a specific type for -moz-tab-size

This is the only use of this type.
This commit is contained in:
Anthony Ramine 2018-02-27 10:28:27 +01:00
parent da8604991e
commit 27732c7dbb
9 changed files with 49 additions and 28 deletions

View file

@ -13,6 +13,7 @@ use values::computed::{NonNegativeLength, NonNegativeNumber};
use values::computed::length::{Length, LengthOrPercentage};
use values::generics::text::InitialLetter as GenericInitialLetter;
use values::generics::text::LineHeight as GenericLineHeight;
use values::generics::text::MozTabSize as GenericMozTabSize;
use values::generics::text::Spacing;
use values::specified::text::{TextOverflowSide, TextDecorationLine};
@ -147,3 +148,6 @@ impl TextDecorationsInEffect {
result
}
}
/// A specified value for the `-moz-tab-size` property.
pub type MozTabSize = GenericMozTabSize<NonNegativeNumber, NonNegativeLength>;