Temporary hack for Mozilla bug; revert to quirks mode handling of <hr>
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 04:28:01 +0000 (04:28 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 10 Jul 2003 04:28:01 +0000 (04:28 +0000)
stylesheets/wikibits.js

index 471153a..d57d5b0 100644 (file)
@@ -70,3 +70,27 @@ function toggleToc() {
        }
 }
 
+
+/* Temporary hack for Mozilla bug; revert to quirks mode handling of <hr> */
+if(navigator.userAgent &&
+   navigator.userAgent.indexOf('Gecko') != -1 &&
+   navigator.userAgent.indexOf('KHTML') == -1) {
+       document.writeln(
+       '<style type="text/css">\n' +
+       'hr {\n' +
+       '  display: inline;\n' +
+       '  -moz-box-sizing: border-box;\n' +
+       '  margin: 0 0.1% 0 0.1%;\n' +
+       '  font-size: -moz-initial !important;\n' +
+       '}\n' +
+       'hr:before {\n' +
+       '  white-space: pre;\n' +
+       '  content: "\\A";\n' +
+       '}\n' +
+       'hr:after {\n' +
+       '  white-space: pre;\n' +
+       '  content: "\\A";\n' +
+       '}\n' +
+       '</style>');
+}
+