Apple’s WebKit team announced a developer preview of the proposed spatial CSS API for Safari on visionOS 27.3, focused on adding 3D objects to web pages via the <model> element.
The preview introduces several new CSS features: spatial:portal for grouping elements, transform for independent movement, position-anchor for snapping models together, @environment-map for lighting effects, portal-action:orbit for orbiting, and requestVolumetricScene() for launching volumetric scenes. The <model> element itself is now available in Safari 27 on all platforms — macOS, iOS and visionOS.
To enable the spatial CSS preview on Vision Pro or the visionOS Simulator, developers can go to Settings > Apps > Safari > Advanced > Feature flags > CSS Portals. Apple has also published a demo page to let developers experience the features.
Why it matters
In our view, spatial CSS signals how Apple wants developers to treat the web as a native canvas for Vision Pro experiences. By bringing 3D models and spatial interactions to Safari, the company is seeding the ecosystem for spatial computing content without requiring a separate app — a move that could accelerate adoption of the platform if developers build on it.
