Skip to content
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

mobile-to-desktop option is negated by feature support #761

Closed
steverep opened this issue May 22, 2023 · 1 comment · Fixed by #767
Closed

mobile-to-desktop option is negated by feature support #761

steverep opened this issue May 22, 2023 · 1 comment · Fixed by #767

Comments

@steverep
Copy link
Contributor

The mobile-to-desktop flag appears to be completely negated by adding an intersection with a feature query. For example:

$ npx browserslist --mobile-to-desktop "defaults"
and_chr 113
and_chr 112
and_ff 113
and_ff 112
and_qq 13.1
and_uc 13.4
android 113
android 112
...

But adding any supports feature query produces different results:

$ npx browserslist --mobile-to-desktop "defaults and supports es5"
and_chr 113
and_ff 113
and_qq 13.1
and_uc 13.4
android 113
...

I get why this is happening since caniuse doesn't keep data on older mobile versions, but it seems to me that the entire point of the mobileToDesktop option is to assume that mobile version numbers act like their desktop counterparts, so this is definitely unexpected and should be fixed IMO.

@ai
Copy link
Member

ai commented May 23, 2023

I will need a help with PR here since I am busy on another project right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants