works with video, defaults to (same as for images)

This commit is contained in:
Hakim El Hattab
2017-01-18 10:43:29 +01:00
parent 84090b882f
commit 941b86b6c3
4 changed files with 13 additions and 1 deletions

View File

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