mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fall back to an older version of the spec in TrackRepeat for the parity with gecko
This commit is contained in:
parent
5eb33bac8f
commit
f4eccdae3f
1 changed files with 10 additions and 0 deletions
|
@ -143,6 +143,16 @@ impl TrackRepeat<LengthOrPercentage> {
|
||||||
|
|
||||||
values.push(track_size);
|
values.push(track_size);
|
||||||
names.push(current_names);
|
names.push(current_names);
|
||||||
|
if is_auto {
|
||||||
|
// FIXME: In the older version of the spec
|
||||||
|
// (https://www.w3.org/TR/2015/WD-css-grid-1-20150917/#typedef-auto-repeat),
|
||||||
|
// if the repeat type is `<auto-repeat>` we shouldn't try to parse more than
|
||||||
|
// one `TrackSize`. But in current version of the spec, this is deprecated
|
||||||
|
// but we are adding this for gecko parity. We should remove this when
|
||||||
|
// gecko implements new spec.
|
||||||
|
names.push(input.try(parse_line_names).unwrap_or(vec![]));
|
||||||
|
break
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if values.is_empty() {
|
if values.is_empty() {
|
||||||
// expecting at least one <track-size>
|
// expecting at least one <track-size>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue