mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Try to parse legacy before overflow for JustifyItems
"left" matches `<overflow-position>? && <self-position>`, even though it might have been "left legacy".
This commit is contained in:
parent
1ee1d85934
commit
86d18863e1
1 changed files with 4 additions and 4 deletions
|
@ -332,12 +332,12 @@ impl Parse for JustifyItems {
|
|||
if let Ok(value) = input.try(parse_auto_normal_stretch_baseline) {
|
||||
return Ok(JustifyItems(value))
|
||||
}
|
||||
// [ <overflow-position>? && <self-position> ]
|
||||
if let Ok(value) = input.try(parse_overflow_self_position) {
|
||||
// [ legacy && [ left | right | center ] ]
|
||||
if let Ok(value) = input.try(parse_legacy) {
|
||||
return Ok(JustifyItems(value))
|
||||
}
|
||||
// [ legacy && [ left | right | center ] ]
|
||||
if let Ok(value) = parse_legacy(input) {
|
||||
// [ <overflow-position>? && <self-position> ]
|
||||
if let Ok(value) = parse_overflow_self_position(input) {
|
||||
return Ok(JustifyItems(value))
|
||||
}
|
||||
Err(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue