mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Support multiple track sizes for grid-auto-{columns|rows}.
Support `<track-size>+` on the implicit track sizing properties, grid-auto-columns and grid-auto-rows. Differential Revision: https://phabricator.services.mozilla.com/D38408
This commit is contained in:
parent
69191d8b8c
commit
29f6db4d16
6 changed files with 76 additions and 22 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
use super::computed::transform::DirectionVector;
|
||||
use super::computed::{Context, ToComputedValue};
|
||||
use super::generics::grid::ImplicitGridTracks as GenericImplicitGridTracks;
|
||||
use super::generics::grid::{GridLine as GenericGridLine, TrackBreadth as GenericTrackBreadth};
|
||||
use super::generics::grid::{TrackList as GenericTrackList, TrackSize as GenericTrackSize};
|
||||
use super::generics::transform::IsParallelTo;
|
||||
|
@ -626,6 +627,9 @@ pub type TrackBreadth = GenericTrackBreadth<LengthPercentage>;
|
|||
/// The specified value of a grid `<track-size>`
|
||||
pub type TrackSize = GenericTrackSize<LengthPercentage>;
|
||||
|
||||
/// The specified value of a grid `<track-size>+`
|
||||
pub type ImplicitGridTracks = GenericImplicitGridTracks<TrackSize>;
|
||||
|
||||
/// The specified value of a grid `<track-list>`
|
||||
/// (could also be `<auto-track-list>` or `<explicit-track-list>`)
|
||||
pub type TrackList = GenericTrackList<LengthPercentage, Integer>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue