Open karlcow opened 8 years ago
Created a test case with an attempt at seeing what can be done to try to compensate for the zoom. http://codepen.io/anon/pen/obOJgd
Depressing usage statistics: https://www.chromestatus.com/metrics/feature/timeline/popularity/691
We have a non-public (private, not on the web) web application that relies on zoom with a value that is not 1. It can't be replaced by a transform/scale (CodeMirror doesn't support being draw inside transformed elements).
@mleduque could you create a reduced test case of what you are doing with zoom on codepen or similar. So we can have a better understanding why other solutions are not possible? Thanks.
Very quickly done: https://jsfiddle.net/zu3m8z94/14/
To see the problem, click on the top white zone (gives focus), type some text, see the cursor/caret is desynchronized with actual text insertion, horizontally and vertically (you must insert new lines to see vertical desynch). Click on the bottom one, the same thing doesn't happen. Obviously, doesn't work on Firefox.
There is some discussion here, https://github.com/codemirror/CodeMirror/issues/2443
FYI the W3C CSS checker (validator) now categorizes the zoom
property as a “vendor extension” — which means that if a user has selected the option to treat “vendor extension” as warnings, a warning message (rather than an error) is emitted when zoom
is encountered in a stylesheet.
Thanks for the heads up @sideshowbarker
The number of dependencies is growing but very slowly on https://bugzilla.mozilla.org/show_bug.cgi?id=390936
Zoom is implemented in IE, Edge, Blink and WebKit This is not implemented in Firefox.
There is an intent to kill it from the CSS WG but they are looking for more details about it. See discussions about Zoom use cases:
The current Webcompat issues for Firefox.
Tokyo Metro
https://webcompat.com/issues/1118
CircleSunkus
https://webcompat.com/issues/952
and
leftoversalad.tumblr.com
https://webcompat.com/issues/1551