What is the browser support for the following?
CSS to detect screen orientation:
@media screen and (orientation:portrait) { … }
@media screen and (orientation:landscape) { … }
The CSS definition of a media query is at http://www.w3.org/TR/css3-mediaqueries/#orientation
From How to detect the device orientation using CSS media queries?
I've looked at Can I Use. But it says it is only supported for 48% of users in the UK. Is that correct? Or am I looking at the wrong thing? I'm not interested in Screen.orientation
or anything fancy. I just want to use different styles when the viewport is taller than it is wide.
EDIT: I think that orientation is part of the core media query and is therefore widely supported (around 98%), see https://www.w3.org/TR/css3-mediaqueries/