<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh" -->

---
title: Introducing spatial CSS: A developer preview | daily.dev
description: Safari on visionOS 27.3 ships a limited developer preview of the proposed spatial CSS API for working with 3D objects via the <model> element. New syntax...
canonical: https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing spatial CSS: A developer preview | daily.dev
og:description: Safari on visionOS 27.3 ships a limited developer preview of the proposed spatial CSS API for working with 3D objects via the <model> element. New syntax...
og:url: https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh
og:image: https://api.daily.dev/og/posts/VGGKFyTEh.png
og:image:alt: Introducing spatial CSS: A developer preview
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing spatial CSS: A developer preview

**[WebKit](https://daily.dev/sources/webkit)** · 8 min read · 2 upvotes · 0 comments

## Summary

Safari on visionOS 27.3 ships a limited developer preview of the proposed spatial CSS API for working with 3D objects via the <model> element. New syntax includes spatial:portal to group elements in a shared 3D space, true 3D transform support, position-anchor for snapping models together, @environment-map for lighting, portal-action:orbit for rotating scenes, and requestVolumetricScene() to launch content outside the browser window. Enable it via Settings > Apps > Safari > Advanced > Feature flags > CSS Portals. The <model> element itself is now generally available in Safari 27 on all platforms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://webkit.org/blog/18621/introducing-spatial-css-a-developer-preview>

## Questions this post answers

### How do I enable the spatial CSS feature preview in Safari on visionOS 27.3?

Go to Settings, then Apps, then Safari, then Advanced, then Feature flags, and turn on CSS Portals. This also works in the visionOS Simulator, which can be installed through Xcode. A demo page is available to try the spatial CSS features once the flag is enabled, including portal grouping, 3D transforms, and anchored positioning of model elements.

_developers testing visionOS web features can track platform API changes like this on daily.dev._

### What CSS properties does the spatial CSS preview add for arranging 3D model elements?

The preview adds spatial:portal to group model elements into a shared 3D space, a true 3D transform using DOMMatrix to move and rotate models independently, position-anchor with position-context:anchor to snap models to specific points on other models, @environment-map for shared lighting via 360-degree HDR images, and portal-action:orbit to let users rotate the scene.

_developers evaluating whether to adopt spatial CSS can follow spec changes like this on daily.dev._

### How do I show a 3D model outside the browser window in visionOS Safari?

Call requestVolumetricScene() on a portal element from a user action, such as a button click, to launch a Connected Volumetric Scene that the user can place anywhere in their space. The browser page and the volumetric scene stay linked live, so JavaScript can add, remove, or move objects in the scene after launch.

_developers building spatial web experiences can keep up with new browser APIs like this on daily.dev._

## Similar posts on daily.dev

- [Web Technology Sessions at WWDC26](https://daily.dev/posts/web-technology-sessions-at-wwdc26-stxxnbso1) · WebKit · 36 upvotes · 2 comments
- [WebKit supports interactive-widget … and hopefully Safari will too?](https://daily.dev/posts/webkit-supports-interactive-widget-and-hopefully-safari-will-too--hig21dyrd) · Bram.us · 9 upvotes · 3 comments
- [WebKit features for Safari 26.3](https://daily.dev/posts/webkit-features-for-safari-26-3-bitqud2u2) · WebKit · 1 upvotes · 0 comments
- [Issue \#745: Safari's 58 new features — Frontend Focus](https://daily.dev/posts/issue-745-safari-s-58-new-features-frontend-focus-4cvtdr1ox) · Frontend Focus · 3 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#3d](https://daily.dev/tags/3d), [#safari](https://daily.dev/tags/safari), [#spatial-computing](https://daily.dev/tags/spatial-computing), [#visionos](https://daily.dev/tags/visionos)

[View this post on daily.dev](https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing spatial CSS: A developer preview","url":"https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh"},"datePublished":"2026-11-16T23:54:39.927Z","dateModified":"2026-11-17T00:11:28.369Z","description":"Safari on visionOS 27.3 ships a limited developer preview of the proposed spatial CSS API for working with 3D objects via the \u003cmodel\u003e element. New syntax...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/07f3780bd9f723b65a937d580f6e324c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/07f3780bd9f723b65a937d580f6e324c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"WebKit","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"WebKit","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/webkit","url":"https://daily.dev/sources/webkit"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,3d,safari,spatial-computing,visionos","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"WebKit","item":"https://daily.dev/sources/webkit"},{"@type":"ListItem","position":3,"name":"Introducing spatial CSS: A developer preview"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-spatial-css-a-developer-preview-vggkfyteh#faq","mainEntity":[{"@type":"Question","name":"How do I enable the spatial CSS feature preview in Safari on visionOS 27.3?","acceptedAnswer":{"@type":"Answer","text":"Go to Settings, then Apps, then Safari, then Advanced, then Feature flags, and turn on CSS Portals. This also works in the visionOS Simulator, which can be installed through Xcode. A demo page is available to try the spatial CSS features once the flag is enabled, including portal grouping, 3D transforms, and anchored positioning of model elements. developers testing visionOS web features can track platform API changes like this on daily.dev."}},{"@type":"Question","name":"What CSS properties does the spatial CSS preview add for arranging 3D model elements?","acceptedAnswer":{"@type":"Answer","text":"The preview adds spatial:portal to group model elements into a shared 3D space, a true 3D transform using DOMMatrix to move and rotate models independently, position-anchor with position-context:anchor to snap models to specific points on other models, @environment-map for shared lighting via 360-degree HDR images, and portal-action:orbit to let users rotate the scene. developers evaluating whether to adopt spatial CSS can follow spec changes like this on daily.dev."}},{"@type":"Question","name":"How do I show a 3D model outside the browser window in visionOS Safari?","acceptedAnswer":{"@type":"Answer","text":"Call requestVolumetricScene() on a portal element from a user action, such as a button click, to launch a Connected Volumetric Scene that the user can place anywhere in their space. The browser page and the volumetric scene stay linked live, so JavaScript can add, remove, or move objects in the scene after launch. developers building spatial web experiences can keep up with new browser APIs like this on daily.dev."}}]}
```

