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

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

Krinkle's comment:

> The fallback value is not known. Is it possible to use expression without a 
> fallback value?

Hm.. it's not possible to conditionally add a declaration as the expression can 
only be used in or as part of the value. However, my experience has always 
shown that browsers nicely ignore and skip rules it doesn't understand. I 
wonder to what extend something like the following would match the absence of 
the rule:

<pre>
table.wikitable > * > tr > td {
  border: 1px #aaa solid;
  padding: 0.2em;
}

/* IE6 only */
* html table.wikitable * tr td {
  border: 
expression(/wikitable/.test(this.parentNode.parentNode.parentNode.className)? 
"1px #aaa solid" : "ignorethisinvalidvalue");
  padding: 
expression(/wikitable/.test(this.parentNode.parentNode.parentNode.className)? 
"0.2em" : "ignorethisinvalidvalue");
}
</pre>

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

Reply via email to