---
title: "CSS 'if' functions start to roll out"
publication: "Frontend Focus"
issue: 695
published_at: "2025-06-04"
canonical_url: "https://frontendfoc.us/issues/695"
---

Plus exploring the OKLCH ecosystem. |       

Together with [![AG Grid\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,e_trim,w_1280,h_326/e_make_transparent/co_white,e_outline:17/ak1lyph26nvgpusvrxli.png)](https://ag-grid.com/charts?utm_source=frontendfocus&utm_medium=newsletter&utm_campaign=frontendfocus-june-4th)        

🚀 **Frontend** Focus 

#​695 — June 4, 2025 | [Read on the web](https://frontendfoc.us/issues/695)      

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/bdhhoecb4yqn6wkjrkyv.jpg)](https://evilmartians.com/chronicles/exploring-the-oklch-ecosystem-and-its-tools)  

[Exploring the OKLCH Ecosystem and Its Tools](https://evilmartians.com/chronicles/exploring-the-oklch-ecosystem-and-its-tools) — A solid overview of [why you may want to start using OKLCH color](https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl) (for which [browser support](https://caniuse.com/mdn-css_types_color_oklch) is now very good), what the essential tools you need to know about are, and what best practices you need to be aware of. There’s an interesting related talk titled ‘[▶️ Programmable Colors: Bridging Design and Code](https://www.youtube.com/watch?v=kfVUlR9BnYQ&list=PLXDU_eVOJTx4xcCFrRpIjNdEgq_u3sxEs&index=10)’ that’s worth a watch too. 

Nazarova, Objartel, Turner (Evil Martians)   

[WebStatus.dev: Now with More Data, Deeper Insights, and a Clearer Path to Baseline](https://web.dev/blog/web-platform-dashboard-evolution?hl=en) — The open-source [Web Platform Status site](https://webstatus.dev) allows us to query and track various features and what browsers they play nice with. It’s had a notable update recently, with expanded feature coverage, usage timelines, mobile data, and more. Handy! 

Kadir Topal   [![\](https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/4e12f8a6.png)](https://ag-grid.com/charts?utm_source=frontendfocus&utm_medium=newsletter&utm_campaign=frontendfocus-june-4th) 

[AG Charts: The Best JavaScript Charting Library In The World](https://ag-grid.com/charts?utm_source=frontendfocus&utm_medium=newsletter&utm_campaign=frontendfocus-june-4th) — Create beautiful JavaScript Charts in minutes with our open-source library. Built by AG Grid, AG Charts has an intuitive, flexible API, 20+ series types and advanced features, including Financial Charts. Supports React, Angular & Vue. [Try for free](https://ag-grid.com/charts?utm_source=frontendfocus&utm_medium=newsletter&utm_campaign=frontendfocus-june-4th). 

AG Charts sponsor   

▶[CSS `if()` Functions & `reading-flow` (in Chrome 137)](https://www.youtube.com/watch?v=Apn8ucs7AL0) — A solid and straightforward demo of what we can do with the `if` function ([in just Chrome and Edge for now](https://caniuse.com/mdn-css_types_if)). Powerful stuff. The new `[reading-flow](https://developer.chrome.com/blog/reading-flow)` property is also quickly explained here. 

Una Kravets   

📖 If you want to dive a bit deeper into CSS `reading-flow` and `reading-order` then [Daniel Schwarz has a related read](https://css-tricks.com/what-we-know-so-far-about-css-reading-order/) over at CSS Tricks.    

⚡️ IN BRIEF 

- 🆕 As with each new month comes a [round up of the key changes and notable additions to the web platform](https://web.dev/blog/web-platform-05-2025?hl=en) from Rachel Andrew, including the aforementioned `if` function, Web Push, and more.
- 🪐 Here's an overview of the [changes and news from across the Astro ecosystem](https://astro.build/blog/whats-new-may-2025/) from the past month.
- 👁️ Got a keen eye for all things typography? Maybe [don't look at the tombstone](https://pimpmytype.com/pope-francis/) of the late Pope Francis.
- ✋ _The Browser Company_ [explains why it stopped developing _Arc_.](https://www.theverge.com/news/674603/arc-browser-development-stopped-dia-browser-company)      

📙 Articles, Opinions & Tutorials  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1749034842/xafrnpr8t0erbo1ddwri.png)](https://css-tricks.com/getting-creative-with-html-dialog/)  

[Getting Creative with HTML Dialog](https://css-tricks.com/getting-creative-with-html-dialog/) — As you can see above, Andy shares how to spruce up generic looking dialogue boxes with CSS — via animations, the `backdrop-filter` property, and more. 

Andy Clarke   

[IE6, AI, and The Future of Browsing the Web](https://agenticweb.substack.com/p/ai-future-web) — A new series on how AI is changing the web. This first entry posits that “_Chrome is the next IE6_”, and explores how Google’s supposed “_retreat from web standards signals a new era of browser stagnation_”. 

RL Nabors   

[Introducing Hope AI - Architecture Agent for Developers](https://bit.cloud/?utm_source=FrontEndFocus&utm_id=128&utm_medium=newsletter) — Compose high-quality professional software with AI for simplicity, speed and control. By Bit. 

Bit Cloud sponsor   

▶[The Three Ways JavaScript Frameworks Render the DOM](https://www.youtube.com/watch?v=0C-y59betmY) — The creator of the SolidJS framework looks at the different approaches frameworks take to render what they produce. A good look under the hood that isn’t _too_ complex. _(16 minutes.)_ 

Ryan Carniato   

[CSS Spotlight Effect](https://frontendmasters.com/blog/css-spotlight-effect/) — Because we can feed the current mouse position to CSS with a few lines of JavaScript we can build some neat interaction patterns. Amit highlights (pun intended) one such effect here “_that’s easy to create, simple to customize, and looks surprisingly slick_”. 

Amit Sheen  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1749037970/tyk7ov3hzyhxjgz9roil.jpg)](https://css-tricks.com/better-css-shapes-using-shape-part-2-more-on-arcs/)  

[Better CSS Shapes Using `shape()`: More on Arcs](https://css-tricks.com/better-css-shapes-using-shape-part-2-more-on-arcs/) — Temani continues spelunking into all things CSS shapes, this time exploring the arc command in detail. 

Temani Afif   

[No Server, No Database: Smarter Related Posts in Astro with Transformers.js](https://alexop.dev/posts/semantic-related-posts-astro-transformersjs/) — A clever technique that could be applied in numerous situations. 
Alexander Opalic   

[Designing for Neurodiversity](https://www.smashingmagazine.com/2025/06/designing-for-neurodiversity/) 
Vitaly Friedman    

🧰 Tools, Code & Resources   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/eyxaqf2yq0r1nitpjkyw.jpg)](https://github.com/sebastiancarlos/beachpatrol)  

[Beachpatrol: A CLI Tool to Automate Your Everyday Web Browser](https://github.com/sebastiancarlos/beachpatrol) — A higher level way to use Playwright on macOS or Linux to control a regular non-headless browser instance. It’s essentially an approach where you still want a visible browser you can use in a normal way but with added automation possibilities. 

Sebastian Carlos   

[🔐 Login Is Just the Start. Protect Your Flow from Real Threats](https://workos.com/radar?utm_source=cpff&utm_medium=newsletter&utm_campaign=q22025) — AuthKit provides a flexible login UI. Add WorkOS Radar to stop brute force, free trial abuse, and leaked credentials. 

WorkOS sponsor   

[Smooothy: A Smooth, Extensible Slider/Carousel Component](https://github.com/vallafederico/smooothy) — Try out some [demos here](https://smooothy.vercel.app/examples), which include customizations for keyboard control, parallax, speed, and there are implementations for React and Vue. 

Federico Valla  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1749029631/k7udlxczhk6iacy7ht7l.png)](https://www.glowui.com/icons)  

[Glow Icons: 440+ Open Source SVG Icons Made for Interfaces](https://www.glowui.com/icons) — Searchable and available in outline and solid formats. You can also download the icons as Figma files. 

Alexey Likhobabin   

[MiNi PhotoEditor: An Online WebGL Photo Editor with Effects, Filters, and Cropping](https://mini2-photo-editor.netlify.app/) — Includes some neat features like the before/after slider, lots of filter effects, and the ability to save/load some of the effects as ‘recipes’. [Repo here](https://github.com/xdadda/mini-photo-editor). 

MiNi   

[Bits UI: Headless Svelte Components to Build Your Own Component Library](https://bits-ui.com/) — Includes 40+ [open source](https://github.com/huntabyte/bits-ui), unstyled, and accessible components along with utilities, helpers, and lots of good documentation for implementation. 

Bits UI   

[Font Generator: Generate Fancy Text with Unicode Characters](https://fontgenerator.cool/) — Type some text and this tool will generate endless fancy font options in plain Unicode that you can copy and paste. Examples: 𝔽𝕣𝕠𝕟𝕥𝕖𝕟𝕕 𝔽𝕠𝕔𝕦𝕤, snɔoℲ puǝʇuoɹℲ, F͜͡r͜͡o͜͡n͜͡t͜͡e͜͡n͜͡d͜͡ F͜͡o͜͡c͜͡u͜͡s͜͡, etc. However, it's worth exercising caution over accessibility and how certain devices (like screen readers) will handle this. 

Font Generator    

📬 

**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/695/*|UID|*?ipx=t)
