Custom State Pseudo-Classes in Chrome
There is an increasing number of “custom” features on the web platform. We have custom properties (--my-property), custom elements (), and custom events (new CustomEvent('myEvent')). At one point, we might even get custom media queries (@media (--my-media)).
But that’s not all..
Astro
You can’t even look at code or documentation for Astro (publicly) yet — it’s an in-progress idea — but you can watch a video of Fred showing it off to Feross.
I gotta admit: it looks awesome. I’m bullish on two major parts of this:
Jamstack is a good idea. Producing static, pre-rendered, minimal ..
Progress Delayed Is Progress Denied
The bombshell article of the week is from Alex Russell of Google/Chrome. Alex has long been super critical of Apple, particularly about how there is literally no option to run any other browser than Safari on iOS. This article isn’t just fist-waving about that, but a dissertation accusing Apple of r..
Is Vendor Prefixing Dead?
Let‘s take a quick stroll down memory-lane to revisit how vendor prefixing CSS properties came to be. I hope I don’t trigger PTSD for anyone!
It‘s not clear who started prefixing, or when it began exactly. What is clear, is that by 2006, prefixed features were in Internet Explorer and Firefox. The ..
16px or Larger Text Prevents iOS Form Zoom
This was a great “Today I Learned” for me from Josh W. Comeau. If the font-size of an is 16px or larger, Safari on iOS will focus into the input normally. But as soon as the font-size is 15px or less, the viewport will zoom into that input. Presumably, because it considers that type too smal..
Jetpack Backup: Roll Back Your WooCommerce Site Without Losing Orders
Here’s a dilemma: what happens if your WooCommerce site has a problem and the quickest and best way to fix it is to roll back to a previous version? The dilemma is, if you roll back the database, you would lose literal customer orders that are stored in the database. That’s not acceptable for an eCo..
Number of Homes
🏠 They say an average person lives in 11 homes in their lifetime.
What’s your number? (I’m currently at 8🤪)
— CanadianPam (@PamelaApostolo1) May 1, 2021
Hmmmmm!
I’m not even sure what house I lived in when I was born. Something where my mom and dad lived together, for the few years before they di..
Let’s use (X, X, X, X) for talking about specificity
I was just chatting with Eric Meyer the other day and I remembered an Eric Meyer story from my formative years. I wrote a blog post about CSS specificity, and Eric took the time to point out the misleading nature of it (I remember scurrying to update it). What was so misleading? The way I was portra..
Creating Colorful, Smart Shadows
A bona fide CSS trick from Kirupa Chinnathambi here. To match a colored shadow with the colors in the background-image of an element, you inherit the background in a pseudo-element, kick it behind the original, then blur and filter it.
.colorfulShadow {
position: relative;
}
.colorfulShadow::aft..
Chapter 8: CSS
In June of 2006, web developers and designers from around the world came to London for the second annual @media conference. The first had been a huge success, and @media 2006 had even more promise. Its speaker lineup was pulled from some of the most exciting and energetic voices in the web design an..