mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -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