"Fomafix" posted a comment on MediaWiki.r107669. URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107669#c29565
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: With the CSS definition above you can't emulate a [http://www.w3.org/TR/CSS2/selector.html#child-selectors child selector] completely. The following nested table lose the cell border in the inner table: <pre> {| class="wikitable" | outer table |- | {| class="wikitable" | inner table |- | second row |} |} </pre> {| class="wikitable" | outer table |- | {| class="wikitable" | inner table |- | second row |} |} Here are some examples to emulate a CSS child selector in IE6: http://craftycodeblog.com/2010/05/19/emulating-css-child-selectors-in-ie6/ I think the jQuery workaround would be applicable for [[svn:trunk/phase3/skins/common/IEFixes.js]]: <syntaxhighlight lang="javascript"> $( "table.wikitable > * > tr > td" ) .css( "border", "1px #aaa solid" ) .css( "padding", "0.2em" ); </syntaxhighlight> _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
