Closed Bug 226705 Opened 21 years ago Closed 21 years ago

CSS-Property broken since 1.6a

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 222336

People

(Reporter: markushuebner, Unassigned)

References

()

Details

(Keywords: regression)

Right after 1.5 final the URL no longer displays the background (works fine with MSIE, Opera, etc.). The CSS properties used are: 'background-position:top center' 'background-repeat: repeat-y' the css-file is at http://www.world-direct.com/mozilla/sw/MyImages_ManageViewFrame_files/dm.css and the background-gif that should be displayed is defined in the body of the html file.
This seems somehow be connected with integrated javascript. The modified version at http://www.world-direct.com/mozilla/sw/test2.htm works now fine - the difference is the javascript part. <script language="javascript"> menuItemImage_0_off = new Image; menuItemImage_0_off.src='img/ln_main-navigation_0_eng.gif'; menuItemImage_0_on = new Image; menuItemImage_0_on.src='img/ln_main-navigation_1_eng.gif'; </script><script language="javascript"> // define and reset the menu item count try{ window.menuItemCount=1; tdSubMenuItemMarker_off = new Image; tdSubMenuItemMarker_off.src='img/s.gif'; tdSubMenuItemMarker_on = new Image; tdSubMenuItemMarker_on.src='img/arrow_level2_grey.gif'; } catch(error) {location.reload();} </script><span id="spLeftMenu" name="spLeftMenu" style="position: absolute; top: 170px; visibility: hidden; left: 245.5px;"><table border="0" cellpadding="0" cellspacing="0" width="162" bgcolor="#61974c"><tbody><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="10" border="0"></td><td width="160" background="MyImages_ManageViewFrame_files/menu_bg.gif"><img src="MyImages_ManageViewFrame_files/s.gif" width="160" height="10" border="0"></td></tr></tbody></table><script language="javascript"> try { window.menuItemCount++; menuItemImage_1_off=new Image; menuItemImage_1_off.src='img/ln_birdopedia_0_eng.gif'; menuItemImage_1_on=new Image; menuItemImage_1_on.src='img/ln_birdopedia_0_eng.gif'.replace('0','1'); } catch(error) {location.reload();} </script><span id="sLM_1" style="z-index: 1; position: absolute; top: - 25px;"><table border="0" cellpadding="0" cellspacing="0" width="162" bgcolor="#61974c"><tbody><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><a href="http://www.swarovskibirding.com/Lexicon_Main.aspx" target="_top"><img border="0" src="MyImages_ManageViewFrame_files/ln_birdopedia_0_eng.gif" id="iLM_1" onmouseover="lM_t('1',1);" onmouseout="lM_t ('1',0);"></a></td></tr><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><table border="0" cellpadding="0" cellspacing="0" width="160" id="tLM_1"><tbody><tr><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="15" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="15" height="1" border="0"></td><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="135" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="135" height="1" border="0"></td><td width="10" bgcolor="#ffffff"><img src="MyImages_ManageViewFrame_files/s.gif" width="10" height="1" border="0"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr></tbody></table></td></tr></tbody></table></span><script language="javascript"> try { window.menuItemCount++; menuItemImage_2_off=new Image; menuItemImage_2_off.src='img/ln_weather_0_eng.gif'; menuItemImage_2_on=new Image; menuItemImage_2_on.src='img/ln_weather_0_eng.gif'.replace('0','1'); } catch(error) {location.reload();} </script><span id="sLM_2" style="z-index: 2; position: absolute; top: 1px;"><table border="0" cellpadding="0" cellspacing="0" width="162" bgcolor="#61974c"><tbody><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><a href="http://www.swarovskibirding.com/Weather_MainFrame.aspx" target="_top"><img border="0" src="MyImages_ManageViewFrame_files/ln_weather_0_eng.gif" id="iLM_2" onmouseover="lM_t('2',1);" onmouseout="lM_t('2',0);"></a></td></tr><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><table border="0" cellpadding="0" cellspacing="0" width="160" id="tLM_2"><tbody><tr><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="15" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="15" height="1" border="0"></td><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="135" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="135" height="1" border="0"></td><td width="10" bgcolor="#ffffff"><img src="MyImages_ManageViewFrame_files/s.gif" width="10" height="1" border="0"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr></tbody></table></td></tr></tbody></table></span><script language="javascript"> try { window.menuItemCount++; menuItemImage_3_off=new Image; menuItemImage_3_off.src='img/ln_members-multimedia_0_eng.gif'; menuItemImage_3_on=new Image; menuItemImage_3_on.src='img/ln_members-multimedia_0_eng.gif'.replace('0','1'); } catch(error) {location.reload();} </script><span id="sLM_3" style="z-index: 3; position: absolute; top: 27px;"><table border="0" cellpadding="0" cellspacing="0" width="162" bgcolor="#61974c"><tbody><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><a href="http://www.swarovskibirding.com/MyImages_ManageViewFrame.aspx? page=community" target="_top"><img border="0" src="MyImages_ManageViewFrame_files/ln_members-multimedia_0_eng.gif" id="iLM_3" onmouseover="lM_t('3',1);" onmouseout="lM_t ('3',0);"></a></td></tr><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><table border="0" cellpadding="0" cellspacing="0" width="160" id="tLM_3"><tbody><tr><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="15" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="15" height="1" border="0"></td><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="135" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="135" height="1" border="0"></td><td width="10" bgcolor="#ffffff"><img src="MyImages_ManageViewFrame_files/s.gif" width="10" height="1" border="0"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr></tbody></table></td></tr></tbody></table></span><script language="javascript"> try { window.menuItemCount++; menuItemImage_4_off=new Image; menuItemImage_4_off.src='img/ln_chat-discussion-boards_0_eng.gif'; menuItemImage_4_on=new Image; menuItemImage_4_on.src='img/ln_chat-discussion-boards_0_eng.gif'.replace ('0','1'); } catch(error) {location.reload();} </script><span id="sLM_4" style="z-index: 4; position: absolute; top: 53px;"><table border="0" cellpadding="0" cellspacing="0" width="162" bgcolor="#61974c"><tbody><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><a href="http://www.swarovskibirding.com/ForumFrame.aspx" target="_top"><img border="0" src="MyImages_ManageViewFrame_files/ln_chat- discussion-boards_0_eng.gif" id="iLM_4" onmouseover="lM_t('4',1);" onmouseout="lM_t('4',0);"></a></td></tr><tr><td width="2" bgcolor="#356533"><img src="MyImages_ManageViewFrame_files/s.gif" width="2" height="1" border="0"></td><td><table border="0" cellpadding="0" cellspacing="0" width="160" id="tLM_4"><tbody><tr><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="15" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="15" height="1" border="0"></td><td background="MyImages_ManageViewFrame_files/bg_grey_1.gif" width="135" height="1"><img src="MyImages_ManageViewFrame_files/s.gif" width="135" height="1" border="0"></td><td width="10" bgcolor="#ffffff"><img src="MyImages_ManageViewFrame_files/s.gif" width="10" height="1" border="0"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr><tr><td bgcolor="#a9e094" width="15" height="5"></td><td bgcolor="#a9e094" width="135" height="5"></td><td bgcolor="#ffffff" width="10" height="5"></td></tr></tbody></table></td></tr></tbody></table></span><script language="javascript"> try { window.menuItemCount++; menuItemImage_5_off=new Image; menuItemImage_5_off.src='img/ln_other-wildlife_0_eng.gif'; menuItemImage_5_on=new Image; menuItemImage_5_on.src='img/ln_other-wildlife_0_eng.gif'.replace('0','1'); } catch(error) {location.reload();} </script> No idea why that may interfere with the CSS property resp. display of the background.
very reduced testcase now at http://www.manni.org/techlab/testcases/background-bug.html If in a HTML document is an absolute positioned TABLE with at least one TD inside, wrapped into another absolute positioned element (tested with SPAN and DIV), and none of these elements (neither the wrapping element, nor the TABLE or the TD) is correctly closed later, Mozilla 1.6 will not render BODY background graphics if they have the CSS properties background-position and background-repeat (both of them!) set.
Depends on: 222336
Ah, excellent. The patch for bug 222336 makes that testcase happy. *** This bug has been marked as a duplicate of 222336 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.