File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 118118 : ( ! isNaN ( tmpAspectRatio ) && tmpAspectRatio !== null ? parseFloat ( tmpAspectRatio ) : 0 ) ;
119119
120120 // missing required info
121- if ( ! img [ DEFAULT_SRC ] || ( ( ! img [ WIDTH_UNITS ] || ! img [ HEIGHT_UNITS ] ) && ! img [ ASPECT_RATIO ] ) ) {
121+ if ( ! img [ DEFAULT_SRC ] ) {
122122 img . ignore = TRUE ;
123123 continue ;
124124 }
287287 // ie: .fs-640x480{width:640px;height:480px}
288288 // ensure no duplicates are added to the CSS rules array
289289 dimensionCssRules [ dimensionClassName ] = TRUE ;
290- dimensionCssRules . push ( '.' + dimensionClassName + '{width:' + img [ BROWSER_WIDTH ] + 'px;height:' + img [ BROWSER_HEIGHT ] + 'px}' ) ;
290+ dimensionCssRules . push ( '.' + dimensionClassName + '{width:' + ( ( img [ BROWSER_WIDTH ] > 0 ) ? ( img [ BROWSER_WIDTH ] + 'px;' ) : 'inherit;' ) + ' height:' + ( ( img [ BROWSER_HEIGHT ] > 0 ) ? ( img [ BROWSER_HEIGHT ] + 'px;' ) : 'auto;' ) + ' }' ) ;
291291 }
292292 }
293293
You can’t perform that action at this time.
0 commit comments