Bug 106866 - Unable to render square root symbol
Summary: Unable to render square root symbol
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Major
Assignee: Nobody
Depends on: 119038
  Show dependency treegraph
Reported: 2013-01-14 20:50 PST by Irfan Omair
Modified: 2014-06-21 03:02 PDT (History)
1 user (show)

See Also:

html file which should be showing square root symbol (4.71 KB, text/html)
2013-01-14 20:50 PST, Irfan Omair
no flags Details
expected result screen shot (49.37 KB, image/png)
2013-01-14 20:52 PST, Irfan Omair
no flags Details
Screenshot Nightly WebKitGTK+ (46.83 KB, image/png)
2014-06-21 03:01 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 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:


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.