mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
style: Allow parsing nested calc() expressions.
This commit is contained in:
parent
ed7686b42c
commit
cd43331963
3 changed files with 5 additions and 3 deletions
|
@ -16,6 +16,7 @@ use style_traits::ToCss;
|
|||
#[test]
|
||||
fn test_calc() {
|
||||
assert!(parse(Length::parse, "calc(1px+ 2px)").is_err());
|
||||
assert!(parse(Length::parse, "calc(calc(1px) + calc(1px + 4px))").is_ok());
|
||||
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