Mobileread
KOreader rendering: CSS rule after @namespace ignored
#1  maraskan_user 01-25-2021, 01:10 PM
Say you have a CSS file like this:
Code
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA { color: red; font-size: 2em; font-style: italic;
}
.StyleB { color: red; font-size: 2em; font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
[epub] GF Tests 3.epub (2.7 KB, 15 views)
Reply 

#2  Frenzie 01-25-2021, 04:15 PM
That's probably a bug and/or unsupported for now.
Reply 

#3  JSWolf 01-25-2021, 05:55 PM
Quote maraskan_user
Say you have a CSS file like this:
Code
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA { color: red; font-size: 2em; font-style: italic;
}
.StyleB { color: red; font-size: 2em; font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
Report it in the Github so it can be fixed.

https://github.com/koreader/koreader/issues
Reply 

#4  Frenzie 01-27-2021, 04:22 AM
See https://github.com/koreader/koreader/issues/7199
Reply 

#5  JSWolf 01-27-2021, 06:58 AM
Quote maraskan_user
Say you have a CSS file like this:
Code
@namespace h "http://www.w3.org/1999/xhtml";
.StyleA { color: red; font-size: 2em; font-style: italic;
}
.StyleB { color: red; font-size: 2em; font-style: italic;
}
Is it normal that text that uses StyleA does not receive any formating, while with StyleB it does? (See sample epub)
Until this is fixed, the solution is to install the Quality Check plugin in Calibre and use it to search for @namespace and then in the Calibre editor, remove it.
Reply 

Today's Posts | Search this Thread | Login | Register