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.
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.
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.
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.
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.
Mozilla has their own vendor prefix -moz- but lazy webdevs only used -webkit- for experimental things and forgot to remove the prefix when features became stable, so Mozilla started to support it too
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.
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?
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.
8
u/Single-Virus4935 19d 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.
38
u/TheBrainStone 22d ago
In a shocking turn of events a vendor specific css property only working for the corresponding browser!!!
151
u/0815fips 22d ago
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 22d ago
Why not use text-stroke directly?
81
u/AmazinDood 22d ago
yes I know why it's like this don't kill me
4
u/StaticFanatic3 22d ago
She stroke my text til I WebKit