Disable the CSS workaround for the <body>/<table> quirk for HTML4 pages.

It looks like Firefox applies the relative size twice, making the fonts
 too small.  Instead, now they'll be too big - just a bit bigger than
 the "Large" web site font.

This only applies to HTML4 pages, which as I mentioned before are
 cvsweb and mailindex, and I don't think that mailindex uses tables.
 This means that this problem should be fixed when someone (no promises)
 imports cvsweb 3 which uses XHTML.

This commit brought to you by CSS, Web Quirks, IE and our favorite IRC channel.
This commit is contained in:
Bill Fenner 2005-10-28 19:07:36 +00:00
parent 3531c625ef
commit f5004e162f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=26167

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.22 2005/09/17 15:48:23 remko Exp $
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.23 2005/10/28 14:55:13 fenner Exp $
#
# Perl routines to encapsulate various elements of HTML page style.
@ -136,7 +136,7 @@ sub short_html_header {
$xhtml = 1 unless defined($xhtml);
$doctype = $xhtml ? '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' : '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
$endslash = $xhtml ? '/' : '';
$csshack = $xhtml ? '' : q`<style type="text/css">
$csshack = (1 || $xhtml) ? '' : q`<style type="text/css">
tr, td {
margin: 0;
padding: 0;