On 11/30/13, 11:55 AM, Bjoern Hoehrmann wrote:
* Gabriele Romanato wrote:
@media screen and (orientation: landscape ) { /* ... */ }
As far as I know, browsers - even desktop browsers - support the
DeviceOrientation event plus a series of APIs related to orientation. The
point is that on my Mac I actually cannot rotate my screen! Further, what
have JS APIs to do with CSS? Do they affect indirectly the way a browser
interprets certain rules (like in this case?).
Well, http://www.w3.org/TR/css3-mediaqueries/#orientation the feature has the
value `landscape` if the `height` feature is smaller than the `width`
feature. It does not have anything to do with APIs or whether you can rotate
your screen.
I think that's correct. If I change Codepen's results frame width, the text
changes from green to red as the frame moves through the point where the frame
is a square. I imagine the _device_ orientation is only relevant for devices
that display the browser at full screen.
As for the "and" being a logical relation, I believe that is also correct. The
color will be green for print, for example.
FWIW I have a hard time understanding the W3 specifications too! Relying more on
the Mozilla Developer Network these days. :)
--
Cordially,
David
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/