News for hackers. Stuff that matters.
Re:State of CSS by dmitriid on Friday October 21, 2022 @05:09PM (#33293072)
When it comes to CSS Safari is rarely behind, and often ahead.

When it comes to Chrome-only non-standards Safari is right where it needs to be: not implementing this bullshit.

Re:State of CSS by azemetre on Friday October 21, 2022 @05:33PM (#33293279)
Thank you for calling this out. I feel like there is a psyops campaign paid for by Google denouncing any organization/tech that doesn't blindly follow their non-standard standards.
Re:State of CSS by soperj on Friday October 21, 2022 @05:52PM (#33293415)
I don't even use chrome, nor do I develop against it.
Re:State of CSS by eyelidlessness on Friday October 21, 2022 @08:54PM (#33294582)
Then presuming you use Firefox, the only viable non-Chromium alternative that’s mature enough to fit your implicit preference, you’re surely aware there are a wide variety of things not supported in that browser too. If you’re inclined to look for patterns, you’ll find that quite a lot of them overlap with Safari—either for the same privacy-respecting reasons, or the same standards process-respecting reasons, or the same second implementation in the standardization process reasons.

It’s good that both browsers are a hindrance to Google just shipping stuff and that stuff becoming a de facto web standard. It’s even good that they have different priorities because that gives them different perspectives from which to catch mistakes before they’re almost totally irreversible.

Re:State of CSS by spoils19 on Friday October 21, 2022 @09:14PM (#33294716)
This is absolutely true in my experiences. I don't think I've genuinely met one Chrome user who hasn't beamed at the prospect of using Safari, yet in light discussions they seem to promote Google products extensively.
Re:State of CSS by dmitriid on Saturday October 22, 2022 @02:59AM (#33296154)
Google has a very large share of developers' minds.

They have a large network of "developer advocates" whose only job is to promote Google and Chrome under the guise of promoting web standards. And, of course, these "web advocates" will often go out of their way to vilify other browsers.

They own web.dev where they push out propaganda pieces and present their own work as fait accompli often without as much as mentioning that no, these are not standards.

Coupled with the fact that Chrome is actually the most dev-friendly browser, and you have huge swaths of dev community lapping up whatever Chrome throws over the wall without a single second thought.

Re:State of CSS by hot_gril on Friday October 21, 2022 @05:53PM (#33293417)
I mostly agree, but mobile Safari seems intentionally behind on PWAs, and I do blame Apple's obvious conflict of interest with the App Store. Biggest thing is lack of support for notifications, though supposedly that's finally changing after years: https://www.searchenginejournal.com/web-push-coming-to-ios/4...
Re:State of CSS by dmitriid on Saturday October 22, 2022 @02:54AM (#33296129)
> mobile Safari seems intentionally behind on PWAs

There's no such thing as a PWA. There are a dozen disparate standards, and everyone has their own idea which collection of standards constitutes a PWA.

Mobile Safari supports the absolute vast majority of those standards.

IIRC the only "major" standard from that bunch that mobile Safari didn't support was push notifications.

Re:State of CSS by mccorrinall on Saturday October 22, 2022 @09:49AM (#33298291)
The still don’t support web push & notifications on ios and ipados. Even when you enable push api and notifications in experimental settings of safari it just doesn’t work.

Or am I doing something wrong?

Re:State of CSS by hot_gril on Sunday October 23, 2022 @05:28PM (#33310450)
You're not missing anything. It's not supported. That's one of the most important features.

The other thing is that no website can ask you to install it like on Android. You have to go to the "share" menu and add to homescreen. Most users don't know about that.

Re:State of CSS by woojoo666 on Friday October 21, 2022 @11:02PM (#33295300)
Safari is so behind in terms of lack of support for free media formats/codecs like webm, webp, and av1. You can't even switch browsers to view them, since it's all webkit
Re:State of CSS by dmitriid on Saturday October 22, 2022 @02:49AM (#33296109)
> support for free media formats/codecs like webm, webp, and av1.

You mean codecs developed exclusively by Google (often in rapid succession) and which Google aggressively pushes by abusing its dominant position https://www.protocol.com/youtube-tv-roku-issues

Re:State of CSS by woojoo666 on Saturday October 22, 2022 @07:11PM (#33303066)
What's an alternative free media format? Not everything Google does is bad. In fact if you're against companies abusing their dominant position, Apple is perhaps one of the worst.

Worth noting that Safari is starting to roll out support for VP9, one of the formats by Google. Unfortunately this format is already rather outdated, and if Apple was going to support a free format now they should have gone for AV1. Which goes to show how slow they are

Re:State of CSS by alwillis on Sunday October 23, 2022 @12:49AM (#33304637)
Safari is so behind in terms of lack of support for free media formats/codecs like webm, webp, and av1

Both WebM [1] and WebP [2] have been supported by Safari for nearly two years now.

WebKit added support for AVIF (essentially the single-frame version of AV1) back in September [3]; AV1 is expected during the iOS 16/macOS Ventura release cycle.

[1]: https://webkit.org/blog/11648/new-webkit-features-in-safari-...

[2]: https://webkit.org/blog/11340/new-webkit-features-in-safari-...

[3]: https://webkit.org/blog/13152/webkit-features-in-safari-16-0...

Re:State of CSS by woojoo666 on Sunday October 23, 2022 @05:51PM (#33310631)
> Both WebM [1] and WebP [2] have been supported by Safari for nearly two years now.

Which was incredibly late. For example, Firefox had it since v28 [1], which was 8 years ago. Firefox has also supported AV1 for 3 years already. And obviously Chrome supported both for longer

[1]: https://caniuse.com/webm

[2]: https://caniuse.com/av1

Re:State of CSS by alwillis on Sunday October 23, 2022 @09:54PM (#33312177)
Which was incredibly late

So we’re doing this? Instead of acknowledging your statement was incorrect, now it’s about how supposedly late Apple was in supporting the formats you said they didn’t support.

And no disrespect to Firefox, but them having WebP support 8 years ago (and AV1 support 3 years ago) in the big picture doesn’t matter that much outside of the web developer/HN/geek echo chamber and the single digit percent of market share Firefox represents. Nothing got held up; a properly designed site would fall back to JPEG or PNG if WebP wasn’t supported by a particular browser. Not the end of the world.

But when your device is in a “billion pockets y’all” it matters. That was true a few years ago when Oprah said it; it’s closer to two billion pockets (and desks and backpacks).

It’s pretty common on HN to trash Safari when it doesn't support web standards and then find another way to trash Safari when it does support those standards and then ignore Safari when it ships a feature first and pretend it didn’t happen or doesn’t matter.

A quick list of web features shipped first:

• first browser engine to implement the new color syntax defined in CSS Color Module Level 4

• first browser to support drawing shapes, text, gradients, and shadows with wide gamut CSS colors on Display P3 canvases

• first browser to ship a proposed web standard for measuring advertising in a privacy-preserving way – Private Click Measurement

• the only browser that supports lch() and lab() color functions (and probably the only browser to support these predefined color spaces: a98-rgb, prophoto-rgb, rec2020, xyz)

• first browser to ship large, small and dynamic viewport units

• first browser to ship :has() parent selector (March vs August 2022 and later for Google and Mozilla)

There are more but these are the most current ones after a few minutes of Googling. Depending on the use case, some of these may be critical to some web developers.

I get it—Safari being current and in some cases, ahead with their support of web standards that they, Google/Microsoft and Mozilla have agreed to—I’m discounting the proposals from Google when they ship stuff only they want/care about—doesn’t fit the prevailing HN narrative that “Safari is the new IE” and is holding the web back. Just objectively examining the state of the web back then would show how laughably ahistorical [1] this view is, but that’s where we are.

[1]: ahistorical—lacking historical perspective or context

Re:State of CSS by woojoo666 on Monday October 24, 2022 @06:00PM (#33323196)
> So we’re doing this? Instead of acknowledging your statement was incorrect, now it’s about how supposedly late Apple was in supporting the formats you said they didn’t support.

I think you should re-read my comment. Fyi I already knew that Safari now supports vp9 webm. As a web dev I keep up with this stuff. In my comment I said that they are so behind.

There's another list of Safari's failures here: https://httptoolkit.tech/blog/safari-is-killing-the-web/. In fact from the article

> According to Can I Use's metrics, Safari is lacking about 10% behind Firefox and 15% behind Chrome in feature support.

And if these were only features that Google cared about, then Safari wouldn't be behind Firefox. But they are.

And in terms of webm/webp support, imo this stuff does matter. Webm/webp is much more efficient than gifs for audioless video content. But if a startup is moving fast and they see Safari doesn't support webp, they simply aren't going to use it. They're not going to bother storing two formats for everything. So now everybody's page load speed is impacted.

Re:State of CSS by joe-user on Tuesday October 25, 2022 @10:59AM (#33331419)
> I think you should re-read my comment. Fyi I already knew that Safari now supports vp9 webm. As a web dev I keep up with this stuff. In my comment I said that they are so behind.

Your comment:

> Safari is so behind in terms of lack of support for free media formats/codecs like webm, webp, and av1. You can't even switch browsers to view them, since it's all webkit

Maybe you do keep up with this stuff, and you did say they are so behind, but you also said "You can't even switch browsers to view them", which is not true.

Re:State of CSS by woojoo666 on Tuesday October 25, 2022 @07:02PM (#33337371)
Ok I see, sorry I forgot to clarify that I was talking about iOS and iPadOS for that statement
Re:State of CSS by Sateeshm on Saturday October 22, 2022 @01:06AM (#33295782)
I was testing my app on safari about a year ago, at the time even a simple property like transform required webkit vendor prefix.
Re:State of CSS by dmitriid on Saturday October 22, 2022 @03:03AM (#33296174)
Safari hasn't required a prefix since version 9 (except for the backface-visibility property which I personally never heard of) https://caniuse.com/?search=transform

Last release of version 9 was in 2016, 6 years ago.

Re:State of CSS by ricardobayes on Saturday October 22, 2022 @07:35AM (#33297409)
So what about lookbehind regex for example? Every single major browser supports it apart from Safari. https://caniuse.com/js-regexp-lookbehind
Re:State of CSS by dmitriid on Saturday October 22, 2022 @08:29AM (#33297767)
Yes, there are a few specs where I wish they were faster in implementing them.
Re:State of CSS by lenkite on Sunday October 23, 2022 @04:39AM (#33305500)
I just wish Safari was available on other operating systems - windows, android, etc.