Introducing spatial CSS: A developer preview
Apple's WebKit team has released a limited developer preview of a proposed spatial CSS API in Safari on visionOS 27.3, initially focused on working with 3D objects. Features include collecting multiple elements inside a spatial portal, transform to move models independently, position-anchor to snap models together, @environment-map syntax for managing lighting, portal-action:orbit for orbiting a scene, and requestVolumetricScene() to launch a connected volumetric scene. Developers can enable it on Vision Pro or the visionOS Simulator via Safari's CSS Portals feature flag.
AI-written summary, checked against the cited sources. How summaries work
