r/ProgrammerHumor • • Nov 04 '26

Meme okaySureWhyNot

Post image
1.1k Upvotes

32 comments sorted by

8

u/Single-Virus4935 28d ago

Okay, this is easy to explain: WebKit added the property but it ist in the standard. Other Browsers imolement other vendor prefixes to be compatible and thus wie habe a semistandard vendor Attribute.

4

u/AmazinDood 27d ago

strangely enough, every browser implements -webkit-text-stroke, bar IE of course. they can't really remove the prefix now as websites have been using it since 2017, so we ended up with this. I love web dev.

19

u/Modi57 27d ago

I can tell you are German by the auto correct mistakes :D

2

u/m0rph90 26d ago

I instantly thought the same, and and happened to me so many times even without auto-correct, but because of muscle memory :D

2

u/Modi57 26d ago

Yeah. For me it's have vs habe especially, because the b and v keys are so close

38

u/TheBrainStone Nov 04 '26

In a shocking turn of events a vendor specific css property only working for the corresponding browser!!!

169

u/AmazinDood Nov 04 '26

what? -webkit- is for WebKit based browsers which Firefox isn't

44

u/A1oso Nov 04 '26

Technically, Chrome isn't WebKit based anymore, either. They just kept the -webkit- prefix to support more websites, and Firefox increasingly supports attributes with -webkit- for the same reason.

70

u/wasdninja Nov 04 '26

It uses Gecko in case anyone's wondering. 

57

u/GOKOP Nov 04 '26

Bruh this is the opposite of what OP is talking about lol. This is a webkit specific option but it's supported by Firefox. Firefox isn't based on webkit.

10

u/ScroogeMcQuacks Nov 04 '26

exactly. Also this is completely normal and common. When a big browser picks up a standard the other ones follow their lead to support all websites.

1

u/kus1987 28d ago

we aren't doing this anymore though, right? this vendor prefix thing is very annoying. I hope we don't do that anymore with `evergreen` browsers...

3

u/ScroogeMcQuacks 28d ago

Ideally it’s all decided in cooperation with w3c, but I think googles influence is pretty damming.

1

u/pidddee Nov 04 '26

It can translate most webkit rules to it's own. -webkit-fill-available for example

151

u/0815fips Nov 04 '26

I wish this was the only example.
When uploading whole directories, you got webkitDirectory and webkitRelativePath. That's the most disgusting thing that every browser supports.

147

u/rbbdk Nov 04 '26

Why not use text-stroke directly?

201

u/the_horse_gamer Nov 04 '26

text-stroke isn't supported by any browser. only -webkit-text-stroke is supported.

46

u/rbbdk Nov 04 '26

I see. Although I did actually google for this, I now feel reminded of Jerry Belson's "What happens when you assume" sketch.

37

u/sebovzeoueb Nov 04 '26

you have to include all the different prefixes for everything on every browser version just in case

81

u/AmazinDood Nov 04 '26

yes I know why it's like this don't kill me

53

u/Stummi Nov 04 '26

Tell me why it is like this

151

u/[deleted] Nov 04 '26

[removed] — view removed comment

73

u/Dangerous_With_Rocks Nov 04 '26

oh so you’re saying i’m the problem?!?

15

u/micalm 29d ago

This pretty much sums ups the ENTIRE history of attempts to standardize HTML and CSS btw. I think everyone gave up now with the "living standard" approach.

12

u/Nixinova 29d ago

It's also a similar reason to how user agent strings are gargantuan nonsense.

 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edge/131.0.0.0

All that just for "Edge/1.31".

Actual, legitimate insanity

4

u/DaBittna 28d ago

I can’t check right now, but wouldn’t modern Microsoft Edge be `Edg`? `Edge` was used by the versions of Edge before it became Chromium-based

4

u/Nixinova 28d ago

Oh I thought that was a typo and corrected it. That's even worse lmfao

1

u/Webbiii 28d ago

Legitimate question: Why do browsers actually include all those other browsers in their user agent? Doesn't that kind of defeat the whole purpose of having a user agent?

3

u/Nixinova 28d ago

It's like a 90s/2000s remnant. Some browses didn't support certain features, or had outdated ones, so they looked at the user agent string to determine what features to enable/disable. Then the websites didn't update for decades. So for backwards compat, they have to include the user agents that enable the features so that the websites continue to work. It's a whole mess.

4

u/StaticFanatic3 Nov 05 '26

She stroke my text til I WebKit