W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-text] CSS3 suggestion for text-underline

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 18 May 2010 11:31:57 -0400
Message-ID: <4BF2B2ED.5020104@mit.edu>
To: Brad Kemper <brad.kemper@gmail.com>
CC: Thomas Phinney <tphinney@cal.berkeley.edu>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On 5/18/10 11:24 AM, Brad Kemper wrote:
>> Defining the default underline behavior should be part of any effort
>> to give users the ability to further modify the underline. A default
>> underline should use the values in the font for underline position and
>> thickness. Even if it doesn't, the underline should still scale with
>> the text.
>>
>> (Yes, the Chrome/Safari/IE behavior is simply incorrect.)
>
> "Should" according to what? Some principal of typographic purity?

The "make it look good and readable" principle, sorta.

> When I am designing Web pages for computer monitors, I virtually always want the underline to be a single pixel in thickness

A single device pixel?  On some of the monitors I have lying around here 
that wouldn't even be all that visible.  Or do you mean single CSS pixel?

> (especially when used for hyperlinks). Even if I wanted a bigger underline for larger letters (I never actually have, btw), I would want it to be an integer number of pixels thick.

Integer number of pixels seems reasonable; I believe Gecko does that in 
fact.

> As for position, I would much rather it be in a consistent position across different fonts or sizes on the same line.

In what situation?  If you have:

   <div>
     <span
      style="font-size: 10px; text-decoration: underline">Some</span>
     more
     <span
      style="font-size: 30px; text-decoration: underline">text</span>
   </div>

you expect the underlines to line up?  Even if that means that either 
the "text" looks terrible or the "Some" looks terrible?

-Boris
Received on Tuesday, 18 May 2010 15:48:33 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT