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

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

From: Markus Ernst <derernst@gmx.ch>
Date: Thu, 20 May 2010 10:20:25 +0200
Cc: www-style@w3.org, fantasai.lists@inkedblade.net, tphinney@cal.berkeley.edu
Message-ID: <20100520082025.34740@gmx.net>
To: Brad Kemper <brad.kemper@gmail.com>, bzbarsky@MIT.EDU

-------- Original-Nachricht --------
> Datum: Tue, 18 May 2010 09:37:04 -0700
> Von: Brad Kemper <brad.kemper@gmail.com>

> On May 18, 2010, at 8:31 AM, Boris Zbarsky wrote:
> 
> > you expect the underlines to line up?  
> 
> Yes, I do.
> 
> > Even if that means that either the "text" looks terrible or the "Some"
> looks terrible?
> 
> They line up in Webkit, and do not look terrible. In fact, I think Firefox
> looks worse. Firefox does keep the underline the same size when the
> underline is assigned to the parent element, but then the thickness is also based
> on the parent element, when most of the time I would prefer a 1px
> underline, as in Webkit:
> 
> <a style="font-size: 50px;">
>    S<span style="font-size: 10px;">ome 
>    more text</span>
>  </a>
> 
> In Firefox, this feels like a hackish way to get a thick bar drawn
> underneath small text.

I just happen to notice that this code

<p style="font-weight:bold;text-decoration:underline">
  <span style="font-size:200%">H</span>ello 
  <span style="font-size:200%">W</span>orld
</p>

is rendered differently in Firefox based on the Doctype. Without a Doctype, the underline changes thickness and position, but with a strict HTML4 Doctype it lines up and remains 1 pixel thick.

-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser
Received on Thursday, 20 May 2010 08:47:39 GMT

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