From 3b33cc02905a8c49c9adf248a26750ec033d9276 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Wed, 16 Apr 2014 00:33:21 +0200 Subject: [PATCH] Adds IE test for css expressions --- spec/libsass/ie-functions/expected_output.css | 3 +++ spec/libsass/ie-functions/input.scss | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spec/libsass/ie-functions/expected_output.css b/spec/libsass/ie-functions/expected_output.css index e7772d1eda..a404f9d27e 100644 --- a/spec/libsass/ie-functions/expected_output.css +++ b/spec/libsass/ie-functions/expected_output.css @@ -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); } diff --git a/spec/libsass/ie-functions/input.scss b/spec/libsass/ie-functions/input.scss index 2cde9c48ae..a97059c9d2 100644 --- a/spec/libsass/ie-functions/input.scss +++ b/spec/libsass/ie-functions/input.scss @@ -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; @@ -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); } \ No newline at end of file