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

[css-omview] update description of getBoxQuads API #10537

Open
jogibear9988 opened this issue Jul 8, 2024 · 2 comments
Open

[css-omview] update description of getBoxQuads API #10537

jogibear9988 opened this issue Jul 8, 2024 · 2 comments

Comments

@jogibear9988
Copy link

The getBoxQuads API is missing lot of its description.

Issue in Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1107559

Description
https://hacks.mozilla.org/2014/03/introducing-the-getboxquads-api/

@jogibear9988
Copy link
Author

I've also created a polyfill for this API https://github.com/jogibear9988/getBoxQuadsPolyfill

But in the polyfill I also added an offset DOMQuad to the getBoxQuads API. I'd like to suggest to add this also. This is usefull in a designer application, if you want to draw something around an element with an offset. For example a selected rectangle, wich should be offset a few pixels

@jogibear9988
Copy link
Author

And the polyfill does not work correctly for SVG and MathML cause of missing offsetLeft/Top, see: #10514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant