mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implement -webkit-gradient() (fixes #16542)
This commit is contained in:
parent
9e6f9db127
commit
ea4e7299d4
4 changed files with 285 additions and 16 deletions
|
@ -717,7 +717,7 @@ ${helpers.predefined_type("border-image-source", "ImageLayer",
|
|||
|
||||
let mut values = vec![];
|
||||
for _ in 0..4 {
|
||||
let value = input.try(|input| NumberOrPercentage::parse(context, input));
|
||||
let value = input.try(|input| NumberOrPercentage::parse_non_negative(context, input));
|
||||
match value {
|
||||
Ok(val) => values.push(val),
|
||||
Err(_) => break,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue