I am currently working on creating a mobile landscape design for a website specifically tailored for iPhone SE and iPhone 12. In the process, I encountered an issue that caught my attention:
Within two different breakpoints, I made adjustments to the top value of one of my div classes:
@media (min-width: 844px), screen and (orientation: landscape) {
.search-wrapper {
top: 150px;
}
}
@media (max-width: 667px), screen and (orientation: landscape) {
.search-wrapper {
top: 65px;
}
}
Interestingly, during testing in Google Chrome at a width of 890px, it seems like the styles within max-width: 667px are being applied instead. This behavior is puzzling as I expected it to only apply if the device width was less than or equal to 667px. It appears that currently, the detection is solely based on orientation: landscape, disregarding the max-width condition. Can anyone provide insight into what might be causing this issue?