|
|
#61 | |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Best practice would be to use the non-prefix if it's supported, prefixed if necessary. Either way is legal and epubcheck doesn't give a fit over their use. To Jon's latest goal post movement - ignoring an unsupported style is exactly what epub is supposed to do. That is not broken. That is what coder's rely on when they create epubs that are backwards compatible...it's all part of the fallback coding concept. Last edited by Turtle91; 01-17-2026 at 03:01 PM. |
|
|
|
|
|
|
#62 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#63 | |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
|
|
|
|
|
#64 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 50,539
Karma: 178402706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
|
|
|
|
|
#65 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
What I'm pointing out is just because something is valid in epub3 does not mean it will work in an older RMSDK. Code:
/* Invert images in dark mode. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme: dark){
img.epub-type-contains-word-se-image-color-depth-black-on-transparent{
filter: invert(100%);
}
img.epub-type-contains-word-se-image-color-depth-black-on-transparent.epub-type-contains-word-se-image-style-realistic{
background: currentColor;
filter: none;
}
}
/* ...or if the device supports prefers-color-scheme. We’ll invert the image in core.css. RMSDK requires a target media as well as a state. */
@media all and (prefers-color-scheme){
img.epub-type-contains-word-se-image-color-depth-black-on-transparent:not(.epub-type-contains-word-se-image-style-realistic){
background: transparent !important;
}
}
Last edited by JSWolf; 01-17-2026 at 07:35 PM. |
|
|
|
|
|
|
#66 | |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
You should always test on your targeted market’s device(s) and code for proper fall-back options to accommodate older devices to a point. |
|
|
|
|
|
|
#67 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#68 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Whatever Jon - you do you. Just don’t tell people they can’t use prefixes.
|
|
|
|
|
|
#69 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#70 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Yeah, not that worried about it. As has been mentioned multiple times, it will ignore a css it doesn’t support… so it’s not going to break anything to include it… you certainly won’t have to go back and fix them later. And if you include both versions, the prefixed and non prefixed, the device/app will simply use the one it supports…
They have a term for that…. Let me think about it… oh yeah: Fallback coding Might want to look into that concept! |
|
|
|
|
|
#71 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If it's made invalid at some point, epubcheck will call it an error.
|
|
|
|
|
|
#72 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,462
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
By your logic: If nook or kobo are made invalid at some point….
That’s a nonsensical argument. It is not now, nor has it been flagged by epubcheck as an error. Just admit when your argument is wrong instead of changing your argument… Prefixes are allowed. If you have the option to use a non prefix then use them both to cover all your bases. |
|
|
|
|
|
#73 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,192
Karma: 150871427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#74 |
|
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Nov 2025
Device: none
|
Standards are created and maintained by mortal not god. What works are the true gold standard.
|
|
|
|
|
|
#75 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,913
Karma: 9553087
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Totally wrong! A prefixed property is a proper one and the epub is not buggy for containing it. It's not wrong to include it (according to the current epub standard, these are valid properties). Where is the truth? In what the standard states or in your words? You're the one who's wrong, and you don't have the humility to admit your mistake.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| page-break-before: always; | avresbo | Kobo Reader | 1 | 03-02-2023 09:30 AM |
| Do you use page-break-after and page-break-inside? | fluoresce | ePub | 14 | 05-24-2017 02:57 AM |
| No page break for H2 | RickAltman | Calibre | 2 | 06-25-2012 12:02 PM |
| PAGE BREAK | JFS-NMF | Recipes | 0 | 03-04-2011 10:15 AM |
| Page break before <b> | flowoeB | Calibre | 14 | 04-12-2009 04:05 PM |