View Single Post
Old 10-06-2014, 05:02 AM   #88
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by Toxaris View Post
Media queries are not supported in ePUB2, they are in ePub3. ADE does not work with ePUB3 yet.
I know I'm replying to a very old post, and I'm being somewhat pedantic here, but I think it's worth noting that CSS "at rules" were defined way back in the original CSS1 specification, and any spec-compliant CSS parser is required to ignore any syntactically valid rules that it does not understand. So if ADE chokes on media queries, it's still a spec compliance bug, even according to the EPUB 2 specification.

With that said, it's easy enough to work around such bugs by moving any rules that anger ADE into a separate CSS file.


Quote:
Originally Posted by luckyparrot View Post
I have found that ADE tolerates both '@media amzn-mobi' and '@media amzn-kf8' without ignoring the whole CSS file. Anything else (that I've tried) causes ADE to ignore the whole CSS file, even 'not amzn-mobi'. Has anyone had any success with any other media queries?
IIRC, it works for basic media queries, but chokes on more complex ones.
dgatwood is offline   Reply With Quote