concept
Backface culling — CSS reference
When the reverse face points toward the viewer, backface-visibility determines whether it is painted. With visible, the reverse face of the rotated box can remain visible; hidden suppresses it. This fixture tests the visible reverse face via hit testing.
Formal Syntax & Structure
css syntaxcss
backface-visibility: visible; transform: rotateY(180deg);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>backface-culling</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#scene{position:relative;margin:0;width:300px;height:300px}#a{width:100px;height:60px;padding:0;transform-origin:0 0;background:rgb(0,100,0);color:white}#b{width:100px;height:20px;background:rgb(40,80,180)}#a{transform-origin:center;transform:rotateY(180deg);backface-visibility:visible}</style><body><main id="scene"><div id="a">A</div><div id="b">B</div></main></body></html>