Bug 43818 - Lots of overlapping highlights painted when selecting MathML
Summary: Lots of overlapping highlights painted when selecting 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: HasReduction
Depends on:
Blocks:
 
Reported: 2010-08-10 17:18 PDT by David Kilzer (:ddkilzer)
Modified: 2024-03-11 15:20 PDT (History)
5 users (show)

See Also:


Attachments
Test case (6.80 KB, application/xhtml+xml)
2010-08-10 17:18 PDT, David Kilzer (:ddkilzer)
no flags Details
testcase ::selection (3.16 KB, text/html)
2013-08-06 02:25 PDT, 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 David Kilzer (:ddkilzer) 2010-08-10 17:18:07 PDT
Created attachment 64056 [details]
Test case

* SUMMARY
When selecting MathML, the selection highlights overlap quite a bit such that the formulae aren't readable after selecting them.

* STEPS TO REPRODUCE
1. Open the test case in a WebKit nightly build.
2. Hit Cmd-A to select all text on the page.

* RESULTS
Selection highlights overlap on many of the formulae so that it's impossible to read them while highlighted.

* REGRESSION
N/A
Comment 1 Frédéric Wang (:fredw) 2013-05-04 22:48:45 PDT
I suspect this is a consequence of the implementation design to base the rendering on the existing HTML renderer. See http://ojanvafai.com/post/mathml-in-webkit for an alternative.
Comment 2 Frédéric Wang (:fredw) 2013-08-06 02:25:56 PDT
Created attachment 208177 [details]
testcase ::selection

(In reply to comment #1)
> I suspect this is a consequence of the implementation design to base the rendering on the existing HTML renderer. See http://ojanvafai.com/post/mathml-in-webkit for an alternative.

An idea to fix (or improve) that with the current model: try to set ::selection { background: transparent; } on anonymous renderers. As an example, I attach a testcase that removes the selection background on MathML elements (not sure the rule reaches the anonymous renderers, so that should be done at the C++ level).