Add support for subgrid line name lists

This commit is contained in:
Ravi Shankar 2017-06-09 23:35:44 +05:30 committed by Nazım Can Altınova
parent c145dd7b0c
commit 8af912200c
2 changed files with 100 additions and 2 deletions

View file

@ -110,8 +110,7 @@ enum RepeatType {
impl TrackRepeat<LengthOrPercentage> {
fn parse_with_repeat_type<'i, 't>(context: &ParserContext, input: &mut Parser<'i, 't>)
-> Result<(TrackRepeat<LengthOrPercentage>, RepeatType),
ParseError<'i>> {
-> Result<(TrackRepeat<LengthOrPercentage>, RepeatType), ParseError<'i>> {
input.try(|i| i.expect_function_matching("repeat").map_err(|e| e.into())).and_then(|_| {
input.parse_nested_block(|input| {
let count = RepeatCount::parse(context, input)?;