Comments on: What You Need to Know about Modern CSS (2025 Edition) https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/ Helping Your Journey to Senior Developer Sat, 08 Nov 2025 18:44:51 +0000 hourly 1 https://wordpress.org/?v=6.9 By: Chris Coyier https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-46351 Sat, 08 Nov 2025 18:44:51 +0000 https://frontendmasters.com/blog/?p=6948#comment-46351 In reply to Robert Bottomley.

You’re 100% right. I also screwed up that media query syntax. It should just be width or inline-size. So fixed is like:

if(
  media(width > 900px): repeat(auto-fit, minmax(200px, 1fr));
  media(width > 600px): repeat(3, 1fr);
  media(width > 300px): repeat(2, 1fr);
  else: 1fr;
); 
]]>
By: Robert Bottomley https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-46301 Sat, 08 Nov 2025 00:56:57 +0000 https://frontendmasters.com/blog/?p=6948#comment-46301 If the example for if():

if(
media(max-width > 300px): repeat(2, 1fr);
media(max-width > 600px): repeat(3, 1fr);
media(max-width > 900px): repeat(auto-fit, minmax(250px, 1fr));
else: 1fr;
);

You may want to reverse the matches. You say “first match wins.” If so, the 600px and 900px matches will never execute since they are both greater than 300 and that will always win.

]]>
By: Max https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-44495 Mon, 20 Oct 2025 22:17:31 +0000 https://frontendmasters.com/blog/?p=6948#comment-44495 I think it’s time for us to consider a bold change in CSS naming. Rather than sticking to 3, 4, 5, and so forth, we could opt for CSSQ. The Q symbolizes queen. I’ve always regarded CSS as the queen of the web.

]]>
By: Chris Coyier https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-42824 Sun, 05 Oct 2025 15:26:50 +0000 https://frontendmasters.com/blog/?p=6948#comment-42824 In reply to Benoît Rouleau.

Interesting. Good observation.

]]>
By: Benoît Rouleau https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-42702 Sat, 04 Oct 2025 14:14:07 +0000 https://frontendmasters.com/blog/?p=6948#comment-42702 To me, the most interesting thing about if() isn’t just that it “makes for more readable code and potentially prevents certain types of code repetition”, but that it allows setting the value of a property conditionally based on the value of a custom property ON THE SAME ELEMENT (unlike style queries, which can only check property values on a container element).

]]>
By: Michael Clawson https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-42264 Wed, 01 Oct 2025 05:19:43 +0000 https://frontendmasters.com/blog/?p=6948#comment-42264 My company’s traffic is around 90% iOS Safari. Chrome only features are absolutely irresponsible for us to use. I don’t believe progressive enhancement or fallbacks or polyfills makes it worth it either. We shouldn’t be spending dev time making something look pretty or work better for 5% or less of our customers.

Now if your traffic is more evenly mixed then maybe it makes sense to use them but have fallbacks or polyfills, or use as a progressive enhancement. But I think it still doesn’t makes sense to feature them from a broader ecosystem perspective. Chrome is the new IE. It can do what it wants because it has so much market share. A lot of Chrome only features will never become a standard and standards are what we should be building for. Chrome only features belong in the “stuff to keep an eye on section”.

That said. There’s some cool stuff in here. Thank you for writing them up.

]]>
By: Frank Conijn https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-41831 Sat, 27 Sep 2025 17:31:30 +0000 https://frontendmasters.com/blog/?p=6948#comment-41831 Please ignore my post because you already mentioned that only Chrome supported it. (On https://caniuse.com/?search=popover it says that Safari supports it as well, but that’s not correct when it comes to iOS.)

]]>
By: Frank Conijn https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-41790 Sat, 27 Sep 2025 08:49:22 +0000 https://frontendmasters.com/blog/?p=6948#comment-41790 Great article, but have you tried the popover example on an iPad? It doesn’t work on mine, while the iPad is current on updates (iOS 18.6).

]]>
By: Nizamuddin Shaikh https://frontendmasters.com/blog/what-you-need-to-know-about-modern-css-2025-edition/#comment-41224 Sun, 21 Sep 2025 06:06:50 +0000 https://frontendmasters.com/blog/?p=6948#comment-41224 New pop-ups are amazing. Functions and if conditions open many avenues in CSS writing. Attr, texts, select and all new features enable quality programming.

]]>