mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +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
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue