https://bugzilla.wikimedia.org/show_bug.cgi?id=66679

--- Comment #3 from Ryan Kaldari <[email protected]> ---
This is not an easy problem to solve as the math markup generates an image
(which is an inline element) and the image can be contained in any sort of HTML
block element. In other words, the math markup doesn't generate any block
element of its own. For example, in the cited case, the math image is contained
in a <dl> tag. If the <dl> tag were given the CSS "overflow-x: auto;" that
would fix the problem. Unfortunately, CSS does not currently support parent
selectors, so the only way to apply "overflow-x: auto;" to all <dl>s containing
math images would be with jQuery, and even then it would only solve the issue
for cases where the math is in a <dl>. It is also common for math images to
live in div and paragraph tags. Once we can use CSS parent selectors (CSS4), we
might be able to fix this, but I don't see any good solution in the meantime.

One possible, though problematic solution would be to set the max-width for all
math images to 100%. This would cause the math images to always scale down to
fit on the screen. For extremely long equations, though, this would cause them
to be rendered extremely small.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to