-
-
Notifications
You must be signed in to change notification settings - Fork 460
Closed
Labels
Description
Describe your question
When I create a rect with specific dimensions, I'm finding that when calling getBoundingClientRect() there is an additional 1px added. Is this expected behaviour, and if so, why does it happen?
If this feels like a bug, I can update the ticket, or raise a new one.
Your code (either pasted here, or a link to a hosted example)
https://codepen.io/johnpaulharold/pen/Rwzwrmw
Environment (please select one):
- Code executes in browser (e.g: using script tag to load library)
- Packaged software (e.g: ES6 imports, react, angular, vue.js)
- Running headless (usually Node.js)
If applicable:
Desktop (please complete the following information):
- OS: OSX (I can test others if needs be)
- Browser: Chrome/Safari
- Version: latest stable on both