View Single Post
Old 07-26-2021, 03:52 PM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,902
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by davidfor View Post
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.
JSWolf is offline   Reply With Quote