"Fomafix" posted a comment on MediaWiki.r107669.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/107669#c29674

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:

For large tables <code>td { expression() }</code> can be a performance problem.

An other idea is to use the HTML attributes <code>border</code> and 
<code>cellpadding</code> for IE6:
<syntaxhighlight lang="javascript">
$( 'table.wikitable' )
        .attr( 'border', '1' )
        .attr( 'cellpadding', '2' )
</syntaxhighlight>

in stead of

<syntaxhighlight lang="css">
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
        border: 1px #aaa solid;
        padding: 0.2em;
</syntaxhighlight>


Test case:

{| class="wikitable"
|+ wikitable
| cell || cell
|-
| cell || cell
|}

{| class="wikitable3" style="background-color: #F9F9F9; border: 1px solid 
#AAAAAA; border-collapse: collapse;  color: black; margin: 1em 1em 1em 0;"
|+ wikitable3
| cell || cell
|-
| cell || cell
|}

paste to address bar: (untested in IE6)
 javascript:void( $( 'table.wikitable3' ).attr( 'border', '1' ).attr( 
'cellpadding', '2' ) )


_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to