Bug 176841
Summary: | REGRESSION: Fullscreen canvas is not scaled proportionally on Sierra | ||
---|---|---|---|
Product: | WebKit | Reporter: | aparajita |
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | dino, jonlee, sabouhallawa, simon.fraser, thisiskatewinslet, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Mac | ||
OS: | macOS 10.12 |
aparajita
Summary:
When making an element that contains a canvas fullscreen, the canvas seems to be stretched to fit the screen instead of proportionally filling the screen.
OS: macOS 10.12.6 (16G29)
WebKit version: 12604.1.38.1.6, r221956
Steps to reproduce:
1. Go here: https://www.mapbox.com/mapbox-gl-js/example/fullscreen/
2. Click on the fullscreen control in the upper right corner of the map.
Actual results:
The map is stretched horizontally.
Expected results:
The map maintains its aspect ratio.
Additional info:
This is a regression. Safari 10 and earlier did not have this bug.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/34417841>
Simon Fraser (smfr)
I can't reproduce this on High Sierra with a build of r221956. The fullscreen map is not stretched.
aparajita
I can confirm it works correctly on High Sierra. Any chance it will be fixed on Sierra?
aparajita
Another data point: on my 27" Retina iMac, at any resolution lower than the native resolution (2560 x 1440), the stretching does not occur. At resolutions >= the native resolution, the stretching gets progressively worse.
aparajita
Turns out it has to do with the aspect ratio of the display.
See the comment at 5pm on September 14 at https://bugreport.apple.com/web/?problemID=34410953 for more info.
Simon Fraser (smfr)
rdar://problem/34410953