Closed Bug 125481 Opened 24 years ago Closed 24 years ago

Background defined in class not working in tables

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: tero, Assigned: jst)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.8) Gecko/20020204 BuildID: 2002020406 If you define a class that defines background doesn't show up as table background. Reproducible: Always Steps to Reproduce: 1. Make a class that uses background-image: url(imageurl) 2. do a table using <table class="class">... 3. Load it in mozilla (vs. for example IE and Opera 6.01) Actual Results: Background doesn't show Expected Results: Background should show <HTML> <HEAD> <style>.box { border: solid; border-width: 1px; background-image: url("red.gif"); background-repeat: no-repeat; background-attachment: fixed; }</style> </HEAD> <BODY TEXT="000000" BGCOLOR="FFFFFF"> <table width="550" border="0" cellspacing="5" cellpadding="0" class="box"> <tr> <td valign="top"> Text </td> <td> Shouldn't this have "red.gif" as a background in the corner? </td> </tr> </table> </BODY> </HTML>
The problem here is " background-attachment:fixed; " You can read an explanation at http://www.meyerweb.com/eric/css/edge/complexspiral/demo.html to see what happens, specifically, it says that "According to CSS, any background image that is "fixed" using background-attachment: fixed; is fixed with respect to the viewport-- not the element with which the image is associated." So this is not a bug, it is just adherence to the standards.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.