New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve the system of aliases/abbreviations #558
Comments
Names was taken from Can I Use database. We added custom names in camel case (so, it is |
@ai thanks for the quick response. I like the concept of taking them from the Can I Use database, but if they're poorly named in the database then it seems like Browserslist should choose a different naming policy if it wants to provide a useful experience for the end developers. (If Can I Use had come up with a good naming system that would have been great to have it better upstream.) The aliasing concept is also good. But I think the issue is that tools like
This is pretty hard to understand. It might be a good idea for those "helper" tools to return the more readable names instead (or even both names). It seems like the browserl.ist website is down, but this would be the perfect place to be able to provide many naming schemes at once to very clearly create the link in people's mental models. For example each entry could look something like: Internet Explorer [market share] [wikipedia link] iOS Safari / WebView [market share] [wikipedia link] And then I think a really common one that trips me up is to add |
Browserslist internal API must return Can I Use names, since Autoprefixer and other tools expect it. But in next major release we can use human-readable names in default output and keep Can I Use names for Should we add some fancy table view? Like:
We can even add a link to less known browsers in this output. |
Loving that table layout!
|
The unnecessary abbreviations makes this API extremely difficult to use. I've never successfully used browserslist without looking up the docs to see what the exact naming system I have to type is.
ios_saf
instead ofios_safari
? It saves 3 characters in exchange for abbreviating "safari" to "saf" which no one does.and_chr
? It saves just a few characters with no real benefit either.bb
? It makes it even more likely that people won't know what it is, and then remove it from their list.I realize you have "aliases", which is good in theory. But the way aliases are implemented is poorly designed too:
explorer
allowed, butinternet_explorer
is not?op_mini
expand tooperamini
and ignore snake case all of a sudden?and_chr
expand tochromeandroid
and reverse the order?The docs go to the trouble of talking about how important it is not to ignore less popular browsers. But the naming and aliasing system used by the tool itself are designed such that people are going to ignore browsers whose names they can't even read.
The text was updated successfully, but these errors were encountered: