style: Enable multiple grid repeat values in Servo.

Differential Revision: https://phabricator.services.mozilla.com/D60931
This commit is contained in:
Emily McDonough 2020-03-19 22:11:48 +00:00 committed by Emilio Cobos Álvarez
parent b85b6ac16f
commit e0b4619fa5
2 changed files with 0 additions and 18 deletions

View file

@ -696,14 +696,6 @@ impl Parse for LineNameList {
.take(num.value() as usize * names_list.len()),
),
RepeatCount::AutoFill if fill_data.is_none() => {
// `repeat(autof-fill, ..)` should have just one line name.
// FIXME(bug 1341507) the above comment is wrong per:
// https://drafts.csswg.org/css-grid-2/#typedef-name-repeat
if names_list.len() != 1 {
return Err(
input.new_custom_error(StyleParseErrorKind::UnspecifiedError)
);
}
let fill_idx = line_names.len();
let fill_len = names_list.len();
fill_data = Some((fill_idx, fill_len));