Exploring CSS as a Query Language and General-Purpose Programming Tool
By
evnc
Sesame, salt, and substance. A flagship bake.
Summary
An exploration of using CSS as a query language and general-purpose programming language beyond its traditional role of styling web pages. The article investigates the theoretical and practical possibilities of applying CSS selectors and rules to query and manipulate data, treating CSS as a declarative query language similar to SQL or XPath. It presents a philosophical and technical deep-dive into the unconventional use of CSS for data processing tasks.
Key quotes
· 3 pulledQuestion: Why in God's good name would you do that? CSS is infamously confusing. And better query languages exist, right? Such as SQL, which famously doesn't have problems.
Answer: Because it's there.
The basic principles of CSS look like this. 1. There are Things
You might also wanna read

The Evolution of CSS: From Presentational Styling to a Smarter, Logic-Driven Language
Gabriel Shoyombo explores the evolution of CSS from a purely presentational language into one with growing logical capabilities, examining f

CSS Wrapped 2025: How CSS Evolves to Handle Logic, State, and Complex Interactions
The article discusses the 2025 CSS Wrapped report, highlighting how CSS has evolved beyond simple styling to handle logic, state, and comple
