We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69bfd59 commit 99a8233Copy full SHA for 99a8233
src/css/ValidationTypes.js
@@ -181,7 +181,8 @@ var ValidationTypes = {
181
},
182
183
"<padding-width>": function(part){
184
- return part.value >= 0 && (this["<length>"](part) || this["<percentage>"](part));
+ return (this["<length>"](part) || this["<percentage>"](part)) &&
185
+ (String(part) === "0" || part.type === "function" || (part.value) >= 0);
186
187
188
"<shape>": function(part){
tests/css/Validation.js
@@ -1202,8 +1202,11 @@
1202
property: "padding-left",
1203
1204
valid: [
1205
+ "0",
1206
"6px",
1207
"3%",
1208
+ "1em",
1209
+ "calc(100% - 80px)",
1210
"inherit"
1211
],
1212
0 commit comments