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

Sure!
As for presnap of position and size, I updated my testcase to pre-snap the top/bottom/left/right coords, and with the exception of what seems like a defect in odd-device-pixel handling on Chrome+Mac (as mentioned in KhronosGroup/WebGL#587), this approach works (as far as I can tell!) for ensuring on-demand 1-1 webgl backbuffer resizing on all desktop browsers today.

Behavior on Android still seems anomalous, but I have less interest in debugging that at the moment. 

However, apps with unpredictable relayouts, who additionally don't redraw every frame, could rely on ResizeObserver for events instead of polling every rAF. It just doesn't seem to be a hard requirement for 1-1 webgl rendering for most apps.

I have updated WebGL's wiki page on HighDPI best-practices to include this new approach based on existing primitives.


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

Received on Thursday, 20 June 2019 05:23:53 UTC