You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
jogibear9988
changed the title
offsetParent, offsetLeft & offsetTop should be on Element instead of HTMLElementJun 30, 2024
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.
The text was updated successfully, but these errors were encountered: