Error when using media query "orientation: landscape"
Opened this issue · 0 comments
Hi!
I have started using your repository to switch between a desktop (orientation: landscape
) and mobile (orientation: portrait
) versions of a website. However, when using these orientation
media queries, I was getting errors that I traced to the parsing of the media query in MQParser.prototype.parse
in the file device.js. Apparently, using and
as the criteria to split up the elements of a media query did not take into account that and
is included in the word landscape
. I developed a simple workaround to replace landscape
with a dummy word, and I substituted landscape
back again after the query was parsed. However, you may want to update the code to handle this situation in a more elegant manner. Thanks for developing this very useful capability!