News for hackers. Stuff that matters.
Re:Conditional CSS by nine_k on Monday January 16, 2023 @04:21PM (#34405645)
So useful; thanks to the author.

But a number of things are still Chrome-only, and even with that, only available in the latest version. Will have to wait before I can apply them.

Re:Conditional CSS by jensimmons on Tuesday January 17, 2023 @12:17PM (#34415312)
Style queries are the only thing he talked about that's Chrome-only, and Chrome hasn't even shipped them yet. They're only available in Chrome Canary behind a flag.

Firefox is working on shipping :has() and Container Queries.

Safari supports everything besides style queries. Many of these, Safari shipped first. More importantly, these days, browsers often ship new CSS around the same time.

Plus you can always use Feature Queries (@supports) to conditionally test for support and apply different CSS depending on what's supported. That way users who haven't updated their software in years have a great experience, too.

So no, you don't have to wait to use this CSS. Just think through what you are doing. Learn how here: https://www.youtube.com/playlist?list=PLbSquHt1VCf1kpv9WRGMC...