Lea Verou 6/18/2024

Inline conditionals in CSS?

Read Original

This article announces the CSS Working Group's resolution to add an inline if() function to CSS. It explains the motivation behind the proposal, its use cases for component styling with custom properties, and how it complements existing features like style queries. The author, who helped push the proposal, also discusses the positive developer reception and clarifies common questions about the feature's purpose.

Inline conditionals in CSS?

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes