mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +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
|
@ -139,3 +139,12 @@ fn test_border_style() {
|
|||
assert_roundtrip_with_context!(BorderStyle::parse, r#"inset"#);
|
||||
assert_roundtrip_with_context!(BorderStyle::parse, r#"outset"#);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_border_spacing() {
|
||||
use style::properties::longhands::border_spacing;
|
||||
|
||||
assert_parser_exhausted!(border_spacing, "1px rubbish", false);
|
||||
assert_parser_exhausted!(border_spacing, "1px", true);
|
||||
assert_parser_exhausted!(border_spacing, "1px 2px", true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue