Closed Bug 510209 Opened 15 years ago Closed 15 years ago

CSS content property does not work correctly with IMG tag.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 245633

People

(Reporter: saka, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

The string which is specified in CSS content property is not displayed if it is used with IMG tag.

For example,
<html>
<head>
  <style type="text/CSS">
<!--
img:after {
  content: attr(alt);
}
-->
  </STYLE>
</head>
<body>
<div>
<img src="http://www.mozilla.com/img/tignish/home/feature-logo.png" alt="firefox"><br>
</div>
</body>
</html>


Reproducible: Always

Steps to Reproduce:
1. please see the example by Firefox.
2.
3.
Actual Results:  
Only png image will be displayed.

Expected Results:  
The content property should be displayed after the image.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.