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

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 UTC