mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
style: Support offset-anchor.
Differential Revision: https://phabricator.services.mozilla.com/D39432
This commit is contained in:
parent
e04273a4d9
commit
33690b9eaf
6 changed files with 57 additions and 2 deletions
|
@ -68,7 +68,7 @@ pub use self::list::Quotes;
|
|||
pub use self::motion::{OffsetPath, OffsetRotate};
|
||||
pub use self::outline::OutlineStyle;
|
||||
pub use self::percentage::{NonNegativePercentage, Percentage};
|
||||
pub use self::position::{GridAutoFlow, GridTemplateAreas, Position, ZIndex};
|
||||
pub use self::position::{GridAutoFlow, GridTemplateAreas, Position, PositionOrAuto, ZIndex};
|
||||
pub use self::rect::NonNegativeLengthOrNumberRect;
|
||||
pub use self::resolution::Resolution;
|
||||
pub use self::svg::MozContextProperties;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue