[HN Gopher] Some of the future is now for CSS
___________________________________________________________________
Some of the future is now for CSS
Author : Looky1173
Score : 22 points
Date : 2023-12-28 09:00 UTC (1 days ago)
(HTM) web link (www.brycewray.com)
(TXT) w3m dump (www.brycewray.com)
| brycewray wrote:
| Post author here. Two things I would add, given that the post is
| now nearing a year old:
|
| 1. Many people are unable to update to browsers which support the
| latest features, so developers must continue to practice
| "defensive CSS" for quite some time yet. Ways to do so include
| Sass, Lightning CSS, and PostCSS.
|
| 2. For those who know their audience is using updated browsers,
| be advised the nesting syntax is now more relaxed[0] and, like
| Sass nesting, generally *doesn't* require the `&` stuff (which
| *does* still work, though).
|
| [0]: https://developer.chrome.com/blog/css-nesting-relaxed-
| syntax...
| threatofrain wrote:
| Media queries is the last reason I'm still using Sass, although I
| think the pendulum still has more room to swing in the compile-
| time direction for optimizations like de-duplication.
___________________________________________________________________
(page generated 2023-12-29 23:02 UTC)