From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 2ba2399f for ; Tue, 4 Dec 2018 00:21:34 -0500 (EST) Date: Tue, 4 Dec 2018 00:21:34 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Make sure all borders in a table are drawn in the same color. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: <381db47ac19219ec@fantadrom.bsd.lv> Log Message: ----------- Make sure all borders in a table are drawn in the same color. Required because browsers tend to have inconsistent defaults: For example, Firefox 62.0.2 sets border-color for tbody, but not for table, and Pali Rohar reports that Chrome set it for td, but not for tr or tbody. The td part is from Pali Rohar, the tbody and tr parts from me. Modified Files: -------------- mandoc: mandoc.css Revision Data ------------- Index: mandoc.css =================================================================== RCS file: /home/cvs/mandoc/mandoc/mandoc.css,v retrieving revision 1.40 retrieving revision 1.41 diff -Lmandoc.css -Lmandoc.css -u -p -r1.40 -r1.41 --- mandoc.css +++ mandoc.css @@ -15,9 +15,14 @@ body { font-family: Helvetica,Arial,san table { margin-top: 0em; margin-bottom: 0em; border-collapse: collapse; } +/* Some browsers set border-color in a browser style for tbody, + * but not for table, resulting in inconsistent border styling. */ +tbody { border-color: inherit; } +tr { border-color: inherit; } td { vertical-align: middle; padding-left: 0.2em; - padding-right: 0.2em; } + padding-right: 0.2em; + border-color: inherit; } ul, ol, dl { margin-top: 0em; margin-bottom: 0em; } li, dt { margin-top: 1em; } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv