vh-check
vh-check copied to clipboard
Value changes on zoom
The value changes on zoom when updating on scroll.
A quick dirty fix could be to remove the possibility to zoom.
I didn't tried it yet, but I've searched if there is a way to have the zoom value without success…
Removing zoom is not recommended for accessibility reasons.
https://dequeuniversity.com/rules/axe/3.0/meta-viewport-large
@Soundvessel yep. It's why I said dirty fix 😄
And I still have no solution for getting the zoom size of a browser
I'm taking another look at this shortly due to a project I'm working on. May take inspiration or utilise this little snippet: https://gist.github.com/gjcourt/653079
@ChrisButterworth I've made a little bit of research:
- there is the tabs.getZoom() API
- this thread propose a bunch of snippets to measure it.
I just need to get the time to check how reliable are all those solutions across browsers…