---
title: "An introduction to functions in CSS"
publication: "Frontend Focus"
issue: 682
published_at: "2025-03-05"
canonical_url: "https://frontendfoc.us/issues/682"
---

Plus what even is a 'web page', and what you need to know about invoker commands. |       

Together with [![Frontend Masters logo\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,w_300,h_70/e_make_transparent/co_white,e_outline:5/nk0tfdvalivacz8rw7rt.png)](https://frontendmasters.com/courses/pro-css/?utm_source=email&utm_medium=frontendfocus&utm_content=procss)        

🚀 **Frontend** Focus 

#​682 — March 5, 2025 | [Read on the web](https://frontendfoc.us/issues/682)      

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/grq249uhvscfkafefket.jpg)](https://css-tricks.com/functions-in-css/)  

[Functions in CSS?](https://css-tricks.com/functions-in-css/) — We can’t use custom CSS functions in production _just_ yet, but this early look at how they’re [currently being prototyped](https://www.bram.us/2025/02/09/css-custom-functions-teaser/) in Chrome Canary offers a glimpse at the future capabilities (arguments, type-checking, etc). 

Juan Diego Rodríguez   [![\](https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/737ed7cd.png)](https://frontendmasters.com/courses/pro-css/?utm_source=email&utm_medium=frontendfocus&utm_content=procss) 

[Write CSS Like a Pro](https://frontendmasters.com/courses/pro-css/?utm_source=email&utm_medium=frontendfocus&utm_content=procss) — Kevin Powell shares how to create a responsive website from scratch using modern CSS features (such as nesting, utility classes, custom properties, and more). This detailed video course also dives into adding additional polish via animations, view transitions, and more. 

Frontend Masters sponsor   

[Views on 'Views'](https://hidde.blog/views/) — Discussions are underway to potentially change the definition of a ‘web page’ to best accommodate the various contexts in which we can now interact with web content (such as in native apps or VR). One such suggestion is to use ‘view’. 

Hidde de Vries   

▶[Everything You Need to Know About Invoker Commands](https://londonwebstandards.org/talks/everything-you-need-to-know-about-invoker-commands/) — [`command`](https://caniuse.com/mdn-html_elements_button_command) and [`commandfor`](https://caniuse.com/mdn-html_elements_button_commandfor) attributes are a brand new HTML web platform feature coming later in 2025. Here’s everything you need to know about them, plus some things you really don’t. 

Keith Cirkel     

⚡️ IN BRIEF 

- 🤔 Following [some backlash](https://connect.mozilla.org/t5/discussions/information-about-the-new-terms-of-use-and-updated-privacy/m-p/87735/highlight/true#M33600), Mozilla has [updated its Firefox terms](https://thehackernews.com/2025/03/mozilla-updates-firefox-terms-again.html) on how it manages and uses user data.
- 🧙 Robin Lord has created ['Divided we Fall', an interactive browser-based game](https://divided-we-fall.therobinlord.com/) for learning HTML and CSS.
- ✨ Opera is [adding a native AI agent](https://techcrunch.com/2025/03/03/opera-announces-a-new-agentic-feature-for-its-browser/) to its browser.
- 🎟️ [Tickets for CSS Day 2025](https://cssday.nl) (June, Amsterdam) are on sale, with speakers including Adam Argyle, Miriam Suzanne, Chris Coyier, and others.
- 📑 The complete ebook of the [entire 2024 Web Almanac](https://cdn.httparchive.org/almanac/ebooks/web_almanac_2024_en.pdf) is now available [PDF].      

📙 Articles, Opinions & Tutorials  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1741170808/tnadqpdgpabjsjgcyv2i.png)](https://cloudfour.com/thinks/truth-lies-and-progress-bars/)  

[Truth, Lies and Progress Bars](https://cloudfour.com/thinks/truth-lies-and-progress-bars/) — Yeah, sometimes loading/progress indicators lie because demonstrating _some_ amount of forward momentum gives users oft-needed confidence that things are continuing as intended. There’s a few things we can do to enhance that experience — as Tyler touches on here. 

Tyler Sticka   

[Trusting AI with My Images Wasn't Easy](https://dri.es/trusting-ai-with-my-images-was-not-easy) — We shared last week how Dries was [experimenting with various LLMs for writing alt-text](https://dri.es/comparing-local-llms-for-alt-text-generation) for thousands of images. Here he reflects on the effort, concluding that “_sometimes, the best way to improve is to step aside and let a tool do the job better_” 

Dries Buytaert   

[Instrument, Monitor, Fix: A Hands-On Debugging Class](https://sentry.io/resources/instrument-monitor-fix-workshop/?utm_medium=paid-community&utm_source=frontendfocus&utm_campaign=fy26q1-workshop&utm_content=workshop-register) — Join us for a hands-on session where you’ll build it, watch it break, debug it, and go from “no idea what’s wrong” to fixing issues. 

Sentry sponsor   [![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1741175758/vqvzg98agsfg9i1kqeah.png)](https://tympanus.net/codrops/2025/03/03/css-meets-voxel-art-building-a-rendering-engine-with-stacked-grids/) 

[CSS Meets Voxel Art: Building a Rendering Engine with Stacked Grids](https://tympanus.net/codrops/2025/03/03/css-meets-voxel-art-building-a-rendering-engine-with-stacked-grids/) — Another great tutorial from Codrops, this time showing how transforms, perspective, and stacked grids can create a fully addressable 3D space, pushing the boundaries of just what’s possible with pure CSS. You can [create your own voxel creations here](https://voxels.layoutit.com/). 

Agustin Capeletto   

⭐️ [Building a CSS-Only Star Rating Component](https://css-tricks.com/a-css-only-star-rating-component-and-more-part-1/) — A tutorial you’ve no doubt seen countless times, but typically relying on a little bit of JavaScript. Temani shares a strictly CSS-only approach. 

Temani Afif   

[Fixing `rowspan=0` on Tables on WebKit](https://www.otsukare.info/2025/02/21/rowspan-zero-table) — Curious as to how a browser bug gets fixed? This post is a detailed walkthrough of that process. 

Karl Dubost   

[A Chrome on Android Edge-to-Edge Migration Guide](https://developer.chrome.com/docs/css-ui/edge-to-edge) — Bramus shares an update regarding edge-to-edge display support in Android, and how to migrate your site to support this feature – especially if you’re using `position: fixed` content at `bottom: 0`. 

Bramus Van Damme (Google)   

[Building Websites with 'LLMs'](https://blog.jim-nielsen.com/2025/lots-of-little-html-pages/) — That’s _(L)ots of (L)ittle ht(M)l page(S)_ by the way. 😜 Jim shares an approach for building pages with less reliance on JavaScript-injected content. 

Jim Nielsen   

[The Case for Minimal WordPress Setups: A Contrarian View on Theme Frameworks](https://www.smashingmagazine.com/2025/03/case-minimal-wordpress-setups-contrarian-view-theme-frameworks/) — Kevin thinks modern frameworks “_cause far more problems than they solve_” — as such, he asks why they’re so popular, and whether they really benefit developers in the long run? 

Kevin Leary   

[Using AI in the Browser for Typo Rewriting](https://www.raymondcamden.com/2025/02/27/using-ai-in-the-browser-for-typo-rewriting) — A poke around some of Chrome’s newest AI features. 
Raymond Camden   

[Using & Styling the `details` Element](https://css-tricks.com/using-styling-the-details-element/) 
Geoff Graham      

🧰 Tools, Code & Resources    

[Astro 5.4: A Picture-Perfect Release](https://astro.build/blog/astro-540/) — The popular content site framework introduces several key improvements, including remote image optimization in Markdown, experimental responsive image support in Markdown, new configuration helpers and more. 

Matt Kane   

[Kibo UI: A Registry of Accessible Components Designed to Use with `shadcn/ui`](https://www.kibo-ui.com/overview) — A modest set of about 20+ components that use the shadcn/ui CSS variables and they work well as building blocks for more complex components. 

Hayden Bleasel   

[AI That Actually Understands Your Entire Codebase](https://augmentcode.com/?utm_source=cooper&utm_medium=newsletter) — Get instant, accurate suggestions based on your docs, dependencies and architecture. No more generic AI responses. 

Augment Code sponsor   

[Stylelint: A 'Mighty' Modern Style Linter](https://stylelint.io/) — An established linter with over 100 built-in rules to help “catch errors, apply limits and enforce stylistic conventions”. [GitHub repo](https://github.com/stylelint/stylelint). 

stylelint   

[Freesound: A Collaborative Collection of 670,000+ Free Sounds](https://freesound.org/) — Downloadable in WAV format, possibly useful for adding UI sounds to an app, or for adding to videos. Take note of the license for any sound, as not all are CC. 

Universitat Pompeu Fabra   

[WebJSX: A Library for Building Webapps with JSX and Web Components](https://github.com/webjsx/webjsx) 
WebJSX   

[json-validator: A Tool to Validate, Beautify, and Compress JSON](https://www.sitepoint.com/premium/json-validator/) 
SitePoint       

📰 Classifieds  

🎹 [STRICH:](https://strich.io/?ref=frontend-focus) Add blazing fast and reliable 1D/2D Barcode Scanning to your web apps. Free demo app and 30-day trial available. 

--- 

[Meet Harmony](https://bit.dev/blog/meet-harmony-a-practical-solution-for-composability?utm_source=FrontEndFocus&utm_id=28&utm_medium=newsletter) - An open source library for composing consistent and highly performant platforms from independent business features.     

👀 An eye-popping Web experience..  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/for7afbzrxovnyn67efa.jpg)](https://pierre.co/)  

[Pierre: A Striking New Web Site with a Git Platform Attached](https://pierre.co/) — _Pierre_ bills itself as a ‘new Git platform’ but everyone on social media this week was more wowed by its far out Web design rather than what it’s selling. It evokes early 00s Web experiences with a blend of modern Web technology and retro glitchy aesthetic. One to be seen. 

Pierre Computer Company    

📬 

**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://mastodon.social/@brandrick) & [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/682/*|UID|*?ipx=t)
