Skip to content

Commit 472375e

Browse files
asamuzaKdomenic
authored andcommitted
Update clip.js to use parseLength instead of parseLengthPercentage
Tests in WPT format are included in jsdom/jsdom#3999.
1 parent d6f7769 commit 472375e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/properties/clip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
// deprecated
3-
// @see https://drafts.fxtf.org/css-masking/#clip-property
3+
// @see https://drafts.csswg.org/css-masking-1/#clip-property
44

55
const parsers = require("../parsers");
66

@@ -25,7 +25,7 @@ module.exports.parse = function parse(v, opt = {}) {
2525
const parsedValues = [];
2626
for (const item of values) {
2727
const parsedValue = parsers.parseCSS(item, { context: "value" }, true);
28-
const val = parsers.parseLengthPercentage(parsedValue.children);
28+
const val = parsers.parseLength(parsedValue.children);
2929
if (val) {
3030
parsedValues.push(val);
3131
} else {

0 commit comments

Comments
 (0)