Bug 47729
Summary: | Provide a mechanism to get the tight bounding box of a container with 3D transformed elements | ||
---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <ml> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Enhancement | CC: | simon.fraser |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.6 | ||
URL: | http://developer.apple.com/library/safari/#samplecode/FingerTips/Introduction/Intro.html |
Antoine Quint
When dealing with 3D transformed content, the structural container may have zero-size CSS metrics. The Apple Finger Tips sample code is a good example (see URL). For instance, in that code the #ring element has 0x0 CSS metrics and getBoundingClientRect() reports width and height to be 0 and 0. It would be great to have a functionality to get the tight bounding box of such elements to hide away the complexity of dealing with 3D maths.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Antoine Quint
When dealing with 3D transformed content, the structural container may have zero-size CSS metrics. The Apple Finger Tips sample code is a good example (see URL). For instance, in that code the #ring element has 0x0 CSS metrics and getBoundingClientRect() reports width and height to be 0 and 0. It would be great to have a functionality to get the tight bounding box of such elements to hide away the complexity of dealing with 3D maths.
Antoine Quint
When dealing with 3D transformed content, the structural container may have zero-size CSS metrics. The Apple Finger Tips sample code is a good example (see URL). For instance, in that code the element with ID "ring" has 0x0 CSS metrics and getBoundingClientRect() reports width and height to be 0 and 0. It would be great to have a functionality to get the tight bounding box of such elements to hide away the complexity of dealing with 3D maths.
Antoine Quint
rdar://problem/8566867