mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
stylo: Add auto-filled line names to mRepeatAutoLineNameListBefore.
This commit is contained in:
parent
296a215e54
commit
6fb403c396
2 changed files with 11 additions and 4 deletions
|
@ -621,10 +621,10 @@ impl Parse for LineNameList {
|
|||
.take(num.value() as usize * names_list.len())),
|
||||
RepeatCount::AutoFill if fill_idx.is_none() => {
|
||||
// `repeat(autof-fill, ..)` should have just one line name.
|
||||
if names_list.len() > 1 {
|
||||
if names_list.len() != 1 {
|
||||
return Err(StyleParseError::UnspecifiedError.into());
|
||||
}
|
||||
let names = names_list.pop().expect("expected one name list for auto-fill");
|
||||
let names = names_list.pop().unwrap();
|
||||
|
||||
line_names.push(names);
|
||||
fill_idx = Some(line_names.len() as u32 - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue