concept

Compositing layer — CSS reference

A compositor may combine independently rasterized surfaces and update their positions without rerunning layout. Layer promotion is engine-specific; a transform or will-change hint does not guarantee its own layer. This fixture measures transformed geometry, not layer allocation.

Formal Syntax & Structure

css syntaxcss
transform: translateX(24px);

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>compositing-layer</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}#a{width:100px;height:40px;transform:translateX(24px)}</style><body><div id="a">Sample</div></body></html>
CSS Reference