---
title: "The scope superpower hiding in CSS @function"
publication: "Frontend Focus"
issue: 746
published_at: "2026-06-17"
canonical_url: "https://frontendfoc.us/issues/746"
---

Plus Babel 8 lands after eight years, MDN's new MCP server, and view transitions demystified.      

Together with [![Clerk\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,w_220,h_64/e_make_transparent/co_white,e_outline:5/j3vhv1hnwqeffgkzzlvu.png)](https://go.clerk.com/jKH3MzH)        

🚀 **Frontend** Focus 

#​746 — June 17, 2026 | [Read on the web](https://frontendfoc.us/issues/746)      

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/uqqo8fwjphal6xmofqme.jpg)](https://developer.mozilla.org/en-US/blog/introducing-mdn-mcp-server/)  

[Introducing the MDN MCP Server](https://developer.mozilla.org/en-US/blog/introducing-mdn-mcp-server/) — Bring MDN’s docs and browser compatibility data straight into an AI agent or IDE for accurate, up-to-date answers about the web platform, instead of relying on models' stale training data. 

The MDN Team   [![\](https://res.cloudinary.com/cpress/image/upload/c_limit,w_480,h_480,q_auto/copm/809303e1.png)](https://go.clerk.com/jKH3MzH) 

[clerk deploy: From Dev to Production in One Command](https://go.clerk.com/jKH3MzH) — Run clerk deploy from a linked project and the Clerk CLI walks you through every production requirement: instance clone, DNS records with zone file export, Google and Apple OAuth credentials, and a verification loop for DNS, SSL, and email DNS. 

Clerk sponsor   

[The Scope of CSS `@function`](https://master.dev/blog/the-scope-of-css-function/) — A look at the evaluation scope of CSS custom functions: unlike regular custom properties that inherit through the DOM, they resolve variables from wherever they're called, letting library authors hide complex logic behind clean APIs, with some caveats. 

Jane Ori     

⚡️ IN BRIEF 

- 🟡 [Version 8 of JavaScript compiler Babel landed yesterday](https://babeljs.io/blog/2026/06/16/8.0.0/), some eight years since the last major release. It's now ESM-only.
- 🦊 [Firefox 152 was released](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/152), adding new web platform features including CSS [field-sizing](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/field-sizing).
- ⏱️ TC39 delegate Lucas Casonato has made [a proposal to add built-in localized time formatting](https://github.com/whatwg/html/issues/12591) to HTML.
- 🔀 [WASI 0.3 (WebAssembly System Interface) has launched](https://bytecodealliance.org/articles/WASI-0.3), adding native async support to WebAssembly Components.
- 💻 _Frontend Masters_ has [rebranded to Master.dev](https://master.dev/blog/today-frontend-masters-becomes-master-dev/) to better reflect the courses they now offer.      

📙 Articles, Opinions & Tutorials  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1781693691/v2xgtkst0odcshspatd0.png)](https://webkit.org/blog/18117/the-golden-rule-of-customizable-select/)  

[The Golden Rule of Customizable Select](https://webkit.org/blog/18117/the-golden-rule-of-customizable-select/) — When using Safari 27's new customizable `<select>` element, always keep text on your `option` elements. Skipping that in favor of just icons or swatches hurts usability, accessibility, and older-browser fallbacks. 

Yitbarek & Nguyen (WebKit)   

[Why Isn't My 3D View Transition Working?](https://css-tricks.com/why-isnt-my-3d-view-transition-working/) — Short answer: the view transition pseudo tree has no real parent, so the `perspective` property has nothing to latch onto. This post walks through the fix. 

Sunkanmi Fafowora   

[Your Dashboard Is Fast. Your Data Isn't](https://www.tigerdata.com/go/trial?utm_source=content-syndication&utm_medium=referral&utm_campaign=frontend-focus-newsletter) — Dashboards stall on slow queries, not slow components. Tiger Data keeps backend data as fresh as your UI. 

Tiger Data (creators of TimescaleDB) sponsor   

[Demystifying the View Transition Pseudo Tree](https://master.dev/blog/demystifying-the-view-transition-pseudo-tree/) — Breaks down each layer of a pseudo-element tree that a browser builds during a view transition, looking at what each pseudo-element does, why they’re there, and how to target them when defaults need tweaking. 

Cyd Stumpel   

▶[Get Started with the <`model`> Element](https://www.youtube.com/watch?v=AwAn6dgcq4c) — The [`model` element](https://webkit.org/blog/17118/a-step-into-the-spatial-web-the-html-model-element-in-apple-vision-pro/) brings interactive 3D content into the page on iOS, iPadOS, macOS, and visionOS. 

Aleksei Marchenko (Apple Developer)   

[Creating Memorable Web Experiences: A Modern CSS Toolkit](https://css-tricks.com/creating-memorable-web-experiences-a-modern-css-toolkit/) — A practical reminder and tooling overview, looking at what we can now achieve without the technical overhead of the past. 

Mariana Beldi   

[Improvements to Web for AI Should Benefit All Users](https://cloudfour.com/thinks/improvements-to-web-for-ai-should-benefit-all-users/) — The Safari team [recently opposed the WebMCP API](https://github.com/WebKit/standards-positions/issues/670#issuecomment-4608432694), and Jason argues that rather than building AI-specific APIs, we should fix the underlying semantics. He concludes: “_user needs come before agent needs_”. 

Jason Grigsby   

[Another Stab at the Perfect CSS Pie Chart... Sans JavaScript](https://css-tricks.com/another-stab-at-the-perfect-css-pie-chart-sans-javascript/) 
Antoine Villepreux    

🧰 Tools, Code & Resources  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/aqyrlmavjaaiz2h90xtp.jpg)](https://nerdy.dev/prop-for-that)   

[Prop For That: What JS Knows, Now CSS Knows](https://nerdy.dev/prop-for-that) — A library to tackle areas where CSS _almost_ gets you there, but you’re forced to drop into JavaScript to get a value: mouse position, the time, a slider’s value, etc. Add an HTML attribute and the live values show up as custom properties, bridging the JS–CSS gap declaratively. It has [a great demo page](https://prop-for-that.netlify.app/). 

Adam Argyle   

[Handsontable: A Production-Ready Data Table That Feels Like Excel](https://eu1.hubs.ly/H0w5X4N0) — Excel-like editing, 400+ formulas, virtualization — tested, accessible, and ready for production. 

Handsontable sponsor   

[Mitos ASCII Tool: Convert Images into ASCII Text Illustrations](https://mitos-pied.vercel.app/) — Used at _Oxide_ for creating branded ASCII graphics, this tool not only converts images into ASCII art, but lets you live-code effects for animated hero image experiences, etc. [GitHub repo.](https://github.com/oxidecomputer/mitos/) 

Oxide Computer Company   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/ixupyzbbgqjnvtbe54el.jpg)](https://webkit.org/blog/18027/discover-mapkit-js-6-rebuilt-for-todays-web-developer/)  

[Discover MapKit JS 6: Rebuilt for Today’s Web Developer](https://webkit.org/blog/18027/discover-mapkit-js-6-rebuilt-for-todays-web-developer/) — Apple’s privacy-first framework for integrating Maps into your site has had a big update. Version six ships as an npm package, and introduces TypeScript support via DefinitelyTyped. [There’s a demo here](https://webkit.org/demos/yosemite/). 

Tim Chien (WebKit)   

[Templatical: An Open Source, Drag-and-Drop Email Editor SDK](https://templatical.com/) — Supports custom blocks with API-backed data, merge tags with your choice of template literals, full theming via design tokens, and lots more. [The playground](https://play.templatical.com/) includes real-world use cases. [Source](https://github.com/templatical/sdk). 

Templatical   

[Svelte Animations: 50+ Free Animated Components and Effects Made with Svelte, Motion SV, and Tailwind](https://github.com/SikandarJODD/animations) — Includes three different component packs (Magic, Spell, and Fancy), which you can [try out here](https://sv-animations.vercel.app/). 

Sikandar Bhide   

[OneGlanse: Track How Your Brand Appears in ChatGPT, Gemini, Perplexity, Claude, and Google AI Overview](https://oneglanse.com/) 
OneGlanse      

📰 Classifieds   

⚡️ Add lightning-fast barcode & QR scanning to your web app with [STRICH](https://strich.io/?ref=frontend-focus), a lean JS library. Simple, predictable pricing. [Free trial and demo!](https://strich.io/?ref=frontend-focus) 

--- 

🔄 That "Export PDF" button works fine until you hit 20,000 docs. [See how to scale it](https://developer-api.foxit.com/developer-blogs/api-guides-tutorials/api-driven-document-workflow-automation/?utm_source=draftdev&utm_medium=newsletter&utm_campaign=frontendfocus_20260617) with Foxit's PDF APIs.      

🫟 ...and finally  

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1781690636/kgd17ovayoakc6jkffn5.png)](https://storiedcolors.com/)  

[Storied Colors: A Research Catalog of Color](https://storiedcolors.com/) — An ongoing index of named colors, sharing the documented history of various hues, looking at their origins, dyes, chemical formulas, and how various colors got their names.    

📬 

**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|*)
