---
title: "Rolling the dice with random CSS"
publication: "Frontend Focus"
issue: 706
published_at: "2025-08-27"
canonical_url: "https://frontendfoc.us/issues/706"
---

Plus, testing your CSS know-how. |         

Together with [![Sentry logo\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,e_trim,w_350,h_100/e_make_transparent/co_white,e_outline:7/xdmchdxkka938lxfr86f.png)](https://blog.sentry.io/introducing-mcp-server-monitoring/?utm_source=frontendfocus&utm_medium=paid-community&utm_campaign=ai-fy26q3-mcp&utm_content=newsletter-mcp-server-monitoring-blog-learnmore)        

🚀 **Frontend** Focus 

#​706 — August 27, 2025 | [Read on the web](https://frontendfoc.us/issues/706)      

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/o7pec5rcjoa0vsnwyvpt.jpg)](https://webkit.org/blog/17285/rolling-the-dice-with-css-random/)  

🎲 [Rolling the Dice with CSS `random()`](https://webkit.org/blog/17285/rolling-the-dice-with-css-random/) — Until now there’s not been a way to create a random number directly with CSS — but the [`random()` function](https://www.w3.org/TR/css-values-5/#randomness) is now on the way (and can be tested in [the latest version of Safari Technology Preview](https://developer.apple.com/safari/resources/)). You’ll soon be able to create a random animation delay, layout content at a random place on the screen, create a random color, or anything you want — all without any JavaScript. 

Davis, Simmons, Nguyen   

💡 Following the `random()` preview being added to WebKit, Chris Coyier dedcided to [take things for a spin](https://frontendmasters.com/blog/very-early-playing-with-random-in-css/), finding the code to be "_quite simple and satisfying_".  [![\](https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/5ffe1c3c.png)](https://blog.sentry.io/introducing-mcp-server-monitoring/?utm_source=frontendfocus&utm_medium=paid-community&utm_campaign=ai-fy26q3-mcp&utm_content=newsletter-mcp-server-monitoring-blog-learnmore) 

[How to Monitor Your Freshly Minted MCP Server with Sentry](https://blog.sentry.io/introducing-mcp-server-monitoring/?utm_source=frontendfocus&utm_medium=paid-community&utm_campaign=ai-fy26q3-mcp&utm_content=newsletter-mcp-server-monitoring-blog-learnmore) — Built an MCP server? Learn how to see who's calling your server, catch broken integrations, and stop bot abuse. 

Sentry sponsor   

[Using the Custom Highlight API](https://frontendmasters.com/blog/using-the-custom-highlight-api/) — The [CSS Custom Highlight API](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Custom_Highlight_API) offers a way to style text ranges on a document using JavaScript to create the ranges, and CSS to style them. And, as of Firefox 140, all major browsers now support it. This could be great for in-page search or even dynamic syntax highlighting.. 

Chris Coyier     

⚡️ IN BRIEF 

- 🤨 A quick FYI from Eric Meyer: [No, Google didn't decide to kill Extensible Stylesheet Language Transformations](https://meyerweb.com/eric/thoughts/2025/08/22/no-google-did-not-unilaterally-decide-to-kill-xslt/) (XSLT).
- 🤖 Here's [a proposal from Vercel for adding inline LLM instructions](https://vercel.com/blog/a-proposal-for-inline-llm-instructions-in-html) directly in a HTML response.
- 🪟 Firefox has [added experimental PWA support on Windows](https://connect.mozilla.org/t5/firefox-labs/give-web-apps-in-firefox-a-try-on-labs-and-tell-us-what-you/td-p/101900) and is currently inviting feedback.
- 🦊 ...and version 142 of Firefox is available now. [Here's the developer-facing release notes](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/142).
- 🔎 There's now [an 'AI Assistance' panel being tested in Chrome DevTools](https://developer.chrome.com/docs/devtools/ai-assistance/network) — it can help analyze network requests.      

📙 Articles, Opinions & Tutorials   

[You’re Loading Fonts Wrong (and It’s Crippling Your Performance)](https://www.jonoalderson.com/conjecture/youre-loading-fonts-wrong/) — Jono provides a bit of background on web fonts and how they work before sharing how best to approach implementing them. 

Jono Alderson   [![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1756292494/xqhnth5zczu4vqsininn.png)](https://frontendmasters.com/blog/obsessing-over-smooth-radial-gradient-disc-edges/) 

[Obsessing Over Smooth `radial-gradient()` Disc Edges](https://frontendmasters.com/blog/obsessing-over-smooth-radial-gradient-disc-edges/) — Here’s how to get smooth edge discs with CSS radial gradients. No blurry edges or jaggies even when zooming, all thanks to something of an underdog media query. 

Ana Tudor   

[Designing Chrome's Built-in AI Web APIs](https://domenic.me/builtin-ai-api-design/) — Domenic, a member of the Chrome team at Google, shares some insights into how [the APIs around Chrome’s newest AI features](https://developer.chrome.com/docs/ai/built-in-apis) were designed. 

Domenic Denicola   

[Making Sense of CSS Length Units](https://blog.scottlogic.com/2025/08/22/css-length-units.html) — A concise overview of the various CSS length units available to us, explaining the differences between absolute and relative units, their appropriate use cases, along with a look at some of the more niche units at our disposal. 

Oded Sharon   

[Optimizing PWAs for Different Display Modes](https://www.smashingmagazine.com/2025/08/optimizing-pwas-different-display-modes/) — Progressive Web Apps are a solid way to make web-based apps feel native, but Declan warns that moving outside a typical browser environment carries with it potential usability issues. Here’s how to mitigate them, depending on what display mode is applied. 

Declan Chidlow   

[What Are OKLCH Colors?](https://jakub.kr/components/oklch-colors) — OKLCH is, relatively, one of the newer color models on the block, and its big claim is being much more accurate to the human eye. Here’s a quick primer. 

Jakub Krehel   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1756297575/bulaiicqlz1dwuizywup.png)](https://nerdy.dev/the-making-of-gradient.style)  

[The Making of gradient.style](https://nerdy.dev/the-making-of-gradient.style) — Adam shares the behind the scenes journey of creating a spec compliant [CSS gradient generator](https://gradient.style). Kinda fun to see the thought process laid out like this. 

Adam Argyle   

[The `interpolate-size` Property is a Great Example of Progressive Enhancement](https://piccalil.li/blog/the-interpolate-size-property-is-a-great-example-of-progressive-enhancement/) 
Andy Bell   

[Four Reasons to Stop using CSS Preprocessors](https://helloanselm.com/writings/4-reasons-to-stop-using-css-preprocessors) 
Anselm Hannemann    

🧰 Tools, Code & Resources   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1756283846/arvtt2alommqsebl2ruk.png)](https://github.com/Chainlift/liftkit)  

[LiftKit: A UI Framework Based on the Golden Ratio](https://github.com/Chainlift/liftkit) — This stands out from other UI frameworks by using a set of relative units for spacing, scaling, and symmetry. This helps avoid natural alignment problems inherent in most systems. More details in [the docs](https://www.chainlift.io/liftkit). 

Chainlift   

[Ready to Secure Your Backend Service Communication?](https://go.clerk.com/3bacAhZ) — Clerk M2M tokens are now available in public beta, authenticating requests between different machines within your backend infrastructure. 

Clerk sponsor   

[Uppy 5.0: A Powerful, Modular JavaScript File Uploader](https://uppy.io/) — Upload not just from local sources but also remote services like Dropbox or Instagram. Integrates with popular frameworks and supports resumable uploads too. [GitHub repo.](https://github.com/transloadit/uppy) 

Transloadit   

[JSON Editor: A JSON Schema Based Editor](https://github.com/json-editor/json-editor) — A fork of an older inactive project, this tool allows you to generate an HTML form from a JSON Schema. You can try it out on [this interactive demo](https://json-editor.github.io/json-editor/). 

JSON Editor  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1756286363/ckxyl3qkyhy3akyfzoap.png)](https://github.com/subframe7536/maple-font)  

[Maple Mono: An Elegant Open Source Monospace Font](https://github.com/subframe7536/maple-font) — This monospace font aims to fill some of the subtle features missing from other popular options, including support for the Nerd Fonts icon glyph aggregator. [Docs site is here](https://font.subf.dev/en/). 

Maple Mono    

🤔 ...and finally    

[CSS Questions](https://css-questions.com/) — A just for fun, multiple choice quiz to test your CSS knowledge. You can either go for the basic test of 20 questions, try out the comprehensive exam of 60 questions, or jump into themed topic questions. Covers things like pseudo-classes, cascade layers, container queries, and much more. _Good luck!_ 🫡 

Sunkanmi Fafowora    

📬 

**Got a new email address?** You can [change your email here](https://frontendfoc.us/edit_subscription/*|UID|*). 

--- 

**Bored of us?** Click [here to stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*). 

--- 

**Got a link for us?** Reply and tell us. We can't include everything but we'll take a look. 

--- 

Published by Cooper Press Ltd.
Curated by [Chris Brandrick](https://bsky.app/profile/brandrick.bsky.social) & [Peter Cooper](https://twitter.com/cooperx86).
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*)  

[Ipx.](https://frontendfoc.us/open/706/*|UID|*?ipx=t)
