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

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 UTC