---
title: "Introducing spatial CSS: A developer preview"
description: "Safari on visionOS 27.3 ships a developer preview of the proposed spatial CSS API, which routes 3D scene composition through declarative CSS built around the `<model>` element. `spatial: portal` turns a container into a shared 3D space where child models are moved with true 3D `transform`, snapped together via `position-anchor` and `position-context: anchor` against named empties exported from tools like Blender, and lit with reusable `@environment-map` rules using equirectangular HDR images. `portal-action: orbit` lets users rotate the scene, and `requestVolumetricScene()` pops the portal out into a live-linked volumetric scene in the user's space."
url: "https://swe.quest/articles/introducing-spatial-css-a-developer-preview-055662575217fccc"
canonical: "https://webkit.org/blog/18621/introducing-spatial-css-a-developer-preview/"
source: "WebKit"
published: "2026-11-16"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["css","browsers","frontend"]
---

# Introducing spatial CSS: A developer preview

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2026-11-16, 7 min read, Announcement. Original: [https://webkit.org/blog/18621/introducing-spatial-css-a-developer-preview/](https://webkit.org/blog/18621/introducing-spatial-css-a-developer-preview/)

## Summary

Safari on visionOS 27.3 ships a developer preview of the proposed spatial CSS API, which routes 3D scene composition through declarative CSS built around the \`\<model\>\` element. \`spatial: portal\` turns a container into a shared 3D space where child models are moved with true 3D \`transform\`, snapped together via \`position-anchor\` and \`position-context: anchor\` against named empties exported from tools like Blender, and lit with reusable \`@environment-map\` rules using equirectangular HDR images. \`portal-action: orbit\` lets users rotate the scene, and \`requestVolumetricScene()\` pops the portal out into a live-linked volumetric scene in the user's space. Because it is plain CSS, spatial layouts can respond to media queries and be animated or transitioned like any other property. The preview is enabled via the CSS Portals feature flag, and WebKit is asking developers for feedback.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- CSS transforms ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- CSS anchor positioning ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- HTML model element

## Keywords

spatial CSS, Safari, visionOS, WebKit, model element, position-anchor, environment-map, requestVolumetricScene

## Related posts

- [A step into the spatial web: The HTML model element in Apple Vision Pro](https://swe.quest/articles/a-step-into-the-spatial-web-the-html-model-element-in-apple-vision-pro-20ba85e34f088d57.md): WebKit · 2025-06-27 · Medium · 7 min read · Browsers, Frontend
  visionOS 26 enables the HTML \`model\` element by default in Safari on Apple Vision Pro, rendering USDZ 3D assets stereoscopically inline within web pages.
- [News from WWDC24: WebKit in Safari 18 beta](https://swe.quest/articles/news-from-wwdc24-webkit-in-safari-18-beta-f6c733f3db9a46ad.md): WebKit · 2024-06-10 · Medium · 34 min read · Browsers, CSS, Frontend
  Safari 18 beta ships 48 new web platform features, 18 deprecations and 174 bug fixes across iOS 18, iPadOS 18, visionOS 2 and macOS Sequoia betas.
- [How an Agent Built a 3D Paris Gallery by Chaining Two Hugging Face Spaces](https://swe.quest/articles/how-an-agent-built-a-3d-paris-gallery-by-chaining-two-hugging-face-spaces-854f07cf2fac2554.md): Hugging Face · 2026-06-09 · Medium · 9 min read · AI agents, AI for coding, Computer vision, API design
  Every Gradio Space on Hugging Face now exposes a plain-text agents.md describing its API schema, call/poll endpoints, file upload and auth, so a coding agent can drive a Space with no client library.
- [Try out your website in the spatial web](https://swe.quest/articles/try-out-your-website-in-the-spatial-web-5164ff9af4fcad84.md): WebKit · 2024-06-12 · Medium · 6 min read · Browsers, Developer tools, Debugging
  Websites generally need no special changes to work in Safari on visionOS, which runs the same WebKit engine.
- [New WebKit Features in Safari 15.5](https://swe.quest/articles/new-webkit-features-in-safari-15-5-b4bbee299beae982.md): WebKit · 2022-05-16 · Easy · 5 min read · Browsers, CSS, Accessibility, Application security
  Safari 15.5 is mostly a polish and bug-fix release, adding three developer-facing technologies: the HTML \`inert\` attribute, which makes an element non-interactive and hides it from assistive technologies; the CSP Level 3 \`worker-src\` directive for restricting worker script sources; and WKWebView \`minimumViewportInset\`/\`maximumViewportInset\` APIs so apps can support the new CSS small, large and dynamic viewport units.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
