[Webkit-unassigned] [Bug 154819] WebGL canvas resumes at incorrect size/scale

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 26 08:37:02 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=154819

--- Comment #3 from David <david+webkit at limnu.com> ---
Here's a much more minimal test case that reproduces this issue:

https://dl.dropboxusercontent.com/u/364079/2016-04-26-webkit/broken.html

Repro steps:

- Visit the URL on an affected device (I tested on an iPad Pro). If all is well, you should see an animated border on all 4 sides.
- Press the HOME button to close Safari.
- Press the Safari button again to re-open.
- Note the canvas resizes so that the top and left borders are larger, and the right and bottom borders are not visible.

This issue only occurs when trying to set the WebGL canvas to higher resolution for retina displays, e.g., setting the back buffer resolution to be higher than the CSS pixel resolution by modifying the canvas 'width' and 'height' attributes separately from the CSS style.width and style.height attributes.

My theory is that some code somewhere is assuming that setting the width and height attributes should affect the CSS layout, and my assumptions/understanding is that the CSS size and WebGL resolution sizes of a WebGL canvas should be independent and unaffected by each other.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160426/1c0020c1/attachment.html>


More information about the webkit-unassigned mailing list