From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 756701F770 for ; Tue, 1 Jan 2019 07:51:38 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] hval: set font-size:100% for all elements Date: Tue, 1 Jan 2019 07:51:38 +0000 Message-Id: <20190101075138.6203-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: GUI browsers have a tendency to use a larger (though sometimes smaller) font than the rest of the page for some reason I could not find... So set everything to 100% to give uniformity to the page; which benefits visually-challenged users who want to use gigantic fonts for the entire page. --- lib/PublicInbox/Hval.pm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index c47057f..ccfa324 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -11,10 +11,15 @@ use PublicInbox::MID qw/mid_clean mid_escape/; use base qw/Exporter/; our @EXPORT_OK = qw/ascii_html obfuscate_addrs to_filename/; -# for user-generated content (UGC) which may have excessively long lines -# and screw up rendering on some browsers. This is the only CSS style -# feature we use. -use constant STYLE => ''; +# User-generated content (UGC) may have excessively long lines +# and screw up rendering on some browsers, so we use pre-wrap. +# +# We also force everything to the same scaled font-size because GUI +# browsers (tested both Firefox and surf (webkit)) uses a larger font +# for the Search
element than the rest of the page. Font size +# uniformity is important to people who rely on gigantic fonts. +use constant STYLE => + ''; my $enc_ascii = find_encoding('us-ascii'); -- EW