Two Images and an API: Everything We Need for Recoloring Products

.mega-header::before { content: “”; position: absolute; top: 0; right: 0; width: 75%; height: 90%; background-image: radial-gradient(ellipse closest-side, rgba(15, 14, 22, 0.5), #100e17), url(https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://css-tricks.com/wp-content/uploads/2019/09/car-colors.jpg); background-size: cover; background-repeat: no-repeat; opacity: 0.75; } I recently found a solution to dynamically update the color of any product image. So with just one <img> of a product, we can colorize […]

Read more
The Teletype Text Element Lives On… at Least on This Site

.mega-header::before { content: “”; position: absolute; top: 0; right: 0; width: 75%; height: 90%; background-image: radial-gradient(ellipse closest-side, rgba(15, 14, 22, 0.5), #100e17), url(https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://css-tricks.com/wp-content/uploads/2019/10/letter-blocks.jpg); background-size: cover; background-repeat: no-repeat; opacity: 0.75; } It was this: <tt> I say “was” because it’s deprecated. It may still “work” (like everybody’s favorite <marquee> in some browsers), but it could stop […]

Read more
The W3C At Twenty-Five

About The Author Rachel Andrew is not only Editor in Chief of Smashing Magazine, but also a web developer, writer and speaker. She is the author of a number of books, including … More about Rachel Andrew … The W3C celebrated its 25th anniversary on the 1st of October 2019. In this article, Rachel Andrew […]

Read more
Weekly Platform News: Impact of Third-Party Code, Passive Mixed Content, Countries with the Slowest Connections

.mega-header::before { content: “”; position: absolute; top: 0; right: 0; width: 75%; height: 90%; background-image: radial-gradient(ellipse closest-side, rgba(15, 14, 22, 0.5), #100e17), url(https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://css-tricks.com/wp-content/uploads/2019/10/wpn-20191010.png); background-size: cover; background-repeat: no-repeat; opacity: 0.75; } In this week’s roundup, Lighthouse sheds light on third-party scripts, insecure resources will get blocked on secure sites, and many country connection speeds are still […]

Read more
Recipes for Performance Testing Single Page Applications in WebPageTest

.mega-header::before { content: “”; position: absolute; top: 0; right: 0; width: 75%; height: 90%; background-image: radial-gradient(ellipse closest-side, rgba(15, 14, 22, 0.5), #100e17), url(https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://css-tricks.com/wp-content/uploads/2019/08/website-lightning.png); background-size: cover; background-repeat: no-repeat; opacity: 0.75; } WebPageTest is an online tool and an Open Source project to help developers audit the performance of their websites. As a Web Performance Evangelist at […]

Read more
Blocking Third-Party Hands from the Cookie Jar

.mega-header::before { content: “”; position: absolute; top: 0; right: 0; width: 75%; height: 90%; background-image: radial-gradient(ellipse closest-side, rgba(15, 14, 22, 0.5), #100e17), url(https://res.cloudinary.com/css-tricks/image/fetch/w_1200,q_auto,f_auto/https://css-tricks.com/wp-content/uploads/2019/10/cookies-all-day.png); background-size: cover; background-repeat: no-repeat; opacity: 0.75; } Third-party cookies are set on your computer from domains other than the one that you’re actually on right now. For example, if I log into […]

Read more
Top