Weekly Digest // STYLING — Week 47-2026
paletteWeekly Report

Caret color, random values and spatial CSS | Week 47 Styling

Test how a cursor color travels beyond a form, choose which CSS values share a random seed, and explore WebKit’s flagged spatial preview on visionOS.

calendar_todaysummarizeWeek 47-2026
TAG: CSS FEATUREREAD_TIME: 23_MIN

The CSS caret-* properties and custom caret accessibility

Changing the color of a text cursor can affect someone who never types into a field. Sara Soueidan shows how caret browsing lets people move through ordinary page text with the arrow keys, and how a global caret-color declaration changes that navigation cursor as well as the insertion cursor. In her focus example, a custom insertion cursor needs 3:1 contrast with its background if it supplies the only sufficiently visible focus indicator. A general reduced-motion preference can also miss a separate operating-system choice to stop the cursor blinking. Soueidan demonstrates how to scope a color change to editable areas and recommends giving people a way to stop custom animation.
CSS FEATURE4:06

CSS that tells you when you're using it wrong

Kevin Powell shows what happens when a developer uses a card component and forgets the heading it was designed to contain. A CSS rule draws an outline around the card, and someone inspecting the element can read an explanation of the missing heading beside the rule. Powell applies the same idea to images missing an alt attribute and to a layout that expects a header, main region and footer but receives an extra child. These checks give the person assembling the page an immediate clue while the markup is still in front of them. He credits Heydon Pickering for the idea and keeps the team’s later accessibility tests in the workflow.
AI_INFOGRAPHIC
CSS that tells you when you're using it wrong — infographic
TAG: CSS FEATUREREAD_TIME: 7_MIN

Introducing spatial CSS: A developer preview

WebKit’s developer preview lets Safari on visionOS 27.3 arrange several models in a shared space using CSS. A container with spatial: portal gives the models a common scene, while position-anchor can align a puzzle piece with a named point in the board asset. The puzzle shows how an author can change lighting across the scene and let a visitor rotate it. Following a user action, requestVolumetricScene() can move the scene outside the browser window while the page continues to update its objects. Trying the proposed features requires enabling the CSS Portals flag on Vision Pro or in the visionOS simulator.
TAG: ARCHITECTUREREAD_TIME: 11_MIN

Moving Theme Selection From LocalStorage To Cookies With HTMX And ColdFusion

Ben Nadel’s blog now offers three explicit theme settings in its footer for light mode, dark mode and following the system. Selecting a theme updates the page immediately, while a form sends the choice to a ColdFusion endpoint that sets a cookie. On the next visit the server can put the theme in the initial HTML, so the browser does not have to change it after the page arrives. Choosing the system setting clears both the cookie and the explicit theme on the page. The form still works without the JavaScript enhancement, although it takes the reader back to the homepage. Nadel also leaves open whether rapid clicks could apply cookie responses in a different order from the visible changes.
TAG: CSS FEATUREREAD_TIME: 14_MIN

Understanding CSS random()

Mat Marquis wanted handwritten margin notes to sit at slightly different angles while keeping each note steady as the layout changed. His examples trace how CSS random() chooses a seed by default for a particular element, property and position within that property’s value. In a margin shorthand, introducing a second random call can therefore give the end margin a different value even when both calls use the same bounds. An explicit key and scope let an author choose which calls share a seed. The fixed option makes it possible to preview a specific point in a range while tuning the design.
summarizeDigest_Summary

A text cursor does two jobs. It marks where the next character will appear in a field, and in caret browsing it shows where a reader is moving through ordinary text. Sara Soueidan’s examples show why a color chosen against an input background can become hard to see elsewhere on the page.

For an author styling a cursor, the useful question is where the change should apply. Scoping caret-color to editable regions preserves the browser’s choice in the rest of the text. In Mat Marquis’s handwritten margin notes, the same question arises with CSS random() when two calls need to share a seed or one note needs to keep its angle.

Ben Nadel’s theme switch raises a question about when a choice should apply. The page changes as soon as someone selects light or dark, while the server stores a cookie it can read when rendering the next page. Selecting the system setting clears the preference, and rapid changes leave a possible race between the visible theme and the stored choice.

WebKit takes that question into three dimensions. In its developer preview, a puzzle piece can use a named point in the board model to find its place, and both models share the scene’s lighting. Running the example requires the CSS Portals flag in Safari on visionOS, which sets a clear limit on where teams can try the proposed feature.

Kevin Powell gives an outline a different audience. His development rule flags a card that lacks the heading its author intended, and the explanation is available beside the rule in the inspector. That makes the missing structure easier for a developer to spot before the team runs its accessibility tests.

Key Takeaways
  • Try the navigation cursor on the page backgrounds outside your form.
  • Give random calls a shared seed only when their visual choices belong together.
  • Test the spatial puzzle with the preview flag enabled on a supported visionOS environment.