Skip to content

Commit 7c880aa

Browse files
committed
Do not ignore unknown properties
1 parent 25be6fd commit 7c880aa

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function findClosingParenAndParseParams(text, openParenIndex) {
193193
let plugin = () => {
194194
return {
195195
Declaration(decl) {
196-
if (decl.prop.includes('shadow') && decl.value.includes('-shadow(')) {
196+
if (decl.value.includes('-shadow(')) {
197197
replaceFunctions(decl, 'sharp')
198198
replaceFunctions(decl, 'soft')
199199
replaceFunctions(decl, 'linear')

test/fixtures/ignores-shadow-functions-in-non-shadow-properties.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/fixtures/ignores-shadow-functions-in-non-shadow-properties.out.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)