Bug 689641 - (mlabeledtr-support) Add support for mlabeledtr
 (mlabeledtr-support) Summary: Add support for mlabeledtr
 Status: NEW [lang=c++] dev-doc-needed, helpwanted Core Components MathML (show other bugs) Trunk All All P4 normal with 4 votes (vote) --- Nobody; OK to take it and work on it Anthony Jones (:kentuckyfriedtakahe, :k17e) Frédéric Wang (:fredw) mathml-2 557086 mathml-in-mathjax 958947 Show dependency tree / graph

Reported: 2011-09-27 10:17 PDT by Frédéric Wang (:fredw)
Modified: 2014-06-17 08:09 PDT (History)
11 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Attachments
testcase (3.97 KB, text/html)
2011-09-27 10:17 PDT, Frédéric Wang (:fredw)
no flags Details

 Frédéric Wang (:fredw) 2011-09-27 10:17:39 PDT Created attachment 562803 [details] testcase Frédéric Wang (:fredw) 2012-02-29 14:21:48 PST Tests from the MathML testsuite: http://www.w3.org/Math/testsuite/build/main/Presentation/TablesAndMatrices/mlabeledtr/mlabeledtr1-full.xhtml http://www.w3.org/Math/testsuite/build/main/Presentation/TablesAndMatrices/mlabeledtr/mlabeledtrAside1-full.xhtml http://www.w3.org/Math/testsuite/build/main/Presentation/TablesAndMatrices/mlabeledtr/mlabeledtrAside2-full.xhtml http://www.w3.org/Math/testsuite/build/main/Presentation/TablesAndMatrices/mlabeledtr/rec-mlabeledtr-full.xhtml Frédéric Wang (:fredw) 2012-09-01 03:15:03 PDT Because of the vertical alignment requirement, it seems that the most easy way to implement this is to follow the REC's suggested model: "To place a label, an implementor might think in terms of creating a larger table, with an extra column on both ends. The columnwidth attributes of both these border columns would be set to "fit" so that they expand to fill whatever space remains after the inner columns have been laid out. Finally, depending on the values of side and minlabelspacing, the label is placed in whatever border column is appropriate, possibly shifted down if necessary, and aligned according to columnalignment." So maybe we should do something in nsCSSFrameConstructor to add extra column on both ends of an or element (with the label placed in the appropriate extra cell in the latter case). We will need to change the implementation of rowlines, columnlines etc to take into account that we have these extra columns. That would give a slightly incorrect implementation of mtable@width, though. Frédéric Wang (:fredw) 2012-11-17 09:47:22 PST An add-on to workaround this bug: https://addons.mozilla.org/addon/mathml-mml3ff/ Frédéric Wang (:fredw) 2012-11-22 08:43:38 PST Someone from the Webkit MathML team contacted me about this bug today. Adding me as mentor, although I don't know well the code in nsCSSFrameConstructor to change. I think even something like Frédéric Wang (:fredw) 2012-11-22 08:45:01 PST I think even something like what David Carlisle's XSLT stylesheet do would be OK (adding a column to 's that have a child). Frédéric Wang (:fredw) 2012-11-30 08:32:52 PST Mass change: setting priority to 2 for bugs that would be nice fix if Gecko's MathML support is enabled by default in MathJax but that are not in my opinion strictly required or for which a workaround could be written in the MathJax code.

 Note You need to log in before you can comment on or make changes to this bug.