Bug 126516 - SVG transforms do not apply to <mroot> elements
Summary: SVG transforms do not apply to <mroot> elements
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: MathML (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://www.maths-informatique-jeux.co...
Keywords:
Depends on: 93358 119038
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-06 02:47 PST by Frédéric Wang (:fredw)
Modified: 2014-06-17 23:54 PDT (History)
5 users (show)

See Also:


Attachments
testcase (1.23 KB, image/svg+xml)
2014-01-06 02:47 PST, 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 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.