Kevin Powell

@kevinpowell@front-end.social
1.1K Followers
73 Following
411 Posts
Helping people fall in love with CSS
YouTubehttps://youtube.com/kevinpowell
Newsletterhttps://kevinpowell.co/newsletter
New CSS features to know for 2025

YouTube
:only-child

Learn how to use the :only-child selector to style elements differently when they have no siblings. Perfect for adaptive designs with optional elements like figure captions. Plus, see how combining it with :has() creates powerful parent styling possibilities.

CSS Weekly #609

💙 Build UIs for humans
💬 Create a background that follows inline text
🏁 Explore approaches to style counters
🔢 Check a proposal to style pseudo-elements of form controls

Featuring @wattenberger, @anatudor, @adactio.com, @cferdinandi, @stefanjudis, @kevinpowell, @addyosmani, @twogrey. 🙏

https://css-weekly.com/issue-609

CSS Weekly Issue #609

Learn how our interfaces have lost their senses, how to get a semitransparent background following inline text, different approaches to style counters, and more.

CSS Weekly
:in-range pseudo-class

Style inputs based on if the value is within specific range limits

Thanks to Christophe Coevoet, @kevinpowell, and @andreu for supporting the campaign to unstick progress on logical shorthands!

It’s surprising that `size` can’t set `inline-size`, and the `inset` shorthand doesn’t include `inset-block-start`. Let's change that.

I'll write up an explainer about the various paths forward. Let me know if you have questions you want me to cover!

https://opencollective.com/oddbird-open-source/contribute/css-logical-shorthands-86141

OddBird Open Source - CSS Logical Shorthands - Open Collective

These days, it's a common practice to use logical flow-relative properties & values like `block-size` whenever possible. But the shorthand properties feel stuck in the past. It's surprising that a `size` shorthand can't set the `inline-size`, and the …

Anyone have a good use-case for :only-child?

Most things I'm thinking of at the moment are combining it with :has(:only-child).

That can be super handy, but I'm looking for something simpler.

Safari Technology Preview 215 is here! It includes several exciting features:
- Scroll Driven Animations
- text-wrap-style: pretty
- CSS Anchor Positioning
- HDR images
- Trusted Types
- File System WritableStream API

https://webkit.org/blog/16523/release-notes-for-safari-technology-preview-215/

Release Notes for Safari Technology Preview 215

Safari Technology Preview Release 215 is now available for download for macOS Sequoia and macOS Sonoma.

WebKit

With single color stop gradients gaining support in all the browser engines all of a sudden, does anyone have any good use cases for them?

Great for overlays on a background-image, but I'm sure there's other stuff that could come in handy too!

https://caniuse.com/mdn-css_types_gradient_linear-gradient_single_color_stop

(for those who don't know, you'll be able to do this: linear-gradient(var(--color)); - also works with conic-gradient as well)

types: `<gradient>`: `linear-gradient()`: Single color stop and 0-1 positions | Can I use... Support tables for HTML5, CSS3, etc

"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.

Create a fun quick text flip effect - @kevinpowell #css
https://www.youtube.com/watch?v=9skKBYLt738
Create a fun quick text flip effect

YouTube

If you’re interested in learning the basics of #CSS and /or just want to explore what a very well-designed online course looks like, I highly recommend you check out @kevinpowell ‘s “HTML & CSS For Absolute Beginners”. It’s brilliant 💯💯💯

https://learn.kevinpowell.co/

#onlinelearning #edtech #academicchatter

Kevin Powell Courses