Skip to content

Commit

Permalink
Render multiple backgrounds in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasvh committed Aug 1, 2017
1 parent 9f8bae4 commit ba089b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ba089b4

Please sign in to comment.