worker-dom
worker-dom copied to clipboard
Can't set value "0" for CSS style
Example of code that doesn't work:
element.style.top = 0
Below is checking value for truthy, which causes it to ignore 0: https://github.com/ampproject/worker-dom/blob/master/src/worker-thread/css/CSSStyleDeclaration.ts#L108