Bug 61824 - transform-style:flat should draw in document order
Summary: transform-style:flat should draw in document order
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-31 17:33 PDT by Vangelis Kokkevis
Modified: 2015-07-14 14:25 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vangelis Kokkevis 2011-05-31 17:33:52 PDT
Should children of an element with -webkit-transform-style set to flat draw in document order or be depth sorted?  

Safari depth sorts whereas Chrome's compositor doesn't. My take is that unless the transform-style of the parent is set to preserves-3d, children should be drawn in their document (or z-index) order but I don't think the spec is clear about this.

This page demonstrates the difference:

http://dl.dropbox.com/u/2176065/perspective/index.html#album-4

(you'll need to mouse over the covers on the right to get them to flip around)
Comment 1 James Robinson 2011-05-31 17:40:32 PDT
I think that the elements have to be painted in document order (or more precisely the usual CSS painting order) unless CSS specifies exactly what Safari's depth sort does, which seems somewhat impractical.
Comment 2 Simon Fraser (smfr) 2011-05-31 17:45:24 PDT
-webkit-transform-style: flat should draw in document order, with no intersection. Safari isn't able to do this correctly yet.