Closed
Bug 569124
Opened 14 years ago
Closed 13 years ago
The top-Level math element should support the attributes of <mstyle>
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
FIXED
mozilla7
People
(Reporter: fredw, Assigned: fredw)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
4.27 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
MathML3 says: "The math element accepts any of the attributes that can be set on Section 3.3.4 Style Change <mstyle>" http://www.w3.org/TR/MathML3/chapter2.html#interf.toplevel.atts I think there are two modifications to make: * For attributes mapped to style: Make nsGkAtoms::math use mstyleMap instead of commonPresMap http://mxr.mozilla.org/mozilla-central/source/content/mathml/content/src/nsMathMLElement.cpp#168 * For attributes taken from nsMathMLFrame::GetAttribute, make it possible to access the attributes of <math/> http://mxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLFrame.cpp#242 It seems that we only need to allow the mPresentationData.mstyle's to point to the parent <math/>, instead of being null. I've tried to add mPresentationData.flags = frame; here http://mxr.mozilla.org/mozilla-central/source/layout/mathml/nsMathMLFrame.cpp#229 but it does not seem to work, I need to study it more...
Assignee | ||
Comment 1•14 years ago
|
||
Assignee: nobody → fred.wang
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•13 years ago
|
Attachment #500675 -
Flags: review?(karlt)
Updated•13 years ago
|
Attachment #500675 -
Flags: review?(karlt) → review+
Comment 2•13 years ago
|
||
Try server is seeing a difference in the vertical position of the a/b mfrac in the reftest. http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1301287648.1301289198.4395.gz#err0 Maybe try adding an mrow (or, if necessary, an empty mstyle) around the mfrac in math-as-mstyle-1.xhtml.
Comment 3•13 years ago
|
||
layout/tools/reftest/reftest-analyzer.xhtml is useful but don't include the "NEXT ERROR" in the pasted selection.
Assignee | ||
Comment 4•13 years ago
|
||
Assignee | ||
Comment 5•13 years ago
|
||
> Maybe try adding an mrow (or, if necessary, an empty mstyle) around the mfrac > in math-as-mstyle-1.xhtml. Adding an empty mstyle does not seem to help: http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1301900330.1301901837.27363.gz#err0 I'll try with an mrow next time, but I doubt it is going to work.
Assignee | ||
Comment 6•13 years ago
|
||
> I'll try with an mrow next time, but I doubt it is going to work. Same issue with the mrow: http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1301997879.1301999385.32014.gz#err0
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to comment #2) > Try server is seeing a difference in the vertical position of the a/b mfrac in > the reftest. > http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1301287648.1301289198.4395.gz#err0 > > Maybe try adding an mrow (or, if necessary, an empty mstyle) around the mfrac > in math-as-mstyle-1.xhtml. Any idea on why this difference happens? Maybe using another scriptlevel for the math element changes its computed padding/margin.
Comment 8•13 years ago
|
||
I wonder whether scriptlevel might be affecting the font size (I don't remember clearly what is does), which would affect the vertical layout. Is there a different attribute that can be used in the test?
Assignee | ||
Comment 9•13 years ago
|
||
The other candidates were scriptminsize or scriptsizemultiplier, which are also probably involved in font size computation. mathcolor/mathbackground are now usable for all elements, so testing them won't be relevant. We can maybe modify the test to set some CSS properties of the math element in order to prevent the vertical shift.
Comment 10•13 years ago
|
||
scriptsizemultiplier would only affect changes in scriptlevel so shouldn't affect the toplevel element.
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to comment #10) > scriptsizemultiplier would only affect changes in scriptlevel so shouldn't > affect the toplevel element. OK, I'll try this.
Assignee | ||
Comment 12•13 years ago
|
||
(In reply to comment #11) > (In reply to comment #10) > > scriptsizemultiplier would only affect changes in scriptlevel so shouldn't > > affect the toplevel element. > > OK, I'll try this. Done. The TryServer did not detect any reftest failure this time. Thanks.
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #500675 -
Attachment is obsolete: true
Attachment #522592 -
Attachment is obsolete: true
Attachment #524802 -
Flags: review?(karlt)
Updated•13 years ago
|
Attachment #524802 -
Flags: review?(karlt) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 14•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/52e0b9902f48
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.2
Assignee | ||
Updated•13 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•13 years ago
|
Keywords: dev-doc-complete
Comment 15•13 years ago
|
||
Backed out of aurora for 5 due to bug 655451: http://hg.mozilla.org/releases/mozilla-aurora/rev/f18cccf550ba
Target Milestone: mozilla5 → mozilla6
Comment 16•13 years ago
|
||
Looks like the patch in bug 655451 won't be reviewed in time for 6.
Target Milestone: mozilla6 → Future
Comment 17•13 years ago
|
||
dev-doc-needed again. Documentation was not complete, https://developer.mozilla.org/en/MathML/Element/mstyle needs update. https://developer.mozilla.org/en/Firefox_6_for_developers needs reverting if comment 16 is tue.
Keywords: dev-doc-complete → dev-doc-needed
Comment 18•13 years ago
|
||
(In reply to comment #15) > Backed out of aurora for 5 due to bug 655451: > http://hg.mozilla.org/releases/mozilla-aurora/rev/f18cccf550ba Also backed out of aurora for 6 http://hg.mozilla.org/releases/mozilla-aurora/rev/26d6981b3d6a (marking t-m back down to mozilla7, since we still have the patch in Nightly)
Target Milestone: Future → mozilla7
Comment 19•13 years ago
|
||
(In reply to comment #17) > https://developer.mozilla.org/en/Firefox_6_for_developers > needs reverting if comment 16 is true. done
Comment 20•13 years ago
|
||
(In reply to comment #17) > dev-doc-needed again. > Documentation was not complete, > https://developer.mozilla.org/en/MathML/Element/mstyle > needs update. > > https://developer.mozilla.org/en/Firefox_6_for_developers > needs reverting if comment 16 is tue. Those are different things introduced in different versions of Gecko. Documentation for mstyle will be addressed in bug 569125. Docs are complete here: https://developer.mozilla.org/en/Firefox_7_for_developers#MathML https://developer.mozilla.org/en/MathML/Element/math
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•