Skip to content

Commit 0eddbf7

Browse files
authored
Update @asamuzakjp/css-color
Fixes #191.
1 parent 02d36a2 commit 0eddbf7

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
],
3838
"main": "./lib/CSSStyleDeclaration.js",
3939
"dependencies": {
40-
"@asamuzakjp/css-color": "^3.1.2",
40+
"@asamuzakjp/css-color": "^3.1.3",
4141
"rrweb-cssom": "^0.8.0"
4242
},
4343
"devDependencies": {

test/parsers.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ describe('parseMeasurement', () => {
173173
assert.strictEqual(output, 'calc(20% + 10px)');
174174
});
175175

176+
it('should return serialized value', () => {
177+
let input = 'calc(10px + 100vh)';
178+
let output = parsers.parseMeasurement(input);
179+
180+
assert.strictEqual(output, 'calc(10px + 100vh)');
181+
});
182+
176183
it.todo('test');
177184
});
178185
describe('parseUrl', () => {

0 commit comments

Comments
 (0)