Quote:
Originally Posted by davidfor
The RMSDK supports some media queries. And it seems to need the device to be specifed. The code that @Rand Britten has posted fails with the RMSDK on my Kobo devices. But, changing the query to:
Code:
@media screen and (color) ...
and it works. It also works with "all". Either worked with the kepub renderer.
I did try some other media queries. I tried to test using "@media screen and (min-width: 600px)", but the RMSDK rejected that. This worked with kepubs (though the screen width wasn't exactly what I expected).
A little problem with the above test for "color" is that Kobo devices render in colour. It is a later step that changes it to grey scale. So, the above test is "true".
I tried the @support as well. This didn't break either the RMSDK or the kepub renderer. But, I am not sure if it works. I'm not sure enough of what it can test to be sure I have a valid test for these devices.
|
I've see plenty of ePub that has @media for Kindles that does not fail with RMSDK.
As for @support, given the version of RMSDK Kobo is using, I would say it would not work. To use font features, you would need a later (or current) RMSDK.