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.
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.
rdar://problem/8566867