Bug 139480

Summary: Caret navigation does not work well with MathML
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: alex, jdiggs, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 153991    
Bug Blocks:    
Attachments:
Description Flags
Testcase none

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.