Closed Bug 112015 Opened 23 years ago Closed 20 years ago

Absolute position span inside relative position span not painted correctly

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 79315
Future

People

(Reporter: ssotton, Assigned: attinasi)

References

()

Details

(Whiteboard: [bae:20011128])

Attachments

(3 files)

The eval() function in javascript does not work in Netscape 6.2.  It worked in 
earlier versions but seems to have stopped in 6.2.  eval does not generate a 
javascript error, it just does nothing.
works fine here... (linux build 2001-11-23-08).  How are you using it, exactly?
Stephen: without an example, testcase, or URL to go to, we'll have
to mark this one as invalid. Note the "Create a New Attachment"
link above if you have a (reduced) testcase. Otherwise, a URL to 
a testcase or website can be provided in the "URL" textbox above. 
Stephen has provided me with the URL above.

At this site, eval() is used to dynamically assign the CSS visiblity
of <SPAN> elements, as in:

  eval("document.getElementById(\"inner6\").style.visiblity=\"hidden\"")


and this is not working in Mozilla. Confirming with Mozilla trunk binary
200111265xx on WinNT. If you load the site in IE6, notice what happens
when you click the option buttons, like "Title" and "Author". Each time
you click one, look at "Enter search terms(s)". To the right of it,
you see dynamically assigned text, e.g. "example shakespeare,william".

That is, in IE6 you see it. In Mozilla you don't. No errors appear
in the JavaScript Console. The key functions using eval() are :


function ShowEx(iVis)
{
 for (i=1;i<=5;i++)
 {
  eval(layerRef + "inner" + i + styleRef + "visibility=\"hidden\"")
 }
 eval(layerRef + "inner" + iVis + styleRef + "visibility=\"visible\"")
}


function TabShow(iVis)
{
 for (i=1;i<=6;i++)
 {
  eval(layerRef2 + "tabinner" + i + styleRef + "visibility=\"hidden\"")
 }
 eval(layerRef2 + "tabinner" + iVis + styleRef + "visibility=\"visible\"")
}



And the eval strings here are like the one I gave above:

  eval("document.getElementById(\"inner6\").style.visiblity=\"hidden\"")
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reassigning to DOM Style - 
Assignee: rogerl → jst
Component: Javascript Engine → DOM Style
QA Contact: pschwartau → ian
Summary: eval function of javascript does not work → Dynamic assignment of CSS visibility not working?
Phil, thanks for the data!

DOM style is working correctly.  Layout is not.  The problem is an absolutely
positioned span (block) inside a relatively positioned span (inline).

Attaching a minimal non-dynamic testcase.
Component: DOM Style → Layout
reassign for real
Assignee: jst → attinasi
QA Contact: ian → petersen
Summary: Dynamic assignment of CSS visibility not working? → Absolute position span inside relative position span not painted correctly
setting to 9.9
Priority: -- → P3
Whiteboard: [bae:20011128]
Target Milestone: --- → mozilla0.9.9
I can confirm that giving the outer layers a border:

#outer {position: relative; vertical-align: top; border-color: #FAF0E6;
border-style: solid;}

#tabouter {position: relative; vertical-align: top; border-color: #FFCE63;
border-style: solid;}

makes the page work.  The border-style cannot be "none".
Target Milestone: mozilla0.9.9 → Future
Congrats.  Version 0.9.9 seems to have fixed it.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Sorry, reopening.  The testcases in this bug still fail for me with a current
tip build on Linux....
Status: RESOLVED → REOPENED
OS: Windows 2000 → All
Hardware: PC → All
Resolution: FIXED → ---
After additional testing, I'm in agreement with Boris -- the problem is NOT fixed.
If I change the outer, container (#outer and #tabouter in the example) from a
<span> to a <div>, this also makes it work with Mozilla, so the problem must
have something to do with handling of <span>'s.  I'd rather not have to do this
since it screws up the spacing.
Summary: Absolute position span inside relative position span not painted correctly → {ib}Absolute position span inside relative position span not painted correctly
The problem is still present in 1.0 RC1.
It's disappointing, the final release of 1.0 is out and it still has the bug.
Maybe a duplicate of bug 79315.
Summary: {ib}Absolute position span inside relative position span not painted correctly → Absolute position span inside relative position span not painted correctly
Depends on: 135082
Dup, and this was fixed. Yay!

*** This bug has been marked as a duplicate of 79315 ***
Status: REOPENED → RESOLVED
Closed: 22 years ago20 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: