Bug 35548 - -webkit-transform rules break position: fixed;
Summary: -webkit-transform rules break position: fixed;
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL: http://www.chrissutcliff.com/
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-01 15:08 PST by Robert O'Rourke
Modified: 2010-04-26 09:30 PDT (History)
2 users (show)

See Also:


Attachments
Example of z-index not working when webkit-transform is applied (5.32 KB, application/zip)
2010-04-03 13:34 PDT, Tom Waterhouse
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert O'Rourke 2010-03-01 15:08:37 PST
There is a div used for purely presentational reasons on the attached url which I have skewed to one side using -webkit-transform (#blind). The div also has position fixed applied to it however it is being treated like position absolute. You can see the problem simply when you scroll down. The desired effect is seen in recent versions of Firefox.
Comment 1 Danny Sadinoff 2010-03-26 04:53:47 PDT
I'm seeing this issue in 
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1042 Safari/532.5


Simple test case:


<style>
    .wmark { z-index:-50; color:pink;
            position:fixed; top:77px; right:20px;
            font-size: 100px; font-weight: bold;
           transform:rotate(45deg);
             -webkit-transform: rotate(45deg);
             -moz-transform: rotate(45deg);
           }
</style>
<div class="wmark">
DRAFT
</div>

...works fine in firefox 3.6.2
Comment 2 Tom Waterhouse 2010-04-03 13:34:45 PDT
Created attachment 52499 [details]
Example of z-index not working when webkit-transform is applied

I've found this myself using -webkit-transform rotation on div elements. The z-index of objects doesn't seem to do anything. I've set up a demo (attached) showing on the left, without transformation and on the right, with transformation. It's exactly the same html and css, apart from the right example uses transform.

This is apparent on Webkit Version 4.0.5 (6531.22.7, r56990) and before. (Noticed first on Mac OS 10.6.3, but also checked in Windows Safari 4 release).

Hope the example helps!
Comment 3 Simon Fraser (smfr) 2010-04-26 09:30:08 PDT
transform creates stacking context (just like z-index), so this is expected behavior.