New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unusual placement of list elements #521
Comments
crengine does this from before I started hacking it, and when making "enhanced block rendering", I didn't feel like changing it. The way crengine has always been doing it is to compute the max width of all bullet/numbers, and use that as some kind of "INNER margin" for the list item content. It's not per-specs, but it mostly always do the right and nice things (but ok, preventing you and publishers from achieving what they want in some cases.) I don't think I want to change that. And if you want to fight that with style tweaks, you're also a bit doomed for the same reason that you don't know the amount of computed needed margin, so you can't set a proper negative margin to counteract ours :/ |
Thanks for the quick response! As for my goal, it's nothing extraordinary: I'd like control over the indentation of my lists and in a way that is consistent across readers. I agree that Would maybe adding a vendor-specific parameter (such as |
Feasible to trigger our default not-per-specs behaviour with a vendor property: yes - but implementing the per-specs behaviour: not fun :) (but it could be interesting, but anyway, not anytime soon :/) Or may be you could use |
A media query would be quite OK for what I need. Could that be implemented in the foreseeable future? |
Just a media query to find out crengine ? And no need for a per-specs list item margin implementation ? Btw, you may already be able to detect KOReader vs others. For some rare crengine/crengine/src/lvstsheet.cpp Lines 1965 to 1970 in 2bd0bc0
Or maybe even @supports ! |
Gut feeling is that making li's |
fyi: crengine does not support CSS counters. |
Shouldn't that be something like padding-left: -cr-auto, or would that mess with your for free. :-) |
KOReader seems to place the list elements in a strange way. Most browsers and book readers I'm aware of make sure that the outside markers are visible by either setting margin or padding of either the ul/ol or li elements. If all these are set to zero, the markers are off the screen. It is not, however, so in KOReader. Could this be made consistent with other players?
Attached are a simple epub file and screenshots made in KOReader and Calibre Book Viewer.
Any support would be appreciated.
--Gabor
NB: the zip file is the epub file, just renamed, to allow uploading.
test.epub
The text was updated successfully, but these errors were encountered: