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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 20 May 2010 22:51:33 +1200
Message-ID: <AANLkTin-yXIlWx4XI4lD_znxl_nUUNjcnnTbAKXA21D7@mail.gmail.com>
To: Markus Ernst <derernst@gmx.ch>
Cc: Brad Kemper <brad.kemper@gmail.com>, bzbarsky@mit.edu, www-style@w3.org, fantasai.lists@inkedblade.net, tphinney@cal.berkeley.edu
On Thu, May 20, 2010 at 8:20 PM, Markus Ernst <derernst@gmx.ch> wrote:

> 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.
>

That's a difference between Standards mode and Quirks mode. In Standards
mode text decorations are painted on the container element that specified
the decoration, per CSS spec. In Quirks mode text decorations are painted on
the text itself, for compatibility with old Web sites.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Thursday, 20 May 2010 10:52:11 GMT

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