style: Support offset-anchor.

Differential Revision: https://phabricator.services.mozilla.com/D39432
This commit is contained in:
Boris Chiou 2019-08-02 20:12:38 +00:00 committed by Emilio Cobos Álvarez
parent e04273a4d9
commit 33690b9eaf
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
6 changed files with 57 additions and 2 deletions

View file

@ -9,6 +9,7 @@
use crate::values::computed::{Integer, LengthPercentage, Percentage};
use crate::values::generics::position::Position as GenericPosition;
use crate::values::generics::position::PositionOrAuto as GenericPositionOrAuto;
use crate::values::generics::position::ZIndex as GenericZIndex;
pub use crate::values::specified::position::{GridAutoFlow, GridTemplateAreas};
use crate::Zero;
@ -18,6 +19,9 @@ use style_traits::{CssWriter, ToCss};
/// The computed value of a CSS `<position>`
pub type Position = GenericPosition<HorizontalPosition, VerticalPosition>;
/// The computed value of an `auto | <position>`
pub type PositionOrAuto = GenericPositionOrAuto<Position>;
/// The computed value of a CSS horizontal position.
pub type HorizontalPosition = LengthPercentage;