diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index 7f4783e..a59916f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -884,6 +884,7 @@ // Additional and optional background properties if( data.backgroundSize ) element.style.backgroundSize = data.backgroundSize; + if( data.backgroundSize ) element.setAttribute( 'data-background-size', data.backgroundSize ); if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor; if( data.backgroundRepeat ) element.style.backgroundRepeat = data.backgroundRepeat; if( data.backgroundPosition ) element.style.backgroundPosition = data.backgroundPosition; |