diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-19 00:16:28 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-19 00:16:28 +0200 |
commit | 14ffe3143e36d79ef7054b293e51f3fb4b658224 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /skins/common/diff.js | |
parent | c2653bf8ea6048088ea2ed708f8b3602f41a01cd (diff) | |
download | mediawiki-14ffe3143e36d79ef7054b293e51f3fb4b658224.tar mediawiki-14ffe3143e36d79ef7054b293e51f3fb4b658224.tar.gz mediawiki-14ffe3143e36d79ef7054b293e51f3fb4b658224.tar.bz2 mediawiki-14ffe3143e36d79ef7054b293e51f3fb4b658224.tar.xz mediawiki-14ffe3143e36d79ef7054b293e51f3fb4b658224.zip |
Remove all to rebase on new mw
Diffstat (limited to 'skins/common/diff.js')
-rw-r--r-- | skins/common/diff.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/skins/common/diff.js b/skins/common/diff.js deleted file mode 100644 index 5fd151f..0000000 --- a/skins/common/diff.js +++ /dev/null @@ -1,20 +0,0 @@ -/* -Workaround for overflow bug in Mozilla 1.1 and earlier, where scrolling -<div>s in <td> cells collapse their height to a single line. - -Known to be fixed in 1.2.1 (Gecko 20021130), but the CSS hacks I've tried -with overflow-x disable the scrolling all the way until Mozilla 1.8 / FF 1.5 -and break Opera as well. - -So... we check for reaaaally old Gecko and hack in an alternate rule to let -the wide cells spill instead of scrolling them. Not ideal as it won't work -if JS is disabled, of course. -*/ - -if (navigator && navigator.product == "Gecko" && navigator.productSub < "20021130") { - var sheets = document.styleSheets; - var lastSheet = sheets[sheets.length-1]; - lastSheet.insertRule( - "table.diff td div { overflow: visible; }", - lastSheet.cssRules.length); -} |