Skip to main content
search

Spatial CSS is a new proposal for something web designers have never quite had: a way to place real 3D objects in a page using style rules. WebKit, the engine behind Safari, published a developer preview on November 16, 2026.

It is early, and it only runs in one place for now. Still, it is worth an hour of your attention, because it shows how the web may handle depth once headsets and 3D content are ordinary. This guide explains the six main ideas in plain language. It follows our look at another fresh CSS feature, the random() function.

Key takeaways

  • Spatial CSS lets several 3D models share one space on a page and be positioned with CSS.
  • The preview runs in Safari on visionOS 27.3 behind a feature flag called CSS Portals.
  • It builds on the model element, which is available in Safari 27 on all platforms.
  • It is a proposal. No other browser has it, and the details can change.

1

Browser engine with a spatial CSS preview so far: WebKit, in Safari on visionOS 27.3, behind a flag that is off by default (WebKit blog).

What Spatial CSS Is

WebKit describes the release as “a limited feature preview of the proposed spatial CSS API.” The focus is 3D objects shown through the HTML model element.

Today, each model on a page sits in its own box, like a small window onto a 3D object. The proposal lets models share a space, relate to each other, and respond to light, all from a stylesheet.

1. A Portal Makes a Shared 3D Space

The first idea is the portal. Setting spatial: portal on an ordinary element, such as a div or figure, turns it into a shared 3D space for the models inside it.

Think of it as a display case. Everything in the case exists in the same space and can be arranged together.

2. Transforms Become Truly 3D

Inside a portal, the familiar transform property moves, rotates, and scales each model independently in three dimensions. WebKit’s example places a board in the middle and slides two blocks to either side.

For designers, this is the comfortable part. It is the same property used for 2D layout tricks, with depth added.

Six building blocks of the spatial CSS developer preview from WebKit
The main pieces of the preview, from the WebKit blog. Summary by Momentum Hub.

3. Anchors Snap Models Together

A model cannot contain another model, so the proposal borrows from CSS anchor positioning. One model exposes a named point with anchor-name. Another attaches to it with position-anchor.

WebKit’s demo is a children’s shape puzzle, where a block drops into the matching hole on a board. The stylesheet describes the relationship, and the browser handles the placement.

4. Environment Maps Light the Scene

Lighting decides whether a 3D object looks real or pasted on. A new @environment-map rule defines a reusable lighting setup from a 360-degree HDR image, and an environment-map property applies it.

That means the mood of a scene, warm, cool, or dramatic, becomes a style choice, just as a color palette is.

5. Orbit Lets Visitors Turn the Scene

Setting portal-action: orbit lets a visitor rotate the whole scene in place. It is the only interaction mode in the preview. WebKit says others, such as panning, may come later.

6. A Scene Can Leave the Page

The last piece is one JavaScript method, requestVolumetricScene(). Called from a user action such as a click, it moves the portal’s contents out of the browser window and into the room around the visitor.

On a headset, that is the moment a product on a page becomes an object on your desk.

A Simplified Sketch

This sketch shows the general shape of the idea. It is based on the properties WebKit describes, so check the post for exact syntax before you test:

<figure class="world">
  <model src="board.usdz"></model>
  <model class="block" src="block.usdz"></model>
</figure>

.world { spatial: portal; portal-action: orbit; }
.block { transform: translateX(200px); }

How to Try the Preview

  1. You need an Apple Vision Pro on visionOS 27.3, or the visionOS Simulator installed through Xcode.
  2. Open Settings, then Apps, Safari, Advanced, and Feature flags.
  3. Turn on CSS Portals.
  4. Visit the demo linked from the WebKit post.
  5. Send feedback or file bugs at bugs.webkit.org.

No headset? You can still learn the foundation. The model element works in Safari 27 on Mac, iPhone, and iPad.

Limits and Open Questions

  • It is a single-engine preview. Other browsers have not shipped it.
  • The specification, CSS Spatial Level 1, is a draft. Names and behavior may change.
  • The preview covers model content only.
  • Environment maps are limited to 360-degree HDR images, and orbit is the only action.
  • Accessibility guidance for spatial content is still thin, so plan fallbacks.

What Designers Can Do Now

  • Add one model to a product or portfolio page and see how it performs.
  • Prepare lightweight 3D assets and decide who owns them in your team.
  • Write fallbacks first: a good image and description for every 3D object.
  • Think in layers of depth, the way squircles made designers think about corner curves.
  • Follow the draft and comment while the syntax is still open.

The Bigger Picture: Depth as a Style Choice

The web’s history is a slow move of design decisions from code into CSS: layout, animation, color, and now, perhaps, space. If spatial CSS matures, placing an object in a room could be as declarative as centering a heading.

That raises design questions more than technical ones. What deserves to be 3D? How do you guide attention without a flat frame? Our pieces on emotional AI design and AI and automation in design touch the same theme: new capabilities need new restraint.

Quick Questions, Answered

Can I use spatial CSS on a normal website today? Not in production. It is a flag-gated preview in Safari on visionOS 27.3.

Do I need to learn a 3D engine? No. The proposal uses CSS properties and one JavaScript method.

Will other browsers adopt it? Unknown. It is a proposal in draft form.

Final Thoughts: Worth Watching, Not Yet Shipping

Spatial CSS is a preview of an idea, not a tool for next week’s project. Learn the model element now, keep fallbacks strong, and watch how the draft evolves. If the web does gain a third dimension, it will help to have started thinking in it early.

Obada Kraishan

A Computational Social Scientist, Research Scholar, and Software Engineer specializing in machine learning, computational methods, and full-stack development. He leverages these skills to advance research and create innovative web solutions.