Skip to content

Commit

Permalink
fix(mock-doc): allow urls as css values
Browse files Browse the repository at this point in the history
  • Loading branch information
scaredcat committed Mar 18, 2021
1 parent eec7651 commit bb42f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock-doc/css-style-declaration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class MockCSSStyleDeclaration {
const splt = rule.split(':');
if (splt.length > 1) {
const prop = splt[0].trim();
const value = splt[1].trim();
const value = splt.slice(1).join(':').trim();
if (prop !== '' && value !== '') {
this._styles.set(jsCaseToCssCase(prop), value);
}
Expand Down

0 comments on commit bb42f57

Please sign in to comment.