Skip to content

Commit 193b1ee

Browse files
authored
Merge pull request #242 from Atry/patch-4
Support assigning a String to a style property
2 parents 114c55e + cf01597 commit 193b1ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/scala/org/scalajs/dom/raw/Html.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3968,7 +3968,9 @@ abstract class HTMLElement extends Element {
39683968
*
39693969
* MDN
39703970
*/
3971-
var style: CSSStyleDeclaration = js.native
3971+
def style: CSSStyleDeclaration = js.native
3972+
def style_=(value: CSSStyleDeclaration): Unit = js.native
3973+
def style_=(value: String): Unit = js.native
39723974

39733975
/**
39743976
* Returns the Document that this node belongs to. If no document is associated with

0 commit comments

Comments
 (0)