mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Switch to GridTemplateComponent for subgrid line names
This commit is contained in:
parent
8af912200c
commit
9d9d99ec25
9 changed files with 144 additions and 38 deletions
|
@ -48,6 +48,7 @@ pub use self::position::{Position, PositionComponent};
|
|||
pub use self::text::{InitialLetter, LetterSpacing, LineHeight, WordSpacing};
|
||||
pub use self::transform::{TimingFunction, TransformOrigin};
|
||||
pub use super::generics::grid::GridLine;
|
||||
pub use super::generics::grid::GridTemplateComponent as GenericGridTemplateComponent;
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
pub mod align;
|
||||
|
@ -685,8 +686,8 @@ pub type TrackSize = GenericTrackSize<LengthOrPercentage>;
|
|||
/// (could also be `<auto-track-list>` or `<explicit-track-list>`)
|
||||
pub type TrackList = GenericTrackList<TrackSizeOrRepeat>;
|
||||
|
||||
/// `<track-list> | none`
|
||||
pub type TrackListOrNone = Either<TrackList, None_>;
|
||||
/// `<grid-template-rows> | <grid-template-columns>`
|
||||
pub type GridTemplateComponent = GenericGridTemplateComponent<TrackSizeOrRepeat>;
|
||||
|
||||
#[derive(Clone, Debug, HasViewportPercentage, PartialEq)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue