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

offsetParent, offsetLeft & offsetTop should be on Element or Node instead of HTMLElement #10445

Closed
jogibear9988 opened this issue Jun 30, 2024 · 1 comment

Comments

@jogibear9988
Copy link

What is the issue with the HTML Standard?

I'm creating a Designer Application, and for this I need to calculate the complete transformation of an element (and all it's parents). For HTMLElements I can get the x&y coordinates wich is cause by the positioning logic via offsetLeft & top property. But this is not possible for other types (like SVGElement or MathMLElement).

But these elments are positioned inside of a container too, so they also have these coordinates.

So these properties should be on Element, or maybe they should be on Node, cause also a TextNode could be positioned inside of a Container.

@jogibear9988 jogibear9988 changed the title offsetParent, offsetLeft & offsetTop should be on Element instead of HTMLElement Jun 30, 2024
@domenic
Copy link
Member

domenic commented Jul 1, 2024

The HTML Standard does not define these properties; please open an issue on https://github.com/w3c/csswg-drafts/ instead.

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