Re: [csswg-drafts] [resize-observer] device-pixel-border-box size (#3554)

The WebGPU community group discussed this at length in a recent face-to-face meeting, with WebGL working group members also present. This ResizeObserver feature is strongly desired for both graphics APIs. People principally involved in the discussion were @atotic (Google), @grorg (Apple), @litherum (Apple), @jdashg (Mozilla) and @kenrussell (Google). Perhaps @Kangz (Google) can provide a link to meeting minutes.

High-level takeaway is that there is general consensus between Safari, Firefox and Chrome that:

1. device-pixel-border-box should not take pinch-zoom into account, because that would allow easy mistakes by web developers. (Envision huge canvases being allocated.)
2. device-pixel-border-box should take page zoom into account.
3. device-pixel-border-box should ignore transforms applied to the element. It can't handle rotations, scales, etc. and shouldn't try to. Developers should know what they're doing when using this box to render 1:1 to device pixels.

(Please correct me if I've misrepresented the conclusions of this discussion.)

Is this feedback sufficient to help move this proposal forward? @atotic pointed out during the meeting that ResizeObserver v0 is implemented in all of Safari, Firefox and Chrome now, and we would collectively love to try prototypes of device-pixel-border-box in all of these browsers.

-- 
GitHub Notification of comment by kenrussell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3554#issuecomment-494199650 using your GitHub account

Received on Tuesday, 21 May 2019 00:53:51 UTC