---
title: "The ✨ magic ✨ of CSS math functions"
publication: "Frontend Focus"
issue: 438
published_at: "2020-04-29"
canonical_url: "https://frontendfoc.us/issues/438"
---

This week's HTML, CSS and browser news.       

#438 — April 29, 2020 

[Read on the Web](https://frontendfoc.us/issues/438)   

Frontend Focus 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1588150502/t74toluzzntgrl6qsiq7.jpg)](https://www.youtube.com/watch?v=U9VF-4euyRo) 

Current browser support for CSS math functions. Via: [caniuse.com](https://caniuse.com/#feat=css-math-functions)   

▶[`min(),`max()`, and`clamp()` Are CSS Magic](https://www.youtube.com/watch?v=U9VF-4euyRo) — The `min`, `max`, and `clamp` functions are now starting to see [more widespread browser support](https://caniuse.com/#feat=css-math-functions). Here’s a video running through how these properties can be used to really open up responsive typography techniques. 

Kevin Powell   

[Accessible Font Sizing, Explained](https://css-tricks.com/accessible-font-sizing-explained/) — Bootstrap core team member Andrés Galante runs through how we can ensure our font sizes are accessible by asking what sort of best practices we can rely on to make an accessible reading experience. 

CSS-Tricks   [![\](https://copm.s3.amazonaws.com/3635ea29.jpeg)](https://frontendmasters.com/courses/webgl-shaders/?utm_source=frontendfocus&utm_medium=email&utm_campaign=advancedcreative) 

[Learn Advanced Creative Coding with WebGL & Shaders](https://frontendmasters.com/courses/webgl-shaders/?utm_source=frontendfocus&utm_medium=email&utm_campaign=advancedcreative) — Go deeper into creative coding. Join Matt DesLauriers to learn 3D vectors and shader effects using WebGL, ThreeJS, and GLSL. 

Frontend Masters sponsor   

[CSS for Internationalisation](https://www.chenhuijing.com/blog/css-for-i18n/) — An excellent guide to the various features in CSS that can be used as part of an internationalisation strategy that goes beyond mere translation. 

Chen Hui Jing   

[AMP Introduces 'User-Friendly' Content Encryption Support](https://blog.amp.dev/2020/04/27/introducing-the-fastest-and-most-user-friendly-content-encryption/) — AMP aims to be all about providing speed to mobile consumers of content but paywalls just, well, get in the way. So Google and the AMP folks have come up with a way where protected content can be served and unlocked client-side for more performance. Cynically, of course, you _could_ consider this yet another form of DRM for Web content... 

The AMP Blog   

[Responsive Web And Desktop Development With Flutter](https://www.smashingmagazine.com/2020/04/responsive-web-desktop-development-flutter/) — A look at the current state of Flutter for browser-based apps and how to create a responsive app using it. 

Carmine Zaccagnino  

💻 **Jobs**  

[Find a Job Through Vettery](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-frontendfocus&utm_term=tech&utm_content=grouped&utm_campaign=ad-77580) — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started. 

Vettery   

[Frontend Developer at X-Team (Remote)](https://x-team.com/remote-frontend-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=frontend) — Join the most energizing community for developers. Work from anywhere with the world's leading brands. 

X-Team  

ℹ️ _Interested in running a job listing in Frontend Focus? There's [more info here.](https://booking.cooperpress.com/jobs)_ 

📙 **News, Tutorials & Opinion**  

[Spacing in CSS](https://ishadeed.com/article/spacing-in-css/) — This is pretty much everything you need to know about spacing in CSS, covering grid layout, flexbox, positioning, and lots more. 

Ahmad Shadeed   

▶[Performance Profiling for Web Applications](https://www.youtube.com/watch?v=j9LW94EN7n4) — An overview of how to use Chrome DevTools to understand a Web application’s performance bottlenecks. 

Sam Saccone   

[JS VidCon - Virtual Conference for Developers](https://jsvidcon.com/) — JS VidCon, on May 7th, where developers from all over the world can share & gain knowledge from the comfort of their home. 

EventHandler sponsor   

[Gardened](https://ethanmarcotte.com/wrote/gardened/) — A thought-provoking piece by Ethan that looks at some of the problems inherent in our self-regulated industry, in particular related to performance and accessibility. 

Ethan Marcotte   

[CSS Clamp: The Goldilocks of CSS Math Functions](https://www.stevefenton.co.uk/2020/04/css-clamp-the-goldilocks-of-css-math-functions/) — As with the video featured above, here's a quick look at how to use `min`, `max`, and `size` with the `clamp` property. 

Steve Fenton   

[Creating A Lightweight CSS-Only Tooltip for All Screen Sizes](https://rimdev.io/css-only-tooltip-for-all-screen-sizes/) 

Ted Krueger   

[How to Make A Reading Progress Bar for Your Blog](https://dev.to/robole/pimp-your-blog-by-adding-a-reading-progress-bar-573i) 

Rob OLeary  

🔧 **Code, Tools and Resources** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1588075777/qxoxgagj1u5ziukvtnqe.png)](https://jdan.github.io/98.css/)  

[98.css: A Design System for Building Faithful Recreations of Old UIs](https://jdan.github.io/98.css/) — If for any reason you need to your interface to look like Windows 98 then this library has you sorted. [Here’s the associated repo](https://github.com/jdan/98.css). 

Jordan Scales   

[Color Accessibility: Tools and Resources to Help You Design Inclusive Products](https://stephaniewalter.design/blog/color-accessibility-tools-resources-to-design-inclusive-products/) — We’ve linked to this before, but it’s recently been updated and remains a solid resource. 

Stéphanie Walter   

[Will It CORS?](https://httptoolkit.tech/will-it-cors/) — A handy online tool/wizard for establishing how your (potential) use case will (or won’t!) operate alongside CORS (Cross-Origin Resource Sharing). 

HTTP Toolkit   

[Faster CI/CD for All Your Software Projects Using Buildkite](https://buildkite.com/?pk_campaign=fefocus-290420&pk_source=cp-fefocus&pk_medium=newsletter) 

Buildkite sponsor   

[Shorthand: A CSS Framework for Designers](https://shorthandcss.com/) — Includes a “lite” (only gray) and “full” version. This is similar to utility class-based frameworks, so the draw here is that you don’t have to write any CSS, just add classes. 

Jiten Bansal   

[1loc: A Collection of One-line JS Snippets](https://1loc.dev/) — A neat little collection of vanilla JavaScript one-liners divided into various categories (arrays, date/time, DOM, etc). 

Nguyen Huu Phuoc     

🕰 **ICYMI** _(Some older stuff that's worth checking out...)_ 

- Tim Kadlec shares [thoughts on the 'blunt instrument' of loading stylesheets via preload](https://timkadlec.com/remembers/2020-02-13-when-css-blocks/), and some performance advice around how you go about loading CSS and the DOM order.
- Dynamic elements: Nothing new here for frontend experts, but this is [a good summary for beginners](https://www.kirupa.com/html5/dynamic_elements.htm) discussing how elements can be built dynamically outside of the initial markup.
- Here's an in-depth look at a fairly simple feature: [the disabled attribute for form elements](https://catalin.red/disabled-form-controls/) (_and how to handle them_).
- Kevin Powell shares six simple (beginner) typography tips to achieve a more professional looking site. Skip to around the [3:20 mark](https://youtu.be/6ardZEhjvV0?t=201) to get straight into it.
- How to create a fully responsive fluid layout [in just 20 lines of CSS](https://css-tricks.com/responsive-grid-magazine-layout-in-just-20-lines-of-css/) (_that also includes responsively resizing multi-column elements_).
- Author Brian Hicks explores [reducing asset sizes with subsetting](https://bytes.zone/posts/reducing-asset-size-with-subsetting/). He uses a headless Chrome instance with Puppeteer to automate font subsetting on his static pages for savings of 87% on the original size.         

A **[Cooperpress](https://cooperpress.com/)** publication — Curated by [Chris Brandrick](https://twitter.com/chrisbrandrick) & [Peter Cooper](https://twitter.com/peterc). 

[Change your email address](https://frontendfoc.us/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
