[Webkit-unassigned] [Bug 120164] New: Implement negative width for mspace
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 22 11:05:16 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=120164
Summary: Implement negative width for mspace
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: MathML
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: fred.wang at free.fr
CC: zalan at apple.com, cfleizach at apple.com,
gur.trio at gmail.com
Created an attachment (id=209380)
--> (https://bugs.webkit.org/attachment.cgi?id=209380&action=review)
Experimental Patch
Just opening this bug for the record and attaching an old experimental patch if someone wants to work on this. IIRC, one problem with that patch is that it caused an assert to be raised in the flexbox code. I also tried a simpler version that just removed
if (m_width < 0) {
m_width = 0;
}
and I think this gave similar results. Both methods provided the expected rendering for the added reftests. One case that is not included in the tests is negative space in table cells:
...
<mtd>
<mspace width="2em" height="1em" mathbackground="red"></mspace>
<mspace width="-1em"/>
<mspace width="1em" height="1em" mathbackground="blue"></mspace>
</mtd>
...
that can't work because <mtd> has not a flexbox display but a table-cell display. I think the solution will be to add an anonymous flexbox as a child of the mtd element.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list