Introducing spatial CSS: a developer preview

Title “Introducing spatial CSS: A developer preview” in a WebKit puzzle playground window next to code and a 3D board with octagon, star, cross, and triangle pieces, by a snowy lake.

Brandel Zachernuk presents a preview of the proposed spatial CSS API in Safari on visionOS 27.3, behind the CSS Portals flag. It extends existing syntax for 3D <model> elements: spatial: portal makes an element a shared 3D space, transform moves models inside it, position-anchor attaches one model to another, @environment-map sets lighting from HDR images, and portal-action: orbit lets users rotate the scene.

webkit.org/blog/18621/introducing-spatial-css-a-developer-preview