Correctly parse multi background-repeat values

This commit is contained in:
MoyuScript 2017-08-01 18:25:20 +08:00
parent 97d9b661b7
commit b9f72445de

View File

@ -198,7 +198,7 @@ export const parseBackground = (
}; };
const parseBackgroundRepeat = (backgroundRepeat: string): BackgroundRepeat => { const parseBackgroundRepeat = (backgroundRepeat: string): BackgroundRepeat => {
switch (backgroundRepeat) { switch (backgroundRepeat.trim()) {
case 'no-repeat': case 'no-repeat':
return BACKGROUND_REPEAT.NO_REPEAT; return BACKGROUND_REPEAT.NO_REPEAT;
case 'repeat-x': case 'repeat-x':