ampproject / ampproject/worker-dom
Can't set value "0" for CSS style
Open
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.