mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #15612 - UnICorN21:master, r=canaltinova
fixed the wrong behavior of border-spacing fixed the wrong behavior of border-spacing --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15489. <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15612) <!-- Reviewable:end -->
This commit is contained in:
commit
d724bffde8
3 changed files with 22 additions and 6 deletions
|
@ -114,15 +114,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