Opera Mini Screen Size, DPR and Viewport Inaccuracies
-
hexalys last edited by
Opera Mini for Android seem to have a major issue with the correct determination of the 'viewport-width' size.
I have tested Opera Mini for over a year now, and whether on an SDK emulator or actual device, it's always incorrect.Here is a use case on a Fire HD Tablet (Amazon Kindle Fire HD 7" 4th Gen):
The physical screen is 1280x800 1.5 DPR. Which at a Portrait Orientation should result in a layout Screen Size of 534 x 854 px.
Hover Opera Mini for Android (both 8 and 9 beta) returns a viewport-width of 381px with a DPR of 2.1,screen.width
of 381px andwindow.outerwidth
of 800px.So the math 800/2.1 is correct, but where does it pull a
docElem.clientWidth
of 381px from the device data? I don't see how you get to that result. -
hexalys last edited by
Found the answer to this from @andreasbovens. I guess we have no choice to deal with Opera Mini doing its own thing.