Skip to content

Commit

Permalink
Strip whitespace from normalized CSS properties before passing to wor…
Browse files Browse the repository at this point in the history
…klets
  • Loading branch information
developit committed Dec 7, 2020
1 parent d6d7c6e commit 4c7c315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ const propertiesContainer = {
const s = def.syntax.replace(/[<>\s]/g, '');
if (typeof CSS[s] === 'function') v = CSS[s](v);
}
// Safari returns whitespace around values:
if (typeof v === 'string') v = v.trim();
return v;
},
getRaw(name) {
Expand Down

0 comments on commit 4c7c315

Please sign in to comment.