I work in Chrome Version 67.0.3396.99, development mode, tried the iPhone5 / 6/7 mode and Galaxy s III
Scenario 1.
I go to the site TESThost.com , call in window.onload = function(){console.log(window.devicePixelRatio);} , result 3 and 2.
I create iFrame.src = " PRODACTIONhost.com:1111 ", in it I call in window.onload = function(){console.log(window.devicePixelRatio);} , result 1 and 1.
Scenario 2.
I go to the PRODACTIONhost.com website, call in window.onload = function(){console.log(window.devicePixelRatio);} , result 3 and 2.
I create iFrame.src = " PRODACTIONhost.com:1111 ", in it I call in window.onload = function(){console.log(window.devicePixelRatio);} , result 3 and 2.
All other parameters are identical, the files with the first and second servers are the same, the window size at startup, the scale ...
Tell me why the value changes?