From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 6d666b9e for ; Mon, 3 Dec 2018 15:46:33 -0500 (EST) Received: by mail-wr1-f45.google.com with SMTP id j2so13653610wrw.1 for ; Mon, 03 Dec 2018 12:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PUTm2eYSRo6ZkxEI04cj5JeVntvgVumXGNgJCx9H+VM=; b=oNgywinEuE6nMkHEoCLF4qU2CjxnoJiajwOYWzJcuO6jEDbFtCOkmT/RELM5J4nqfz qWa5MggDSzTE1EKl9yiTkpSs88oxmwjr+fqcyHidLKCYCyH05Dd33Zvpenka1+q3Wigl AOph56QmIsdKTonRlx10N/9eNfCL5ByjLUQJsutOjVS80F0YL7cDmAWIaH5U2xlaQX3C 2Tmp1O7Wd5eUmKv2frLd6bNwY8khuDMpGS6ZO7ZBqK0c/kslQIJWNBF8ERfnBuDFzmla DSV/eN9SPe7F1nmbxyghCv9/Vlmvv0rPDB5L6uIbefhMW/ZimS2OMt+xx+LYnPUoKNeY J6aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PUTm2eYSRo6ZkxEI04cj5JeVntvgVumXGNgJCx9H+VM=; b=Zgy5YeNWkJ3wHvRwed5pMPzGw7uA1PrEp3YqhpDRZCK7EAJh94J5VskTdHRiv/Si13 n3oGqdzigZOrcvSYxeWZpZmJR0im5hLphu3/lvTCbqv4KPQmAYedeKIs+sDVS/aKiW2O XZspRwT/dfxPQSsFWQW7zA+QbVKrJS0xqin+WFigfSqvL8UHQ6DMksTIGiCJ7LrB2S+P rzbVTfL3xTuWCkL9cE52bP8+X8erv/IB8Or+QsUSlZQYxRh9kHPw/lIc60eIYzGIzIEw 9ruD52CQq0jSYK73bCO2bSJg9LSeL9L9trvvTdYW4bFJfRFEDEk73XqaPmB4HMAUF1A0 VyRQ== X-Gm-Message-State: AA+aEWaB3wZNlOiwCVwdzGQQ4WvZ9o03aCb39eQAv7O95Q7iyUhh1D56 8PZVGV/HCYsnsq+BLVga6eE= X-Google-Smtp-Source: AFSGD/XtcVXAQ40EyxDQ23mQPIE8GXnybbj6P2wyxZ4r/bjrgzfyG0U10FXvg36/CzYoEzrVrDHQWg== X-Received: by 2002:a05:6000:100f:: with SMTP id a15mr16198304wrx.298.1543869991813; Mon, 03 Dec 2018 12:46:31 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id r77sm9005725wmd.22.2018.12.03.12.46.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 12:46:29 -0800 (PST) Date: Mon, 3 Dec 2018 21:46:28 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Ingo Schwarze Cc: discuss@mandoc.bsd.lv Subject: Re: Broken tables in HTML output Message-ID: <20181203204628.imtj5yh5cnexn27c@pali> References: <20180716110335.uusqzhscwdgp5qaa@pali> <20180716152919.GB85992@athene.usta.de> <20181126212728.GG82448@athene.usta.de> <20181126215826.xepdfaas5fm42ubc@pali> <20181126220133.bf7siow6e5mxahhv@pali> <20181126220516.nrflslyvxufb7xnk@pali> <20181201172057.GD89021@athene.usta.de> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lsp552yyw54ywiq6" Content-Disposition: inline In-Reply-To: <20181201172057.GD89021@athene.usta.de> User-Agent: NeoMutt/20170113 (1.7.2) --lsp552yyw54ywiq6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Saturday 01 December 2018 18:20:57 Ingo Schwarze wrote: > > And in all browsers I see another suspicious thing. Vertical lines in > > the middle of the table are black and horizontal lines are gray or > > rather dark gray (but not black). Border around whole table is also > > gray. > >=20 > > Is this intended? >=20 > No, it is not intended, all lines seem black and of equal width to me > in Firefox 62.0.2 on OpenBSD-current. >=20 > Neither the HTML emitted by mandoc nor mandoc.css makes any statement > about the color or width of the lines. That is intentional: neither > does the tbl(7) input code, and i believe that when styling, it is > best to only style what you intend to style and leave the rest at > the default or user settings. >=20 > I don't see why any browser would render any of the lines in gray, > though, and even less so in two different colors. >=20 > https://www.w3.org/TR/CSS2/tables.html >=20 > doesn't seem to say anything specific about color, so i'd expect >=20 > https://www.w3.org/TR/CSS2/colors.html >=20 > to apply, which says: >=20 > 'color' > Value: | inherit > Initial: depends on user agent=20 >=20 > but whatever the initial value for a root element, it should be inherited > by all children alike, as far as i can see, so the borders should be > the same color as the text. >=20 > Firing up "Web Developer >> Inspector" in Firefox 62.0.2 and enabling > "Browser Styles", i do indeed see "border-bottom-color: rgb(0, 0, 0);" > for the and all its children, as expected. Hi! I played with colors and seems that browsers do not inherit table border color to td border color. And by default my chrome and firefox uses gray color for table (if not specified). E.g. when you set "table { border-color: yellow; }" and border of "table" and "tr" elements are yellow, but "td" elements in black. Following patch "fixes" or rather workaround that problem. It inherits color also for "td" elements. Index: mandoc.css =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/mandoc/mandoc.css,v retrieving revision 1.40 diff -u -r1.40 mandoc.css --- mandoc.css 26 Nov 2018 21:06:02 -0000 1.40 +++ mandoc.css 3 Dec 2018 20:41:19 -0000 @@ -17,7 +17,8 @@ border-collapse: collapse; } 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; } With this patch all border colors are now gray (which comes from user agent style). What do you think about this patch? In troff/tbl you does not specify color, but I think that HTML output should have consistent colors -- not different color for horizontal lines and different for vertical lines. Just because browsers have different defaults. --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --lsp552yyw54ywiq6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCXAWWIgAKCRCL8Mk9A+RD UsHHAJ93ZBG/YKgVrZYR5+FLyuA0iSCxYgCfY4tsHbLeipUbUw+rRWNCmX9nAKA= =RG8J -----END PGP SIGNATURE----- --lsp552yyw54ywiq6-- -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv