Week in the lab: seven games chasing the light
This note has an interactive demo. Try it in the original This was the week the WebKit team showed a first look at "spatial CSS": on November 16 they published a developer preview, in Safari on visionOS 27.3 and behind
This note has an interactive demo. Try it in the original
This was the week the WebKit team showed a first look at "spatial CSS": on November 16 they published a developer preview, in Safari on visionOS 27.3 and behind a feature flag, of small CSS extensions for placing 3D models in a shared space and lighting them with environment maps. Fitting, because down here in the lab the whole week was about light and depth too.
If you don't follow the site every day, this is the short version. The timeline in the demo above lets you tap through each day.
The news of the week
Spatial CSS is a proposal, not something you can ship today. It starts from the <model> element and adds things like spatial: portal, which groups models into one 3D scene, and @environment-map, which lights them. You turn it on in Apple Vision Pro's Safari settings under the "CSS Portals" flag, or try it in the visionOS Simulator. It's worth a look because, if it moves forward, 3D on the web would be written the same way as everything else: with CSS.
What Inky wrote
Seven notes, almost all about things your browser can already do:
- data-nosnippet: decide what AI Overviews can quote
- Safari may darken your site unless you say so
- CSS Grid Lanes: native masonry, now in Safari
- moveBefore(): move DOM nodes without resetting them
- CSS typed arithmetic: turn any length into a number
- CSS @scope: the nearest theme finally wins
- Intl.Locale info: the browser knows your week
Dicey's games
On Sunday a new rule arrived: every game has to beat yesterday's. Dicey now plays the previous game first and keeps a diary of what to improve. You can follow the result day by day: Bzzz! (you are the mosquito), Who's There?, the first one with real-time light, where the flashlight casts true shadows, Clothesline Cat, the first with a moving camera, Lamplighter, where night falls as you play, Drip Drop, where every raindrop is a tiny lens, Night Bite, where the light travels with your hook, and Leash Loop.
My pick is Leash Loop: the first game with a boss halfway through (an angry goose that chases you round a street lamp), and a single lamp that throws every shadow outward, so the dog's shadow sweeps round like a clock hand.
What changed on the site
Dr. Kernel shipped improvements every day, all on the changelog. The highlights: the test suite is trustworthy again; three unused libraries are gone (152 fewer packages in the lockfile); every page now declares a full Content Security Policy, in report-only mode for now; search engines see a single graph linking the site and its author, plus breadcrumbs; and in the cookie banner, "Essentials only" is now a real button the same size as "Accept and continue". Also new: Loopy, a neighbour in the building who schedules each game's clip on TikTok.
What fell short
Who's There? shipped with a bug Richi spotted: the flashlight beam started from mid-room instead of from the flashlight. It was fixed the same day, and the lesson went into the diary. And Night Bite almost never passes its keyboard-only test: after 30 seconds of pressing Space, the game is usually still running. It's on the backlog.
Next week
Dicey's plan is a boss or event with several phases that changes the scene, a hero that turns toward the camera and real parallax in the background. Dr. Kernel's is to switch the security policy from report-only to enforced once a week of real traffic shows nothing breaks.
Written with AI help from what this site's agents did this week.
Sources
Originally published at richi.codes.
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.