Closed Bug 65740 Opened 24 years ago Closed 23 years ago

layer gets clipped by over overlaid by layer with lower z-index

Categories

(Core :: Web Painting, defect, P4)

x86
Other
defect

Tracking

()

VERIFIED WORKSFORME
mozilla0.9

People

(Reporter: martin.honnen, Assigned: roc)

Details

Attachments

(1 file)

A menu layer is made visible but it appears clipped or overlaid by another layer
with lower z-index. Clearly the layer with the higher z-index should overlay
that with the lower z-index:

<HTML>
<HEAD>

<SCRIPT>
function containsNN6 (container, containee) {
  var isParent = false;
  while (containee) {
    if ((isParent = container == containee))
      break;
    containee = containee.parentNode;
  }
  return isParent;
}
</SCRIPT>
</HEAD>
<BODY>
<A HREF="javascript: void 0"
   ONMOUSEOVER="document.getElementById('aMenu').style.visibility = 'visible'"
>
menu
</A>
<DIV ID="aMenu"
     STYLE="position: absolute;
            visibility: hidden;
            z-index: 10;
            background-color: orange;"
     ONMOUSEOUT="if (!containsNN6(this, event.relatedTarget))
                   this.style.visibility = 'hidden';"
>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
<A HREF="http://www.kibo.com">
Visit GOD.
</A>
<BR>
</DIV>
<DIV ID="aDiv"
     STYLE="position: absolute;
            left: 0px; top: 50px;
            z-index: 1;
            background-color: light-blue;
            width: 200px; height: 200px;
            overflow: auto;"
>
<SCRIPT>
for (var i = 0; i < 30; i++)
  document.write(i + ' Kibology<BR>');
</SCRIPT>
</DIV>
</BODY>
</HTML>
Does this bug get fixed if you add the line:

user_pref("nglayout.debug.enable_scary_view_manager", true);

to your prefs.js?
It's almost completely fixed for me with the new viewmanager.  There's still a
weird blank space in the middle of the upper div, but it's much better.
->ROC, since mostly fixed with new viewmanager
Assignee: clayton → roc+moz
Component: Layout → Views
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
This is fixed by my checkin for bug 74413.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Marking verified works for me in the June 4th build. 
Status: RESOLVED → VERIFIED
Component: Layout: View Rendering → Layout: Web Painting
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: