Skip to content

Commit 534eb84

Browse files
committed
Add failing test for calc result
1 parent 1a60494 commit 534eb84

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
@@ -523,5 +523,8 @@ describe('CSSStyleDeclaration', () => {
523523
const style = new CSSStyleDeclaration();
524524
style.setProperty('width', 'calc(100% - 100px)');
525525
expect(style.getPropertyValue('width')).toEqual('calc(100% - 100px)');
526+
527+
style.setProperty('width', 'calc(100px * 2)');
528+
expect(style.getPropertyValue('width')).toEqual('calc(200px)');
526529
});
527530
});

0 commit comments

Comments
 (0)