Bug 85261 - 3d css doesn't respect implicit transform-style: flat
Summary: 3d css doesn't respect implicit transform-style: flat
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac Unspecified
: P2 Normal
Assignee: Nobody
URL: http://greggman.com/downloads/example...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-04-30 22:33 PDT by Gregg Tavares
Modified: 2022-09-29 18:00 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gregg Tavares 2012-04-30 22:33:32 PDT
the DOM hierarchy of the URL above is

body
__container
____stage
______shape
________tiltX
__________plane
____________elem1
__________plane
____________elem2
__________plane
____________elem3
__________plane
____________elem4
...

elem1, through elem6 are the 6 planes of the cube, each with translation and rotation.
But, "plane" does not have --webkit-transform-style: preserve-3d, only "tiltX" does which as AFAICT means elem1 through elem6 should be in just part of their parent "plane" element

To make it clearer

________tiltX  <- preserve-3d
__________plane  <- implicit flat
____________elem1  <- implicit flat + trans & rot

based on my understanding of the spec, since "plane" is implicitly style "flat", "elem1" should not be "3d"
Comment 1 Gregg Tavares 2012-05-01 09:49:00 PDT
PS:, the sample looks correct now but AFAICT it shouldn't. In order to work it should require

.plane {
  -webkit-transform-style: preserve-3d;
}
Comment 2 Simon Fraser (smfr) 2012-05-01 11:13:49 PDT
Yes, we do not follow the 3d transforms spec very well in this area; the spec is still a bit fuzzy here.
<rdar://problem/6438206>