From 77604b8b1832851eb2a736c9a4180b9150895837 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Thu, 15 Oct 2015 12:15:42 -0700 Subject: [PATCH] chore: add test showing CSS calc() failure --- modules/angular2/test/core/compiler/shadow_css_spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/angular2/test/core/compiler/shadow_css_spec.ts b/modules/angular2/test/core/compiler/shadow_css_spec.ts index 4400617ceb..48588eb937 100644 --- a/modules/angular2/test/core/compiler/shadow_css_spec.ts +++ b/modules/angular2/test/core/compiler/shadow_css_spec.ts @@ -164,5 +164,11 @@ export function main() { expect(css).toEqual(styleStr); }); } + + it('should leave calc() unchanged', () => { + var styleStr = 'a {height:calc(100% - 55px);}'; + var css = s(styleStr, 'a'); + expect(css).toEqual(styleStr); + }); }); }