---
title: "Explain Twitter's source code to me.."
publication: "Frontend Focus"
issue: 531
published_at: "2022-03-02"
canonical_url: "https://frontendfoc.us/issues/531"
---

Plus what's on the horizon for CSS in 2022. |            

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

Frontend Focus 

#​531 — March 2, 2022 | [Read on the web](https://frontendfoc.us/issues/531)       

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1646227707/n9krva6czokedh2scyeb.jpg)](https://www.smashingmagazine.com/2022/03/new-css-features-2022/)  

[New CSS Features in 2022](https://www.smashingmagazine.com/2022/03/new-css-features-2022/) — It looks like 2022 is shaping up to be a great year for CSS, as we’ve got a ton of new features on the horizon, like Container Queries, the `accent-colour` property, `subgrid`, scroll timeline, and much more. This article goes over each thing in detail. Well worth checking out to stay sharp on what’s new across the spec. 

Michelle Barker   [![\](https://copm.s3.amazonaws.com/f33bcefd.png)](https://www.springboard.com/courses/software-engineering-career-track/?utm_source=frontend_focus&utm_medium=cpm&utm_campaign=sec&utm_term=march_cohort_newsletter_ad) 

[Ready to Switch Careers to Software Engineering?](https://www.springboard.com/courses/software-engineering-career-track/?utm_source=frontend_focus&utm_medium=cpm&utm_campaign=sec&utm_term=march_cohort_newsletter_ad) — Springboard offers a comprehensive software engineering bootcamp. Work one-on-one with a mentor to learn key aspects of both front-end and back-end development, databases, data structures, and algorithms. Apply to Springboard's Software Engineering Bootcamp to start your journey. 

Springboard sponsor   

[A New Year, A New MDN](https://hacks.mozilla.org/2022/03/a-new-year-a-new-mdn/) — Today I learnt that MDN is home to over 44,000 articles. Here’s a look at how the MDN team went about creating “_a more holistic experience for our users, with an emphasis on improved navigability and a universal look and feel_”. Always great to see one of the top Web developer resources taking a big step forward. 

Mozilla   

[Explain the First 10 Lines of Twitter's Source Code to Me](https://css-tricks.com/explain-the-first-10-lines-of-twitter-source-code/) — An interview question for a frontend role that seems straightforward enough, but there’s actually plenty to unpack and consider here. (Whether it's a good interview question is a different story, of course.) 

Anand Chowdhary     

**⚡️ Quick bits:** 

- Could [EU 'Qualified Website Authentication Certificate' plans](https://www.feistyduck.com/bulletproof-tls-newsletter/issue_86_eu_plans_to_mandate_less_secure_certificates_in_browsers) result in 'less secure' certificates in browsers?
- Huh, turns out you can [inspect system-level web views](https://blog.jim-nielsen.com/2022/inspecting-web-views-in-macos/) in macOS.
- Google has released a new version of its popular Roboto font: [Roboto Serif](https://material.io/blog/roboto-serif).    

📙 **Tutorials, Articles & Opinion**  

[Can You Get 'Pwned' with CSS?](https://scotthelme.co.uk/can-you-get-pwned-with-css/) — Explores the potential risks of inline styles such as leaking keypresses (in a rather interesting way) and other activity. 

Scott Helme   

[Writing Logic in CSS](https://iamschulz.com/writing-logic-in-css/) — Using CSS to define smart, reactive layout systems. “_It’s control structures and algorithms may be a bit weird compared to other languages, but they’re there and they’re up to the task_”. 

Daniel Schulz   

[Use Group Step Type to Better Organize Complex Pipelines ✨](https://buildkite.com/blog/announcing-the-new-group-step-type) — The group step allows steps to be displayed in logical groupings and nested under a top level group, displayed as the step label on the build page 🏗 👀 

Buildkite sponsor   

[How to Reliably Send an HTTP Request on Leaving a Page](https://css-tricks.com/send-an-http-request-on-page-exit/) — Browsers don’t guarantee to preserve open HTTP requests when pages change but there are some mitigations or alternative approaches (e.g. beacons). 

Alex MacArthur   

[How to Develop a Text Editor for the Web](https://www.smashingmagazine.com/2022/02/develop-text-editor-web/) — The engineer at a company building a browser-based design tool reflects on some of the technical issues of producing a reliable text entry widget. 

Ilya Medvedev   

[Is Firefox OK?](https://arstechnica.com/gadgets/2022/02/is-firefox-ok/) — Looks at how, despite some of its misses, Mozilla’s browser still matters: “_having Firefox flourish makes the web a better place. The trick is figuring out how to get there_”. 

Matt Burgess Opinion   

[Web Devs Rally to Challenge Apple App Store Browser Rules](https://www.theregister.com/2022/02/28/apple_apps_challenge/) — A group of software engineers have launched the ‘[Open Web Advocacy](https://open-web-advocacy.org)’ group to help online apps compete with native apps and to encourage/compel Apple to relax iOS browser restrictions. 

Thomas Claburn   

[IE Down, Edge Up... Global Browser Usage Stats Are for Cocktail Parties and Conference Slides](https://css-tricks.com/ie-down-edge-up-global-browser-usage-stats-are-for-cocktail-parties-and-conference-slides/) 
Chris Coyier   

[How to Create a Section Divider with CSS](https://www.freecodecamp.org/news/section-divider-using-css/) 
Temani Afif   

['Comic Sans Is a Good Typeface, Actually..'](https://ericwbailey.design/writing/comic-sans-is-a-good-typeface-actually/) 
Eric Bailey   

[When to Avoid the `text-decoration` Shorthand Property](https://css-tricks.com/when-to-avoid-css-text-decoration-shorthand/) 
Šime Vidas    

Jobs  

[Senior Frontend Engineer (React) — Remote / NYC](https://boards.greenhouse.io/ramp/jobs/5646274002?t=b835e59e2us) — We're the leading spend management platform for businesses. Small cross-functional front-end operations using React and TypeScript. 
Ramp   

[React Frontend Role for Clay, a Digital Rolodex Backed by Forerunner and GC](https://apply.workable.com/clayearth/j/DADAED9519/) — This role will ensure that Clay's web and desktop apps are best in class. We have a React app that leverages Redux and RxJS. 
Clay   

[Join the World’s Largest Remote Workforce](https://topt.al/wJcqGR) — We offer the freedom of freelance with the security of full-time. Start working remotely with the world’s top clients today. 
Toptal    

🔧 **Code, Tools & Resources** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/nmunkwpkpcwqvnim523l.jpg)](https://aremythirdpartiesgreen.com)  

[Are My Third Parties Green?](https://css-irl.info/are-my-third-parties-green/) — What is the environmental impact of third-party scripts? [This tool from Fershad Irani](https://aremythirdpartiesgreen.com) lets you check various green hosting credentials. 

Michelle Barker   

[LetMeScroll: A Lightweight Scroll Library with No Dependencies](https://github.com/BMSVieira/letmescroll.js) — Lets you customize the color of a scrollbar or add events to respond to scrolling behaviour on the page (e.g. scroll to top/bottom, start/stop scrolling, etc). Try a [demo here](https://bmsvieira.github.io/letmescroll.js/demo/index.html). 

Bruno Vieira   

[Doppler - All Your Environment Variables in One Place](https://www.doppler.com/?utm_campaign=newsletter&utm_medium=referral&utm_content=frontendmarch22&utm_source=newsletter) 

Doppler sponsor   

[Screenshot: No-Dependency Browser-Native Screenshot Library](https://www.xata.io/blog/introducing-screenshot/) — Uses the MediaDevices API but provides an easier to use abstract for letting users take screenshots. [GitHub repo.](https://github.com/xataio/screenshot) 

Tejas Kumar   

[Pika: Create Pretty Screenshots and Browser Mockups Quickly](https://pika.style/) — You can adjust the gradient background and the look of the browser window that wraps the screenshot, for use in tutorials, docs, social media, etc. 

Rishi Mohan   

[taba11y: A Chrome Extension to Visualize Tab Order on a Web Page](https://chrome.google.com/webstore/detail/taba11y/aocppmckdocdjkphmofnklcjhdidgmga/) — Useful if you want to test tab order for keyboard-only and screen reader users. 

Peter Gould   

[alfred-tailwindcss-docs: Search the Tailwind CSS Documentation Using Alfred for Mac](https://github.com/techouse/alfred-tailwindcss-docs) 
Klemen Tusar  

🎨 **...and finally** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1646217968/nzlgu3f2xlumgyadsixd.png)](https://comicss.art/)  

[comiCSS](https://comicss.art/) — A new webcomic about CSS that is also **coded in CSS.** There's [some background on the project here](https://alvaromontoro.com/blog/67998/introducing-comicss). An interesting idea for sure. 

Alvaro Montoro    

📬 

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