Bug 106866

Summary: Unable to render square root symbol
Product: WebKit Reporter: Irfan Omair <irfan.omair>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Major CC: fred.wang
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 119038    
Bug Blocks:    
Attachments:
Description Flags
html file which should be showing square root symbol
none
expected result screen shot
none
Screenshot Nightly WebKitGTK+ none

Description Irfan Omair 2013-01-14 20:50:12 PST
Created attachment 182690 [details]
html file which should be showing square root symbol

attached htm file should render square root symbol but it does not do in any version of webkit based browser like QtBrowser demo, safari and in google chrome. This works fine with Firefox.
Comment 1 Irfan Omair 2013-01-14 20:52:40 PST
Created attachment 182691 [details]
expected result screen shot
Comment 2 Frédéric Wang (:fredw) 2013-01-15 23:36:21 PST
I see the square root symbol with the latest version of Chrome Linux.

Which browser/version/os are you using? Do you have the STIX fonts installed?
Comment 3 Irfan Omair 2013-01-16 08:55:32 PST
I dont see this with latest chrome on windows, or mac.
I dont even see this on safari. Why I must have STIX font for this, where as I can see other symbols without this.
Comment 4 Frédéric Wang (:fredw) 2013-01-16 10:37:51 PST
I'm not a Webkit developer, but the square root is special it is rendered with a stretchy MathML symbol and I think Webkit needs the STIX fonts for that. Is the square root symbol the only problem or are the MathML formulas not formatted in general:

https://developer.mozilla.org/en-US/docs/Mozilla_MathML_Project/MathML_Torture_Test

perhaps you should attach a screenshot of what you are actually seeing and give the version number of your browser.
Comment 5 Frédéric Wang (:fredw) 2013-07-24 00:41:17 PDT
MathML is currently disabled on Chrome (and it no longer uses WebKit) and Qt (bug 110205).

I verified the code and the square root is actually drawn with basic lines not glyphs, so that may be a graphic library issue. Probably, WebKit should use glyphs to draw the square root and that could fix the bug (but this will no longer work when fonts are not installed)
Comment 6 Frédéric Wang (:fredw) 2014-06-21 03:01:05 PDT
Created attachment 233523 [details]
Screenshot Nightly WebKitGTK+

Here is how it renders in WebKitGTK+.
Comment 7 Frédéric Wang (:fredw) 2014-06-21 03:02:49 PDT
Chrome and Qt no longer uses WebKit. It works for me with WebKitGTK+ and <msqrt> should be supported in any WebKit-based browser.