Skip to content

Commit

Permalink
Fix css#468 math function case senstivie handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bv-sumit committed Jul 12, 2023
1 parent 221c9a7 commit df33cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/replace/Dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function compressDimension(node, item) {
}

// issue #222: don't remove units inside calc
if (this.function && MATH_FUNCTIONS.has(this.function.name)) {
if (this.function && MATH_FUNCTIONS.has(this.function.name.toLowerCase())) {
return;
}

Expand Down

0 comments on commit df33cd6

Please sign in to comment.