mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Replace IntegerOrAuto with ZIndex
It's its only use.
This commit is contained in:
parent
6a7ae3b12e
commit
b44ffcf498
9 changed files with 75 additions and 50 deletions
|
@ -9,8 +9,9 @@
|
|||
|
||||
use std::fmt::{self, Write};
|
||||
use style_traits::{CssWriter, ToCss};
|
||||
use values::computed::{LengthOrPercentage, Percentage};
|
||||
use values::computed::{Integer, LengthOrPercentage, Percentage};
|
||||
use values::generics::position::Position as GenericPosition;
|
||||
use values::generics::position::ZIndex as GenericZIndex;
|
||||
pub use values::specified::position::{GridAutoFlow, GridTemplateAreas};
|
||||
|
||||
/// The computed value of a CSS `<position>`
|
||||
|
@ -49,3 +50,6 @@ impl ToCss for Position {
|
|||
self.vertical.to_css(dest)
|
||||
}
|
||||
}
|
||||
|
||||
/// A computed value for the `z-index` property.
|
||||
pub type ZIndex = GenericZIndex<Integer>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue