Thread: ePUB Optimizer
View Single Post
Old 03-01-2015, 01:46 AM   #57
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
No, it does support pseudo-classes, although most readers don't... However, the following pseudo-classes are currently not supported:
- :first-line
- :first-letter
- :before
- :after

Now, :before and :after would not be an issue I guess, but the other ones might. Still, it should not cause an error. The issue with these pseudo-classes is that they address portions of text within a tag, which cannot be translated to an XPath statement which I use to inline the CSS (necessary to properly determine the styling of tags). I think I can work around the :first-letter, but the :first-line might be much more difficult. I need to read into the :first-line a bit more, but IIRC the first line will differ on things like font-size and screen-size. If that is the case, it will become quite difficult to incorporate that.
I will look into this more and will report back.

Last edited by Toxaris; 03-01-2015 at 02:04 AM.
Toxaris is offline   Reply With Quote