Bug 126516

Summary: SVG transforms do not apply to <mroot> elements
Product: WebKit Reporter: Frédéric Wang (:fredw) <fred.wang>
Component: MathMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cfleizach, darin, krit, mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://www.maths-informatique-jeux.com/international/mathml-in-webgl/index.html
Bug Depends on: 93358, 119038    
Bug Blocks:    
Attachments:
Description Flags
testcase none

Description Frédéric Wang (:fredw) 2014-01-06 02:47:57 PST
Created attachment 220427 [details]
testcase

Here is an attachment taken from my latest blog post. The \root{3}{V_cube} is not positioned correctly.

For some reason, mathml.css has the following rule (not sure if it is really necessary...):

mroot {
    position: relative;
}

so I suspect this is just an instance of bug 93358.
Comment 1 Dirk Schulze 2014-01-26 04:58:00 PST
I am not sure if I understand that correctly. mroot is not an SVG element. Therefore, SVG transforms can not be applied. Do you mean CSS transforms? And if you do, does that happen with embedding in HTML as well?

An even simpler test case might be helpful.
Comment 2 Frédéric Wang (:fredw) 2014-01-26 05:03:36 PST
(In reply to comment #1)
> I am not sure if I understand that correctly. mroot is not an SVG element. Therefore, SVG transforms can not be applied. Do you mean CSS transforms? And if you do, does that happen with embedding in HTML as well?
> 
> An even simpler test case might be helpful.

MathML can be embedded in SVG via a foreignObject and so any SVG transform on the foreignObject applies to the MathML too. As I said in comment 0, I believe it is just bug 93358. You can find simpler testcases on that bug.
Comment 3 Frédéric Wang (:fredw) 2014-06-17 23:54:42 PDT
The "position: relative;" rule has been removed in bug 119038, so MathML is no longer affected by SVG's bug 93358.