mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Auto merge of #17268 - servo:grid, r=wafflespeanut,canaltinova
Add support for subgrids and fix some other grid properties This covers the `subgrid <line-name-lists>?` for `grid-template` (for gecko, and hence, stylo). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17268) <!-- Reviewable:end -->
This commit is contained in:
commit
7a71035793
8 changed files with 384 additions and 113 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;
|
||||
|
@ -686,8 +687,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>;
|
||||
|
||||
no_viewport_percentage!(SVGPaint);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue