Bug 26582 - z-index on root html element is incorrect
Summary: z-index on root html element is incorrect
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 06:26 PDT by iain
Modified: 2022-05-31 10:30 PDT (History)
3 users (show)

See Also:


Attachments
test case (1.06 KB, text/html)
2009-06-21 06:30 PDT, iain
no flags Details
Safari 15.4 matching Chrome and Firefox (329.42 KB, image/png)
2022-05-29 07:03 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description iain 2009-06-21 06:26:39 PDT
The z-index on the root html element is set to "0" in webkit. This means the html element will always be painted higher in the stacking order than elements with a negative z-index. According to my reading of the CSS 2.1 spec and other browser implementations z-index should default to "auto".
Comment 1 iain 2009-06-21 06:30:36 PDT
Created attachment 31612 [details]
test case
Comment 2 Ahmad Saleem 2022-05-29 07:03:34 PDT
Created attachment 459834 [details]
Safari 15.4 matching Chrome and Firefox

Unable to reproduce in Safari 15.4 and the result is matching with Chrome Canary 104 and Firefox Nightly 102. Please close this bug. Thanks!
Comment 3 Alexey Proskuryakov 2022-05-31 10:30:44 PDT
Thank you for checking!