[csswg-drafts] [cssom-view] Add a zoomchanged event and window.onzoomchanged event handler (#3834)

a2sheppy has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] Add a zoomchanged event and window.onzoomchanged event handler ==
While working on a docs update for [Window.devicePixelRatio](https://drafts.csswg.org/cssom-view/#dom-window-devicepixelratio) ([MDN page](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio)), I saw it mentioned in the page, rightly, that there isn't an event you can monitor to detect changes to this property, which can affect layout requirements and how you need to render or present content, and might affect which images you want to use, etc.

For that reason, I suggest adding a `zoomchanged` event, which would be fired by the user agent after it alters the zoom level of the page. This could then be monitored not only to sense changes to `devicePixelRatio` but for any other reasons that detecting zoom level changes could be helpful.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3834 using your GitHub account

Received on Tuesday, 16 April 2019 16:39:48 UTC