concept
Transform flattening — CSS reference
Flattening projects descendants into the intermediate element plane before the ancestor perspective is applied. With no intermediate z transform, the child’s z translation does not enlarge its projected width.
Formal Syntax & Structure
css syntaxcss
transform-style: flat;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>transform-flattening</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#scene{width:300px;height:300px;perspective:200px;perspective-origin:0 0}#middle{transform-style:flat;width:100px;height:60px}#a{padding:0;width:100px;height:60px;transform-origin:0 0;transform:translateZ(100px)}</style><body><main id="scene"><div id="middle"><div id="a">A</div></div></main></body></html>