mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Render multiple backgrounds in correct order
This commit is contained in:
parent
9f8bae4b09
commit
ba089b4771
@ -132,7 +132,7 @@ export default class CanvasRenderer {
|
||||
}
|
||||
|
||||
renderBackgroundImage(container: NodeContainer) {
|
||||
container.style.background.backgroundImage.forEach(backgroundImage => {
|
||||
container.style.background.backgroundImage.reverse().forEach(backgroundImage => {
|
||||
if (backgroundImage.source.method === 'url' && backgroundImage.source.args.length) {
|
||||
this.renderBackgroundRepeat(container, backgroundImage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user