Bug 139480 - Caret navigation does not work well with MathML
Summary: Caret navigation does not work well with MathML
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 153991
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-10 07:21 PST by Frédéric Wang (:fredw)
Modified: 2016-06-27 23:53 PDT (History)
3 users (show)

See Also:


Attachments
Testcase (350 bytes, text/html)
2014-12-10 07:21 PST, Frédéric Wang (:fredw)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Wang (:fredw) 2014-12-10 07:21:12 PST
Created attachment 243015 [details]
Testcase

In the attached testcase:

- enable caret navigation
- place the caret on the first "1" (MathML section)
- press the down arrow key

Expected result: the caret should move to the "3" on the next line
Actual result: the caret moves to the "2" on the same line.

This is probably because each MathML token element contains an anonymous block flexbox, so the caret navigation code treats them as if they were on different line of text. You can compare with what happens for HTML.

(another problem is that the size of the caret in MathML may be very large compared to the actual text, because of all the anonymous flexboxes used for layout)
Comment 1 Frédéric Wang (:fredw) 2016-06-27 23:53:46 PDT
Hopefully this will be fixed after bug 153991.