CSS Spring 2024
CSS supports…
…the year is 2030 2024!
I recently read through an excellent post on Frontend Master’s blog written by no one else than Chris Coyier (a creator of CSS Tricks). Chris in a What You Need to Know about Modern CSS (Spring 2024 Edition) post sheds some light on latest additions to CSS.
I am particularly interested in nesting and layers. Nesting will make SASS a redundant dependency in smaller projects. Layers will come in handy when overriding external styles - this is a quite common practice when using Shiny.
Below you can see a simple example showcasing both nesting and layers. See its source on GitHub or view the example directly.
Footnotes
-
Nesting has 84.55% browser support as of 2024-04-09. ↩︎
-
Layers have 94.4% browser support as of 2024-04-09. ↩︎
-
Container queries have 91.11% browser support as of 2024-04-09. ↩︎