use decl.prop instead of undefined decl.name

While working on TypeScript types in the oxide version, I noticed that
we used `decl.name`, which is not defined... oops!
This commit is contained in:
Robin Malfait 2022-12-08 13:50:06 +01:00
parent 5d4949845a
commit fde30c307e
No known key found for this signature in database
GPG Key ID: 92F53D68B9041AFE

View File

@ -412,7 +412,7 @@ function isParsableNode(node) {
let isParsable = true
node.walkDecls((decl) => {
if (!isParsableCssValue(decl.name, decl.value)) {
if (!isParsableCssValue(decl.prop, decl.value)) {
isParsable = false
return false
}