[Webkit-unassigned] [Bug 23804] text-decoration:none inside an anchor tag doesn't match IE (i.e. remove underlines)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 9 17:45:40 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=23804


Ojan Vafai <ojan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|text-decoration behavior    |text-decoration:none inside
                   |when an inline element      |an anchor tag doesn't match
                   |wraps a block doesn't match |IE (i.e. remove underlines)
                   |FF/IE                       |




--- Comment #7 from Ojan Vafai <ojan at chromium.org>  2009-07-09 17:45:39 PDT ---
See below for details. The Firefox behavior is clearly just a bug that should
be fixed in Gecko. We might want to consider mimicking the IE behavior for
text-decoration in an anchor tag since sites seem to depend on it.

Some other sites that have this problem (i.e. WebKit has underlines, but IE/FF
do not):
-Links in the middle column: http://www.aib.gov.uk/
-Links in the middle column: http://www.aramark.co.uk/
-"Community" link: http://www.askamum.co.uk/
-The house listings: http://www.bflhomes.co.uk/
-The "tg" in the navbar on the left:
http://homeshopping.24studio.co.uk/fashion/womens/by-brand/tg/12/maxidressbytg/1/?source=TL80&cm_mmc=Google%20Base-_-tg-_-Shopping%20Feed-_-Maxi%20Dress%20By%20TG

To test this, I tried the following HTML in FF, IE, Safari:
<a href="foo">
    <div style="text-decoration: none;">foo</div>
    <span style="text-decoration: none;">foo</span>
</a>
<span style="text-decoration:underline;">
    <div style="text-decoration: none;">bar</div>
    <span style="text-decoration: none;">bar</span>
</span>

-WebKit: underlines the contents of both the span and the anchor tags in quirks
and standards modes.
-Firefox: underlines them both in quirks mode, but doesn't underline the
contents of either div in standards mode.
-IE: underlines the contents of span, but not the contents of the anchor tag in
both quirks and standards modes.

Note that IE renders the following with a line-through, but no underline:
<a href="foo" style="text-decoration:line-through">
    <span style="text-decoration: none;">foo</span>
</a>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list