---
title: "How to nail your CSS refactoring"
publication: "Frontend Focus"
issue: 502
published_at: "2021-08-04"
canonical_url: "https://frontendfoc.us/issues/502"
---

Plus the Chrome team talk scrolling. |       [Unsubscribe](https://frontendfoc.us/leave/*|UID|*)      

[![\](https://res.cloudinary.com/cpress/image/upload/v1602675575/hhmdxfk96fnbq3effjk1.png)](https://frontendfoc.us/)   

Frontend Focus 

#​502 — August 4, 2021 | [Read on the web](https://frontendfoc.us/issues/502)       

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1628075755/tzrscd847ihijwzzmv1x.jpg)](https://www.smashingmagazine.com/2021/08/refactoring-css-strategy-regression-testing-maintenance-part2/)  

[Refactoring CSS: Strategy, Regression Testing and Maintenance](https://www.smashingmagazine.com/2021/08/refactoring-css-strategy-regression-testing-maintenance-part2/) — A detailed guide on taking an incremental approach to refactoring CSS, with pointers on strategy, visual regression testing, and maintaining a refactored codebase. 

Adrian Bece   

[The 2021 Scroll Survey Report](https://web.dev/2021-scroll-survey-report/) — The Chrome team has shared the results from its ‘[Scroll Survey Report](https://storage.googleapis.com/web-dev-uploads/file/vS06HQ1YTsbMKSFTIPl2iogUQP73/QZopyELSk8T7IpsgOnRU.pdf)’ and here are the highlights of the results with detail on how this impacts priorities and plans for Chromium. 

Adam Argyle & Sam Dutton (Google)   [![\](https://copm.s3.amazonaws.com/d3c80b8b.png)](https://codesandbox.io/s/lingering-glitter-r8bxl) 

[Build a Zoom Clone by Following Working Code](https://codesandbox.io/s/lingering-glitter-r8bxl) — Build an audio/video conferencing application like Zoom or Teams to talk to your friends and family. Follow along with fully functioning code and customize and enhance to unleash your creativity. Show us what you can build. 

SignalWire sponsor   

[Creating an Accessible Dialog from Scratch](https://www.smashingmagazine.com/2021/07/accessible-dialog-from-scratch/) — Dialogs are everywhere in modern interface design, and yet many of them are not accessible to assistive technologies. This article digs into how to create a short script to create accessible dialogs. 

Kitty Giraudel     

**⚡️ Quick bits:** 

- [Here's a look at the latest changes](https://blog.chromium.org/2021/07/chrome-93-multi-screen-window-placement.html) in the beta of Chrome 93.
- [AWS is ending its support for Internet Explorer 11](https://aws.amazon.com/blogs/aws/heads-up-aws-support-for-internet-explorer-11-is-ending/).
- Version 4.1 of the [Vivaldi has a new macro system](https://www.pcworld.com/article/3626815/vivaldi-41-browser-debuts-macros-accordion-tabs.html), and something they're calling 'accordian tabs'.
- Here's a handy list of [over 200 open-source alternatives](https://www.btw.so/open-source-alternatives) to popular tools (think analytics, CMS, CRM, etc).   

📙 **Tutorials, Articles & Opinion** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1628075279/d2pcuk4mvkvigygaaq1w.png)](https://ishadeed.com/article/button-label-alignment/)  

[Aligning a Button Label Vertically](https://ishadeed.com/article/button-label-alignment/) — Yup, each and every font can have a unique `line-height`, with differing spacing both above and below the text — this can often cause problems when trying to align content. Here’s what to do about it. 

Ahmad Shadeed   

[A Framework for Building Open Graph Images](https://github.blog/2021-06-22-framework-building-open-graph-images/) — The team at GitHub recently set about creating a framework and service for automatically generating social sharing images for repositories and other resources. Here’s the story. 

Jason Etcovich   

[Application Performance Monitoring in Real Time](https://www.influxdata.com/application-performance-monitoring-technical-paper/?utm_source=vendor&utm_medium=referral&utm_campaign=2021-08-04_spnsr-nl_apm-tp_global&utm_content=frontendfocus) — Learn how to use time series data for real-time observability into application performance, systems and network metrics. 

InfluxData sponsor   

[Practical Use Cases for Scroll-Linked Animations in CSS with Scroll Timelines](https://css-tricks.com/practical-use-cases-for-scroll-linked-animations-in-css-with-scroll-timelines/) — Some practical use cases where scroll-linked animations (an [experimental spec](https://drafts.csswg.org/scroll-animations-1/) for now) may come in handy, and how they can enrich your visitor’s browsing experience. 

Bramus Van Damme   

[How MDN’s Autocomplete Search Works](https://hacks.mozilla.org/2021/08/mdns-autocomplete-search/) — Autocomplete search was recently added to the excellent [MDN Web Docs](https://developer.mozilla.org/). Here’s a look at how the feature was implemented. 

Peter Bengtsson (Mozilla)   

[Break HTML Content Into Newspaper-Like Columns with Pure CSS](https://www.amitmerchant.com/how-to-break-html-content-into-columns-using-pure-css/) — Sometimes, the things you might think are tricky to implement can turn out to be a matter of just a few lines of code if you read the documentation. 

Amit Merchant   

['Safari Isn't Protecting The Web, It's Killing It'](https://httptoolkit.tech/blog/safari-is-killing-the-web/) — Tim presents a clear argument for why Apple’s browser is failing when it comes to feature support, API proposals, release cadence, bug fixing, and more. 

Tim Perry opinion   

[How We Reduced Next.js Page Size by 3.5x and Achieved a 98 Lighthouse Score](https://papyrus.dev/@PapyrusBlog/how-we-reduced-next.js-page-size-by-3.5x-and-achieved-a-98-lighthouse-score) 
Colin Armstrong   

[Building an Automated Screenshot Service on Netlify in ~140 Lines of Code](https://www.zachleat.com/web/screenshots/) 
Zach Leatherman   

[Conjuring 'Generative Blobs' with the CSS Paint API](https://css-tricks.com/conjuring-generative-blobs-with-the-css-paint-api/) 
George Francis   

[The Current State of Homepage UX: Eight Common Pitfalls](https://baymard.com/blog/2021-current-state-of-ecommerce-homepage-ux) 
Sally Collins    

Jobs  

[Frontend Developer at X-Team (Remote)](https://x-team.com/remote-frontend-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=cooperpress-frontend&utm_content=frontend) — Join the most energizing community for developers and work on long-term projects for Riot Games, FOX, Sony, Coinbase, and more. 
X-Team   

[Senior Frontend Engineer - React (Remote)](https://jobs.lever.co/kraken/a5e33e54-1da0-4c65-9fc8-04031125db10) — With over 7 million clients, Kraken is one of the world's largest, most successful bitcoin exchanges. 
Kraken   

[Find Frontend Engineering Jobs with Hired](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-frontendfocus%29&utm_content=find-your-next-job) — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers. 
Hired     

🔧 **Code, Tools and Resources** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1628073965/cmsbtjsgy4dpw0qpoy4a.png)](https://wh0.github.io/glitter/)  

[Glitter Text: Generate and Download Text with a Glitter Effect](https://wh0.github.io/glitter/) — Saves as an SVG. There’s a surprisingly detailed [explanation here](https://wh0.github.io/2021/04/25/glitter.html). 

wh0   

[Meyda: A JavaScript Audio Feature Extraction Library](https://meyda.js.org/) — The homepage has quite a visually striking demo. It supports both offline feature extraction as well as real-time feature extraction using the Web Audio API. 

Rawlinson, Segal, Fiala, Wray, et al.   

[Snowflake Generator: Generate a Random or Custom Snowflake Image](https://viviariums.com/projects/snowflake/interactive/) — One of those things that’s just fun to tweak the settings on and play with. You can use a button to export as JPG, or just right click the result to download as PNG. 

Vivian Wu   

[vanilla-tilt.js: A Smooth 3D Tilting Effect Library](https://micku7zu.github.io/vanilla-tilt.js/) — No dependencies. [GitHub repo](https://github.com/micku7zu/vanilla-tilt.js). 

Șandor Sergiu   

[Monitor Lighthouse Scores and Core Web Vitals](https://www.debugbear.com/?utm_campaign=feFocus2) 

DebugBear sponsor   

[SVG Gobbler: Browser Extension to Download and Optimize SVGs From Any Website](https://www.svggobbler.com/) — Available for Firefox and Chrome, and among other things offers the ability to transform the SVG code into a React component, bulk export from a page, or copy the image as SVG code. 

ross moody   

[Background Image Remover: Upload an Image to Remove the Background Automatically via AI](https://www.photoroom.com/background-remover/) — We tested it - it works. 
photoroom   

[Metal Olympic Rings Rendered in Pure CSS](https://codepen.io/josetxu/pen/OJmZxzX) — Well, sort of. An interesting use of Pug generated CSS. 
Josetxu   

[html-to-image: Generate an Image from a DOM Node using Canvas and SVG](https://github.com/bubkoo/html-to-image) 
W.Y.   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1628073896/vxwfwiwsznv0udaq5nqk.png)](https://codepen.io/creativeocean/pen/poPexje)  

[Scroll-Kaiju: Take Godzilla for a Walk](https://codepen.io/creativeocean/pen/poPexje) — This is a cute animated CodePen demo - scroll horizontally to take the nuclear monster for a stroll. 

Tom Miller codepen    

📬 

**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://twitter.com/chrisbrandrick) & [Peter Cooper](https://twitter.com/peterc).
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

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