|
|
@ -486,7 +486,7 @@ |
|
|
|
if (typeof w === "number") { |
|
|
|
if (typeof w === "number") { |
|
|
|
return w >= 0; |
|
|
|
return w >= 0; |
|
|
|
} else if (typeof w === "string") { |
|
|
|
} else if (typeof w === "string") { |
|
|
|
return /^\d{1,3}(\.\d)?%$/.test(w) || w === "auto" || /^\d+px$/.test(w) || /^calc/.test(w); |
|
|
|
return /^\d{1,3}(\.\d)?%$/.test(w) || w === "auto" || /^\d+(\.\d+)px$/.test(w) || /^calc/.test(w); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|