ampproject / ampproject/worker-dom
[FEATURE REQUEST] Implement Element.client(Width/Height)
Open
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth
We may be able to get away with returning the rounded off answer to `Element.getBoundingClientRect()` as seen in the MDN link above.
Contributor guide
Research direction
Start with the MDN reference for Element.clientWidth and Element.clientHeight, then inspect how Element.getBoundingClientRect() is represented in worker-dom. Confirm the expected rounded values and verify that both properties behave consistently with the referenced API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100