worker-dom icon indicating copy to clipboard operation
worker-dom copied to clipboard

Can't set value "0" for CSS style

Open pbadenski opened this issue 5 years ago • 0 comments

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

pbadenski avatar Nov 01 '18 11:11 pbadenski