Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

IE filter property #15

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
compat for older IE
  • Loading branch information
mcanepa committed Mar 26, 2024
commit 0ac075dde0a11a322014e3967ff879192699ec76
6 changes: 3 additions & 3 deletions lib/themeroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ function ThemeRoller( baseThemeCss, vars, options ) {
vars.opacityShadow = opacityFix( vars.opacityShadow );
}
else {
// For version >= 1.13.0, -ms-filter has its own separate line and variable name.
// For version >= 1.13.0, filter has its own separate line and variable name.
opacityFix = function( opacity ) {
return ( opacity / 100 ).toString().replace( /^0\./, "." ) + ';-ms-filter: "alpha(opacity=' + opacity + ')"';
return ( opacity / 100 ).toString().replace( /^0\./, "." ) + ';filter: "alpha(opacity=' + opacity + ')"';
};
opacityFilter = function( opacity ) {
return '"alpha(opacity=' + opacity + ')"';
return "alpha(opacity=\" + opacity + \")";
};
vars.opacityFilterOverlay = opacityFilter( vars.opacityOverlay );
vars.opacityFilterShadow = opacityFilter( vars.opacityShadow );
Expand Down