Correctly parse multi background-repeat values

This commit is contained in:
Niklas von Hertzen 2017-08-01 18:25:20 +08:00
parent f89ba365bd
commit 9f8bae4b09

View File

@ -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':