Switch to GridTemplateComponent for subgrid line names

This commit is contained in:
Ravi Shankar 2017-06-11 11:31:30 +05:30 committed by Nazım Can Altınova
parent 8af912200c
commit 9d9d99ec25
9 changed files with 144 additions and 38 deletions

View file

@ -650,3 +650,17 @@ impl ToCss for LineNameList {
impl ComputedValueAsSpecified for LineNameList {}
no_viewport_percentage!(LineNameList);
/// Variants for `<grid-template-rows> | <grid-template-columns>`
/// Subgrid deferred to Level 2 spec due to lack of implementation.
/// But it's implemented in gecko, so we have to as well.
#[derive(Clone, PartialEq, Debug, ToCss)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub enum GridTemplateComponent<L> {
/// `none` value.
None,
/// The grid `<track-list>`
TrackList(TrackList<L>),
/// A `subgrid <line-name-list>?`
Subgrid(LineNameList),
}