Skip to content

Commit a9c31ff

Browse files
authored
Fix style setProperty (#13)
1 parent 1887112 commit a9c31ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/entries/dom-api.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
import {document as lightJsDocument} from '@litejs/dom';
2+
import {CSSStyleDeclaration} from '@litejs/dom/css';
3+
4+
CSSStyleDeclaration.prototype.setProperty = function(key, value) {
5+
this[key] = value;
6+
};
27

38
export const document = lightJsDocument;

0 commit comments

Comments
 (0)