aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngAnimate/animateSpec.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-11-15 00:09:37 -0500
committerMatias Niemelä2013-11-20 20:54:07 -0500
commit1d50663b38ba042e8d748ffa6d48cfb5e93cfd7e (patch)
treecd4fd86dd238bc78f765319ecc41d7798bcd2f0a /test/ngAnimate/animateSpec.js
parentec3c4f94c79e23c29abcde6e1d2f6eaf05e0664c (diff)
downloadangular.js-1d50663b38ba042e8d748ffa6d48cfb5e93cfd7e.tar.bz2
fix(ngAnimate): use a fallback CSS property that doesn't break existing styles
The clip property seems to remove the box-shadow property when an absolute positioned animation is ongoing. This fix changes the property to be border-spacing which is also very underused. The border-spacing CSS property is only visible when border-collapse is set to separate. Closes #4902 Closes #5030
Diffstat (limited to 'test/ngAnimate/animateSpec.js')
-rw-r--r--test/ngAnimate/animateSpec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js
index 46bb9538..48ea0041 100644
--- a/test/ngAnimate/animateSpec.js
+++ b/test/ngAnimate/animateSpec.js
@@ -823,7 +823,7 @@ describe("ngAnimate", function() {
$timeout.flush();
//IE removes the -ms- prefix when placed on the style
- var fallbackProperty = $sniffer.msie ? 'zoom' : 'clip';
+ var fallbackProperty = $sniffer.msie ? 'zoom' : 'border-spacing';
var regExp = new RegExp("transition-property:\\s+color\\s*,\\s*" + fallbackProperty + "\\s*;");
expect(child2.attr('style') || '').toMatch(regExp);
expect(child2.hasClass('ng-animate')).toBe(true);