"Fomafix" posted a comment on MediaWiki.r107669.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107669#c29577
Commit summary for MediaWiki.r107669:
* more specific selectors for wikitable - don't inherit properties to nested
tables which causes various rendering issues
** (bug 30485) Hieroglyphs look scary if embedded in tables with
class="wikitable"
** (bug 33434) math extension: integral expressions display with
boxes/frames/borders
Fomafix's comment:
The question is pure CSS, CSS with <code>expression</code> oder JavaScript.
jQuery is just JavaScript. <code>expression</code> is a Microsoft specific
extension witch also requires activated JavaScript. This requirement is not
mentioned in the blog. With pure CSS you need for every depth of nested tables
a special rule with descendant selectors. This increases the specificity for
the rules and generates problems with other CSS definitions. The jQuery script
above overrides the inline CSS definitions:
{| class="wikitable"
| normal table cell
|-
| style="padding:1em" | table cell with style="padding:1em"
|}
This is also not mentioned in the blog. With JavaScript it should be possible
to care about not overwriting inline CSS. Maybe it is possible to use
<code>expression</code> without knowing the fallback style.
I think there is no easy workaround for IE6.
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview