Closed Bug 302030 Opened 19 years ago Closed 19 years ago

alt img text doesn't follow text-decoration css rule in link

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 193584

People

(Reporter: loufoque, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+

When a text-decoration css rule is applying to an <img> element inside a <a>
element with an href attribute, the rule doesn't apply to the alternative text
which is displayed when the image is not available.

Reproducible: Always

Steps to Reproduce:
1. See http://mangabordeaux.free.fr/alt-in-link.html
2.
3.

Actual Results:  
test is underlined

Expected Results:  
test is not underlined
Attached file testcase
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050724
Firefox/1.0+ ID:2005072323

WFM

your testcase is just wrong ->INVA
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
(In reply to comment #1)
> Created an attachment (id=190418) [edit]
> testcase

Your testcase is the opposite of mine.

This (your testcase):
 a { text-decoration:none}
 img { text-decoration:underline;border:0}
works as expected (link not underlined, alt text underlined)

This (approximately mine):
 a { text-decoration:underline}
 img { text-decoration:none;border:0}
does NOT work, alt text gets underlined.

It seems my bug description was incorrect, in fact when the <a> element has
text-decoration: underline (which is the default behaviour with an <a> element
with an href attribute), the alt text can't remove the underline.
text-decoration: overline works as text-decoration: overline underline.
(In reply to comment #2)
> It seems my bug description was incorrect, in fact when the <a> element has
> text-decoration: underline (which is the default behaviour with an <a> element
> with an href attribute), the alt text can't remove the underline.
> text-decoration: overline works as text-decoration: overline underline.

Yeah, I'm seeing the problem now.
I'm not sure what the correct behaviour should be though.

I guess this is a dupe of bug 193584 (see comment 3 + follow ups)

Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---

*** This bug has been marked as a duplicate of 193584 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: