Closed Bug 698323 Opened 13 years ago Closed 13 years ago

MathML menclose is missing offset* properties

Categories

(Core :: MathML, defect)

7 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: ghazel, Unassigned)

Details

Attachments

(1 file)

Attached file foo.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
Build ID: 20110928134238

Steps to reproduce:

Tried to get the width and height of a menclose element. (demo attached)


Actual results:

Found unexpected undefined elements.


Expected results:

Should have found offset elements like other DOM elements.
The offset* properties are on the HTMLElement interface.

MathML elements don't implement that interface, of course.

Similarly, offset* is not present on SVG elements, or any other non-HTML element in the DOM.

Which is fine, since the offset* properties return incorrect dimensions anyway.  If you want to get the width and height of something, use getBoundingClientRect, which _is_ on all elements.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
getBoundingClientRect seems to be affected by scroll position. Are the offset orop
Summary: MathML menclose has no offsetWidth or offsetParent → MathML menclose is missing attributes
Nevermind, I figured out the scroll position thing.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → INVALID
> getBoundingClientRect seems to be affected by scroll position.

The width and height (what you said you're looking for) are certainly not.

If you can explain what you're trying to do and why getBoundingClientRect doesn't work for you, I'll forward that along to the CSSOM View working group defining the specs for this.
Summary: MathML menclose is missing attributes → MathML menclose is missing offset* properties
The goal is very simple: find the exact placement and size of the menclose, and overlay a DOM element exactly on top of it.

Between scroll adjusted top and left from getBoundingClientRect and the width and height you mentioned, I was able to do it.
But man it would have been a lot easier if I could have replaced the menclose with an input field in the DOM.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: