W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: [css3-text] Underlines match the color of the text (was Allow control of text-decoration width

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 9 Apr 2011 09:18:33 +1200
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
Cc: Koji Ishii <kojiishi@gluesoft.co.jp>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20110408211833.GB30633@wok.mcc.id.au>
Aryeh Gregor:
> Underlining is relatively rare and color changes are relatively rare,
> so this doesn't come up too much.  But it came up for me in the real
> world just last week.  The case was that anolis (a preprocessor for
> specifications written in HTML, used by HTML5 and a couple of specs I
> edit) generates auto-links for cross-references.  Cross-references can
> be <code> elements, so it was generating code like
>   <a href=...><code>...</code></a>
> The stylesheet had <code> bold orange.  So this produced a blue
> underline under orange text, which wasn't the desired effect at all.
> I've run into this once or twice before, and have trouble seeing where
> it would ever be the desired behavior.

FWIW, we use this pattern deliberately for element links in SVG
specifications, e.g. see the ‘ellipse’ words here:


(I don’t claim that it’s a particularly nice style, just that some
people are relying on it.)

Cameron McCormack ≝ http://mcc.id.au/
Received on Friday, 8 April 2011 21:19:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC