Having an issue with two media queries:
<link rel="stylesheet" media="only screen and (orientation: landscape)" href="/stylesheet/landscape.css" />
<link rel="stylesheet" media="only screen and (orientation: portrait)" href="/stylesheet/portrait.css" />
In the first media query, a class has a property that is not present in the second query:
/* Landscape view style */
.myClass { position: relative; border-right: 1em solid red; }
/* Portrait view style */
.myClass { position: relative; }
Despite loading the page in portrait view, a right border is still showing! I can override this by adding the border property in portrait view, but is there a way to prevent Safari from applying the landscape CSS when it's in portrait mode?