Skip to content

Commit

Permalink
reseting opacity in IE when !important
Browse files Browse the repository at this point in the history
and add tests
  • Loading branch information
fiskus authored and notslang committed Dec 15, 2014
1 parent 72cf218 commit afa4bfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/nib/vendor.styl
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ opacity(n, args...)
else
val = round(n * 100)
if val == 100
-ms-filter: none
filter: none
-ms-filter: none args
filter: none args
else
-ms-filter: '"progid:DXImageTransform.Microsoft.Alpha(Opacity=%s)"' % val args
filter: 'alpha(opacity=%s)' % val args
Expand Down
3 changes: 3 additions & 0 deletions test/cases/importance.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
opacity: 0.5 !important;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)" !important;
filter: alpha(opacity=50) !important;
opacity: 1 !important;
-ms-filter: none !important;
filter: none !important;
resize: both !important;
cursor: pointer !important;
unicode-bidi: normal !important;
Expand Down
1 change: 1 addition & 0 deletions test/cases/importance.styl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@


opacity: 0.5 !important
opacity: 1 !important
resize: both !important
cursor: pointer !important

Expand Down

0 comments on commit afa4bfe

Please sign in to comment.