Keep the iPhone home-screen height fix applied, add a viewport readout (1.18.4)

This commit is contained in:
Frederic Jung 2026-10-25 09:00:11 +01:00
parent a46c9f9694
commit 11118ed5e1
No known key found for this signature in database
5 changed files with 25 additions and 7 deletions

View file

@ -202,10 +202,12 @@ test('iPhone home-screen app fills the screen when iOS reports a short viewport'
set(w, 'innerWidth', 844); set(w, 'innerHeight', 370);
ev('resize()');
assert.equal(ev('CH'), 390);
// a correct viewport, or Safari in a tab, leaves the page alone
// once fixed, iOS reports a full viewport: the fix must stay on, or the strip comes back
set(w, 'innerWidth', 390); set(w, 'innerHeight', 844);
ev('resize()');
assert.equal(ev("document.documentElement.classList.contains('iosfix')"), false);
assert.equal(ev("document.documentElement.classList.contains('iosfix')"), true);
assert.equal(ev('CH'), 844);
// Safari in a tab leaves the page alone
set(w.navigator, 'standalone', false); set(w, 'innerHeight', 700);
ev('resize()');
assert.equal(ev("document.documentElement.classList.contains('iosfix')"), false);