top | item 47124885

Ask HN: Are we good using nested CSS?

1 points| soperj | 7 days ago

I've moved away from sass, to nested CSS because that seems to be the way that things are moving, and it's been 3 years since there was major browser support, but it ended up looking horrible on my friends iphone, and an old ipad of mine. Turns out Safari only updates when you update the OS, so doesn't support nested css. How much of an issue is this going to be? Should I really be adding something as a failsafe?

4 comments

order

nness|7 days ago

I'd still lean heavily on Sass for CSS development. Nestled rules is a particularly big feature in Sass, but not the only one which streamlines development and improves quality.

(With Internet Explorer's deprecation, iOS is now the browser which takes the most time for work-arounds and fixes. As you say, it is not ever-green like most modern browsers and its support for modern standards can break between releases. CSS nesting appears to be better supported since 17.2 back in 2023, but I've not tested it specifically, because well, Sass)

soperj|7 days ago

> With Internet Explorer's deprecation, iOS is now the browser which takes the most time for work-arounds and fixes.

100% agree with you there. Any time i have a problem that creeps up out of nowhere, it's some arcane thing with safari. At least if you're going to enforce a monopoly, update the damned thing!

Minor49er|7 days ago

How much of your userbase is using Safari?

soperj|7 days ago

I have no idea. I've honestly just built the whole business through email, and it's only this year that I've finally got a website together for it. Feels backwards for everything I've ever started (as a web dev), but it's easily been the most successful thing I've ever done.