Closed Bug 39652 Opened 25 years ago Closed 25 years ago

z-index doesn't work with overflow

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 39621

People

(Reporter: andrew.ng, Assigned: jst)

Details

z-index doesn't seem to work when the overflow attribute is used in a <DIV>. Example: z-index work w/o overflow <html> <body> <DIV style="background-color:red; HEIGHT:28px; WIDTH:100px; position:absolute; top:10px; left:10px; z-index:1"></DIV> <DIV style="background-color:blue; HEIGHT:14px; WIDTH:100px; position:absolute; top:10px; left:10px; z-index:5"></DIV> </html> Example: z-index doesn't work w overflow <html> <body> <DIV style="background-color:red; HEIGHT:28px; WIDTH:100px; position:absolute; top:10px; left:10px; z-index:1"></DIV> <DIV style="background-color:blue; HEIGHT:14px; WIDTH:100px; position:absolute; top:10px; left:10px; z-index:5; overflow:auto"></DIV> </html>
*** This bug has been marked as a duplicate of 39621 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified duplicate.
Status: RESOLVED → VERIFIED
Component: DOM Level 2 → DOM Style
You need to log in before you can comment on or make changes to this bug.