purescript-web/purescript-web-html

How to set style attribute?

Closed this issue · 2 comments

Looking for the equivalent of:

el.style.clipPath = "circle(100px at 10px 20px)";

I expected this to be on HTMLElement but I don't see a setStyle or anything similar. Am I just missing it somewhere? Is it in another package?

Thanks.

garyb commented

It should be part of https://github.com/purescript-web/purescript-web-cssom as it's defined by the ElementCSSInlineStyle interface specified in the CSSOM spec, but it doesn't appear to be present there either - that library needs some love I think.

Thanks! I've implemented over there: purescript-web/purescript-web-cssom#2