mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Add a test for other valid uses of calc()
This commit is contained in:
parent
dae17dcaf3
commit
20d0e71232
1 changed files with 3 additions and 0 deletions
|
@ -9,4 +9,7 @@ use style::values::specified::length::Length;
|
||||||
#[test]
|
#[test]
|
||||||
fn test_calc() {
|
fn test_calc() {
|
||||||
assert!(parse(Length::parse, "calc(1px+ 2px)").is_err());
|
assert!(parse(Length::parse, "calc(1px+ 2px)").is_err());
|
||||||
|
assert!(parse(Length::parse, "calc( 1px + 2px )").is_ok());
|
||||||
|
assert!(parse(Length::parse, "calc(1px + 2px )").is_ok());
|
||||||
|
assert!(parse(Length::parse, "calc( 1px + 2px)").is_ok());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue