Skip to content

Commit 1e869c3

Browse files
committed
Add failing test for calc result
1 parent d8048a9 commit 1e869c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/CSSStyleDeclaration.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,5 +552,8 @@ describe('CSSStyleDeclaration', () => {
552552
const style = new CSSStyleDeclaration();
553553
style.setProperty('width', 'calc(100% - 100px)');
554554
expect(style.getPropertyValue('width')).toEqual('calc(100% - 100px)');
555+
556+
style.setProperty('width', 'calc(100px * 2)');
557+
expect(style.getPropertyValue('width')).toEqual('calc(200px)');
555558
});
556559
});

0 commit comments

Comments
 (0)