"Edokter" posted a comment on MediaWiki.r107669.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107669#c29622
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
Edokter's comment:
I just found this *after* I filed bug 33752 to revert this change. Now I know
the reasoning, perhaps there is another solution. As long as no one has the
cojones to take IE6 off the list of supported browsers, this is a major
breaking change.
However, instead of using '>' selectors, there is another way. The following
mill reset any styling of nested wikitables. In effect, it will have the same
result as the code currently in trunk, without breaking IE6:
<pre>
table.wikitable th,
table.wikitable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable table.wikitable th,
table.wikitable table.wikitable td {
border: none;
padding: 1px;
}
table.wikitable th {
background-color: #f2f2f2;
text-align: center;
}
table.wikitable table.wikitable th {
background-color: transparent;
}
table.wikitable caption {
font-weight: bold;
}
table.wikitable table.wikitable caption {
font-weight: normal;
}
</pre>
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview