November 28, 2026
What happened
On 16 November 2026 the WebKit blog published an article by Brandel Zachernuk about a preview of spatial CSS. The author calls it a "proposed API" and a limited feature preview: it focuses on 3D objects inserted through the <model> element. The <model> element itself is available in Safari 27 on all platforms, but the spatial CSS preview works only in Safari on visionOS 27.3.
According to WebKit, the idea is "a lot of small tweaks to existing syntax": control of spatial content moves into declarative CSS. So it can be influenced with media queries (aspect ratio, color theme, reduced motion) and numeric parameters can be animated.
How it works
The preview includes six capabilities:
spatial: portal. Turns a container, for example a<div>, into a shared three-dimensional space for its children.- Spatial
transform. The ordinarytransformproperty inside a portal acts as a true 3D transform. In WebKit's example, models are shifted with commands liketranslateX(-50cm). position-anchorandposition-context: anchor. Attach one model to anchor points on another. The<model>element cannot contain nested elements, so WebKit borrows the anchor idea from 2D CSS. Anchor points can be animated.@environment-map. A shared named environment for the scene, modeled on@keyframes. The preview supports 360° HDR images. Previously the environment map was set by an HTML attribute on<model>.portal-action: orbit. Lets the user rotate the scene in place. WebKit allows that other modes, such aspan-xandpan-y, may come later.requestVolumetricScene(). A JavaScript method that, on a user action such as a click, moves the scene out of the browser window into the space around the person. The page keeps updating the scene.
To try it you need an Apple Vision Pro or the visionOS Simulator from Xcode. The feature is enabled in Safari settings: Settings > Apps > Safari > Advanced > Feature flags > CSS Portals. WebKit attached a demo page with a puzzle game.
What this means for a designer and a client
For most websites nothing needs to change now: WebKit says plainly that there is "a long journey ahead" and names no general release date. The specification is published as a draft (drafts.csswg.org).
The more important point for a designer is the direction: 3D content on a page is described with the same tools as ordinary layout. A model could be adapted to the color theme or the "reduced motion" mode with the same media queries as the rest of the interface. For a client this matters for now only in projects where the site or product is aimed at Vision Pro.
What to watch for
- The features work only in Safari on visionOS 27.3 and only with the flag enabled; do not rely on them in production projects.
- This is a proposal in a specification, and the syntax may change. The
<model>element is already available in Safari 27 on all platforms, but that is a separate feature. - WebKit asks developers to send feedback through bugs.webkit.org.
- The demo used Blender for 3D assets, but that is an example, not a requirement.