Skip to content

Commit 235ba62

Browse files
authored
Fix top property always clamped to 0
This regressed in c06fbab. Fixes #281. Test: jsdom/jsdom#4012.
1 parent 22dc694 commit 235ba62

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/properties/top.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports.parse = (v, opt = {}) => {
1515
});
1616
if (Array.isArray(value) && value.length === 1) {
1717
return parsers.resolveNumericValue(value, {
18-
min: 0,
1918
type: "length"
2019
});
2120
} else if (typeof value === "string") {

0 commit comments

Comments
 (0)