Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

WebKit 7 min read Announcement mediumAdept

Introducing spatial CSS: A developer preview

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.

Assumes: CSS transformsCSS anchor positioningHTML model element

Related posts

  • A step into the spatial web: The HTML model element in Apple Vision Pro

    WebKit mediumAdept

    visionOS 26 enables the HTML `model` element by default in Safari on Apple Vision Pro, rendering USDZ 3D assets stereoscopically inline within web pages. The API exposes a `ready` Promise for load completion and a `stagemode="orbit"` attribute for built-in pinch-and-drag rotation. It also offers an `entityTransform` property that takes a `DOMMatrix` for custom translate/rotate/scale, plus `boundingBoxCenter`/`boundingBoxExtents` for fitting content. Lighting is controlled via an `environmentmap` attribute pointing to equirectangular HDR/EXR images with an `environmentMapReady` Promise, and animations use a media-like API (`play()`, `pause()`, `currentTime`, `playbackRate`, `autoplay`, `loop`).

  • News from WWDC24: WebKit in Safari 18 beta

    WebKit mediumAdept

    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. Headline additions include immersive WebXR on visionOS with transient-pointer input and hand tracking, the View Transitions API, CSS Style Queries for custom properties, and currentcolor and system color keywords in Relative Color Syntax. Further additions are display-property transitions, the safe alignment keyword in Flexbox, content-visibility, and unprefixed backdrop-filter. Mac web apps can now open matching links based on their manifest scope and support extensions, and the Fullscreen API on visionOS can present spatial photos and panoramas immersively.

  • How an Agent Built a 3D Paris Gallery by Chaining Two Hugging Face Spaces

    Hugging Face mediumAdept

    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. A coding agent chained an image-generation Space (ideogram4) with VAST-AI/TripoSplat to produce single-image 3D Gaussian splats of Paris monuments. It also handled the glue work: flipping Y-down outputs upright, auto-framing, compressing .ply to .ksplat (~3× smaller), building a Three.js viewer and deploying a static Space. Reusing the same pipeline for Japan and Egypt galleries took one prompt each, which the author offers as evidence for Mitchell Hashimoto's 'building block economy' applied to multimedia models.

  • Try out your website in the spatial web

    WebKit mediumAdept

    Websites generally need no special changes to work in Safari on visionOS, which runs the same WebKit engine. To test and debug them, install the visionOS simulator via Xcode 15 or Xcode 16 beta and attach Safari's Web Inspector on macOS to it, or pair a physical Apple Vision Pro with the Mac using a one-time PIN and inspect pages remotely. Feature flags in visionOS 1.2 let developers preview WebXR and the <model> element ahead of visionOS 2.

  • New WebKit Features in Safari 15.5

    WebKit easyNovice

    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. A long list of fixes covers CSS (`position: sticky`, `aspect-ratio`, `background-clip: text`), Web APIs, CSP, media/HLS playback, WebRTC, WebGL multisampling, WebAuthn spec alignment and Safari extensions.

The quest for software engineering knowledge.

Look:
Layout: