Doesn't work in Safari
See original GitHub issueHello.
I’m opening the demo in a macOS Safari Version 14.0.1 (16610.2.11.51.8) using responsive mode (iPhone 8). Demo says You are a desktop or laptop
:
I expect You are a tablet or mobile phone
In comparison, here is the same demo with the same viewports on Chrome and Firefox. Both are fine.
I’m struggling with the same issue in my project using the iPad (iOS 14) device.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
If Safari on Mac doesn't open a webpage or isn't working as ...
If Safari on Mac doesn't open a webpage or isn't working as expected · Reload the page. To reload a page, choose View...
Read more >Safari Not Working On iPhone? Here's The Fix.
What's Really Causing The Problem? · Close And Reopen Safari · Clear Safari History And Website Data · Restart Your iPhone · Update...
Read more >Safari Not Working on Your iPhone? Here's How to Fix It
Reset your wireless router. Turn mobile data off and turn it back on again. Clear Safari cache and data. Restart your iPhone.
Read more >8 Ways to Fix Safari Not Working on an iPhone - MakeUseOf
1. Turn Off Safari Suggestions · 2. Turn On Cellular Data for Safari · 3. Edit Your Screen Time Settings · 4. Clear...
Read more >How to fix Safari not working on Mac? - MacPaw
Why Safari isn't working on Mac · Too many tabs opened · Too much cache, downloads, and history logs that have not been...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Looks like the issue is just https://stackoverflow.com/questions/38220485/safari-responsive-design-mode-css-media-query-device-not-applied (Safari doesn’t like device-width anymore).
I’ve updated the sample website to reflect that reality so it is consistent between browsers - it was last published years ago so it was pretty out of date, I updated the repo to auto publish so it doesn’t happen again.
I also updated the README to remove usage of device properties since they have unexpected behavior now - we don’t want to be encouraging people to use them.
@roboxv That is really strange then - this library is just setting up browser media queries, it should be getting any different results between the CSS queries and the matchMedia JS queries. I just updated to big sur so I can test on the latest safari and see what the deal is.