[Webkit-unassigned] [Bug 160075] New: Support for multiple alignment values for tabular columnalign and rowalign attributes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 21 23:52:44 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=160075
Bug ID: 160075
Summary: Support for multiple alignment values for tabular
columnalign and rowalign attributes
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
URL: https://www.w3.org/TR/MathML/chapter3.html#presm.tabma
t
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: MathML
Assignee: webkit-unassigned at lists.webkit.org
Reporter: fred.wang at free.fr
CC: alex at igalia.com, distler at golem.ph.utexas.edu,
rego at igalia.com
Created attachment 284310
--> https://bugs.webkit.org/attachment.cgi?id=284310&action=review
Testcase columnalign
Our columnalign and rowalign support currently relies on the following CSS rules:
/* Use inline-block for children so that the text-align property is taken into account */
mtd > * {
display: inline-block;
}
mtable[columnalign="left"], mtr[columnalign="left"], mtd[columnalign="left"] {
text-align: left;
}
mtable[columnalign="right"], mtr[columnalign="right"], mtd[columnalign="right"] {
text-align: right;
}
mtable[rowalign="top"] mtd, mtable mtr[rowalign="top"] mtd, mtable mtr mtd[rowalign="top"] {
vertical-align: top;
}
mtable[rowalign="bottom"] mtd, mtable mtr[rowalign="bottom"] mtd, mtable mtr mtd[rowalign="bottom"] {
vertical-align: bottom;
}
mtable[rowalign="center"] mtd, mtable mtr[rowalign="center"] mtd, mtable mtr mtd[rowalign="center"] {
vertical-align: middle;
}
These only handle the basic cases. MathML tables are closer to LaTeX than to HTML and allows multiple alignment rules to be specified in a single attribute.
I'm attaching a testcase from Mozilla's testsuite demonstrating the issue. More can be found at https://dxr.mozilla.org/mozilla-central/source/layout/reftests/mathml/
I think the case of columnalign is particularly important for aligned equations. I noticed it on Wikipedia and Jacques Distler reported the issue too for itex2MML/Instiki.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160722/1340144c/attachment.html>
More information about the webkit-unassigned
mailing list