Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentRect has incorrect width/height for non SVG Elements #15

Open
TremayneChrist opened this issue Dec 10, 2018 · 0 comments
Open

ContentRect has incorrect width/height for non SVG Elements #15

TremayneChrist opened this issue Dec 10, 2018 · 0 comments

Comments

@TremayneChrist
Copy link

TremayneChrist commented Dec 10, 2018

Based on the spec, the contentRect is the size of the content area. This should minus the padding and border dimensions from the width/height properties, when box-sizing:border-box is applied.

image
You can confirm this by using the native ResizeObserver in Chrome.

@TremayneChrist TremayneChrist changed the title ContentRect has incorrect width/height ContentRect has incorrect width/height for non SVG Elements Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant