mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Correctly parse multi background-repeat values
This commit is contained in:
parent
f89ba365bd
commit
9f8bae4b09
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user