On Feb 8, 2008 4:07 PM, Rotem Liss rotemliss@gmail.com wrote:
I guess it should be #bodyContent.
Well, that only exists in Monobook, so probably not a good idea. #content, maybe, but of course that breaks in Modern, as people have repeatedly observed.
Setting "display: table" may seem odd, but it works and fixes Firefox bug that lists in RTL display with some floating elements on their left are outdented, beyond the page borders (see https://bugzilla.mozilla.org/show_bug.cgi?id=262195 ). This fix doesn't have unexpected affects on unordered lists. It had some affects on ordered lists in some older versions of Firefox, but they don't seem to occur anymore in newer versions. This is the known fix for the problem in the CSS files of RTL wikis (hewiki, arwiki and fawiki all set it this way).
And it doesn't affect other browsers at all either? I'm pretty sure there should be some differences between list-items nested in a table and in a block, like width handling for the container.
At any rate, this should all be carefully explained in comments. Cryptic code like this needs to be well-documented.
Furthermore, since this bug is fixed in Firefox 3.0, I'm not sure fixing this in the MediaWiki level is currently necessary. RTL wikis can fix this in their CSS files until it is fixed in the browser level, and some of them already do this.
We maintain fixes for browsers as old as IE5, so it seems appropriate to maintain fixes for FF2. We don't currently have a CSS fixes file for any Firefox version, though, oddly.