Created attachment 354093 [details] test page Bug for IphoneX, XR, XS, XSMax If the linked page is opened in a webview or full screen safari uses viewport-fit=cover and the main DIV is positioned in top: env(safe-area-inset-top); (eg: 30px - notch) When the device rotates the media query has the same value, but the div is not at 0px but at the notch position. I was expecting that the variable changed value at rotation. (the linked page uses iphoneX-XS media queries)
As far as I can tell this works as expected now (iOS 16.4)