Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2026, 02:59 PM   #61
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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:
Originally Posted by jhowell View Post
While I agree with your stance on property names that begin with "-webkit-" and other prefixes, if you look at the cited appendix it becomes clear that "Prefixed properties" in this case refers to property names that begin with the "-epub-" prefix.
I noted that as well. However, the spec is talking about ePub so it would make sense to only demo -epub- prefixes. In the real world the devices/apps DO support prefixes of all types to some degree or another. The argument was being made that using prefixes wasn't allowed...that is not true.

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.
Turtle91 is offline   Reply With Quote
Old 01-17-2026, 04:12 PM   #62
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: 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:
Originally Posted by Turtle91 View Post
I noted that as well. However, the spec is talking about ePub so it would make sense to only demo -epub- prefixes. In the real world the devices/apps DO support prefixes of all types to some degree or another. The argument was being made that using prefixes wasn't allowed...that is not true.

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.
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
JSWolf is online now   Reply With Quote
Old 01-17-2026, 05:31 PM   #63
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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:
Originally Posted by JSWolf View Post
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
You keep forgetting the word “sheet” when you say this. Those broken devices might ignore the entire css “sheet” if it sees something it doesn’t like… that’s why people actually have 2 (or more) css sheets where they put the styles that those old, broken, devices might barf on…. This also part of that backwards compatible - fallback coding that good coders plan for.
Turtle91 is offline   Reply With Quote
Old 01-17-2026, 06:39 PM   #64
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 50,539
Karma: 178402706
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
But due to older versions of RMSDK ignoring the entire CSS when it thinks there is an error, you have to take that into account. We have a number of people using devices with older versions of RMSDK and some are being sold now. We have Kobo & B&N being sold with older RMSDK. With the nook, you have no choice. We Kobo, you may or may not have a choice. The thing is, most users would not know this. All they would think is that there is something wrong with the eBook.
Testing on my Kobo Forma's version of RMSDK, it will disregard the entire stylesheet if a structural/syntax error is found (missing ;, missing { or }, etc.). For an unknown property, it properly treats that one item/line as a null operation while the rest of the stylesheet is used.
DNSB is offline   Reply With Quote
Old 01-17-2026, 07:29 PM   #65
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: 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:
Originally Posted by DNSB View Post
Testing on my Kobo Forma's version of RMSDK, it will disregard the entire stylesheet if a structural/syntax error is found (missing ;, missing { or }, etc.). For an unknown property, it properly treats that one item/line as a null operation while the rest of the stylesheet is used.
I just took the eBook Voyage of the Damned from StandardEBooks. As it comes, it's broken in an older RMSDK. But if you remove two simple things that aren't actually needed it works well enough.

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.
JSWolf is online now   Reply With Quote
Old 01-17-2026, 08:40 PM   #66
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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:
Originally Posted by JSWolf View Post
I just took the eBook Voyage of the Damned from StandardEBooks. As it comes, it's broken in an older RMSDK. But if you remove two simple things that aren't actually needed it works well enough.

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;
	}
}
That’s cool - but the standard has been there to accept prefixes since early on in ePub coding - and it is still valid today.

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.
Turtle91 is offline   Reply With Quote
Old 01-18-2026, 07:04 AM   #67
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: 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:
Originally Posted by Turtle91 View Post
That’s cool - but the standard has been there to accept prefixes since early on in ePub coding - and it is still valid today.

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.
If that code was in a commercial ePub, it's entirely possible that is could be purchased and used by people who have a nook or a Kobo. Besides, that code is not needed at all. Once you get into the chapter 1, there are no images.
JSWolf is online now   Reply With Quote
Old 01-18-2026, 07:47 AM   #68
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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.
Turtle91 is offline   Reply With Quote
Old 01-18-2026, 07:49 AM   #69
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: 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:
Originally Posted by Turtle91 View Post
Whatever Jon - you do you. Just don’t tell people they can’t use prefixes.
Use them now, regret it later.
JSWolf is online now   Reply With Quote
Old 01-19-2026, 05:31 PM   #70
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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:
Originally Posted by JSWolf View Post
Use them now, regret it later.
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!
Turtle91 is offline   Reply With Quote
Old 01-19-2026, 05:39 PM   #71
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: 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.
JSWolf is online now   Reply With Quote
Old 01-19-2026, 07:52 PM   #72
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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.
Turtle91 is offline   Reply With Quote
Old 01-20-2026, 07:38 AM   #73
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: 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:
Originally Posted by Turtle91 View Post
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.
If youi have to use a prefix instead of the proper ePub code, then your program is buggy.
JSWolf is online now   Reply With Quote
Old 01-20-2026, 09:46 AM   #74
icearch
Connoisseur
icearch began at the beginning.
 
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.
icearch is offline   Reply With Quote
Old 01-20-2026, 10:34 AM   #75
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,913
Karma: 9553087
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
If youi have to use a prefix instead of the proper ePub code, then your program is buggy.
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.
RbnJrg is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 03:49 PM.


MobileRead.com is a privately owned, operated and funded community.