Hi,
the thing that I really don't understand in the Media Queries module is how the
'and' clause is treated by browsers. I'm a programmer, so to me this clause is
a boolean assertion which means that if both conditions are true, then the
browser should apply the rule/s.
I'm stumbled in a strange case with orientation modes:
@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?).
Here's the test case:
http://codepen.io/gabrieleromanato/pen/KmHct
Hope you can help me to find out what I'm missing. :-)
Thanks.
Gabriele Romanato
Referente IWA ITALY - Regione Abruzzo
International Webmasters Association Italia
http://www.iwa.it | e-mail: [email protected]
Professionista Web - Legge 4/2013
http://gabrieleromanato.com/
http://gabrieleromanato.name/
(English)
______________________________________________________________________
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/