Skip to content

Commit

Permalink
Merge pull request #13 from mgreter/master
Browse files Browse the repository at this point in the history
Adds IE test for css expressions
  • Loading branch information
Aaron Leung committed May 16, 2014
2 parents ee17604 + 3b33cc0 commit 0ed3e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/libsass/ie-functions/expected_output.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ foo {
filter: alpha(opacity=0.5);
bilter: alpha(opacity=0.5);
kilter: string;
left: expression(document.body.clientWidth/2-oDiv.offsetWidth/2);
flop: expression(document.body.clientHeight/2-oDiv.offsetHeight/2);
left: expression(document.body.clientWidth/4);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFF0000', endColorstr='#FF008000', GradientType=1); }
3 changes: 3 additions & 0 deletions spec/libsass/ie-functions/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
filter: alpha(opacity=$opacity);
bilter: alpha(opacity=$opacity);
kilter: type-of(opacity=$opacity);
left: expression(document.body.clientWidth/2-oDiv.offsetWidth/2);
flop: expression(document.body.clientHeight/2-oDiv.offsetHeight/2);
}

$startColor: red;
Expand All @@ -15,5 +17,6 @@ foo {
blah: progid:bar.hux();
blah: type-of(hux = mumble);
@include ie-opacity(.5);
left: expression(document.body.clientWidth/4);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=1);
}

0 comments on commit 0ed3e99

Please sign in to comment.