mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
fixed the wrong behavior of border-spacing
This commit is contained in:
parent
11396b4dd3
commit
06650f8428
3 changed files with 22 additions and 6 deletions
|
@ -113,15 +113,11 @@ ${helpers.single_keyword("caption-side", "top bottom",
|
|||
Err(()) => (),
|
||||
Ok(length) => {
|
||||
first = Some(length);
|
||||
match specified::Length::parse_non_negative(input) {
|
||||
Err(()) => (),
|
||||
Ok(length) => second = Some(length),
|
||||
if let Ok(len) = input.try(|input| specified::Length::parse_non_negative(input)) {
|
||||
second = Some(len);
|
||||
}
|
||||
}
|
||||
}
|
||||
if input.next().is_ok() {
|
||||
return Err(())
|
||||
}
|
||||
match (first, second) {
|
||||
(None, None) => Err(()),
|
||||
(Some(length), None) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue