mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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]
|
||||
fn test_calc() {
|
||||
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