Merge pull request #1836 from RobertBaron/background-whitespace-uri

Allow whitespace on background-images, w3 compliance
This commit is contained in:
Benjamin Tan 2018-02-09 20:05:26 +08:00
commit d5f4edeeef

View File

@ -3268,7 +3268,7 @@
// Images
if( backgroundImage ) {
background.style.backgroundImage = 'url('+ backgroundImage +')';
background.style.backgroundImage = 'url('+ encodeURI( backgroundImage ) +')';
}
// Videos
else if ( backgroundVideo && !isSpeakerNotes() ) {