Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 403283 - quirks mode: double underline (text-decoration) with font-weight: bold, and Arial
: quirks mode: double underline (text-decoration) with font-weight: bold, and A...
Product: Core
Classification: Components
Component: Layout: Text (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla8
Assigned To: Nobody; OK to take it and work on it
Depends on: 403524
  Show dependency treegraph
Reported: 2007-11-09 19:49 PST by philippe (part-time)
Modified: 2011-08-05 16:43 PDT (History)
7 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

test case (924 bytes, text/html)
2007-11-09 19:49 PST, philippe (part-time)
no flags Details
screenshot of google page (15.11 KB, image/png)
2007-11-09 19:50 PST, philippe (part-time)
no flags Details

Description philippe (part-time) 2007-11-09 19:49:22 PST
Created attachment 288094 [details]
test case

Bold words in links, or any span with text-decoration:underline, have a double underline.
This only happens when the Arial font is used.
This only happens in quirks mode.
Comment 1 philippe (part-time) 2007-11-09 19:50:28 PST
Created attachment 288095 [details]
screenshot of google page
Comment 2 Peter Weilbacher 2007-11-10 11:51:50 PST
Yes, I see this, too, on Linux and OS/2. In the testcase of attachment 288094 [details] both the "Arail" and "Lucida Grande" cases show it, at least when the font size is large enough (using Ctrl-+), the "Times" case doesn't.

In your screenshot I don't actually see a double underline, just an underline that is bold like the text. The underline thickness is actually a property of the font, and a bold font may well have a different value than a non-bold one (or another bold font).

But that doesn't explain why it only happens in quirks mode.
Comment 3 philippe (part-time) 2007-11-10 16:06:46 PST
(In reply to comment #2)

> both the "Arail" and "Lucida Grande" cases show it, at least when the font size
You almost certainly don't have the 'Lucida Grande' font installed, as it is OS X only. The test case then defaults to Arail (which should be 'Arial', can't seem to spell that one right..).

And, yeah, the underline thickness is dependent on the font (and font-weight), but in this case, the whole text-run should have the same underline thickness (per the specs), as it does for most, if not all, fonts I have installed (didn't test them all).

Thanks for confirming the issue on a non-mac platform. That makes this bug probably dependent on bug 402524.

(and I added 'text-decoration' in the summary).

Comment 4 Masayuki Nakano [:masayuki] (Mozilla Japan) 2007-11-12 07:04:30 PST
This should be marked as WONTFIX.

We don't prefer the text-decoration spec in CSS at quirks mode. The cause is that nsTextFrame draws the underlines per the frames.
Comment 5 Vitor Menezes 2011-08-05 16:42:52 PDT
Landing bug 403524 merged the standards-mode and quirks-mode text-decoration code, so quirks-mode now complies with that portion of the CSS2.1 spec

Note You need to log in before you can comment on or make changes to this bug.