In pseudo-code, something like this:
div:zoom(2){
color:red;
}
which should set color of all the divs to red when the zoom is 2x.
Is it possible with pure CSS?
In pseudo-code, something like this:
div:zoom(2){
color:red;
}
which should set color of all the divs to red when the zoom is 2x.
Is it possible with pure CSS?
You can’t really detect if a user zooms a page. This is due to these restrictions:
For the latter, with JavaScript there are some possibilities to detect the zoom level. You better shouldn’t rely on it and I’d consider twice if to include such a hacky script into a codebase.
See this answer on Stack Overlow: https://stackoverflow.com/a/5078596/3689130
See this Github repository: https://github.com/yonran/detect-zoom