Render multiple backgrounds in correct order

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

View File

@ -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);
}