From 9f8bae4b097c453509d1992597301527dddd5e4f Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Tue, 1 Aug 2017 18:25:20 +0800 Subject: [PATCH] Correctly parse multi background-repeat values --- src/parsing/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing/background.js b/src/parsing/background.js index b61996f..b399c79 100644 --- a/src/parsing/background.js +++ b/src/parsing/background.js @@ -198,7 +198,7 @@ export const parseBackground = ( }; const parseBackgroundRepeat = (backgroundRepeat: string): BackgroundRepeat => { - switch (backgroundRepeat) { + switch (backgroundRepeat.trim()) { case 'no-repeat': return BACKGROUND_REPEAT.NO_REPEAT; case 'repeat-x':