FBReaderJ icon indicating copy to clipboard operation
FBReaderJ copied to clipboard

`<hr>` with CSS visibility:hidden + padding should show up as paragraph break but in FBReader it doesn't

Open ghost opened this issue 7 years ago • 2 comments

I tried to introduce a paragraph break (empty blank line between two paragraphs with the following approach):

<p>Some text</p>
<hr class="paragraph_break"/>
<p>Following text</p>
.paragraph_break {visibility: hidden; height:0px;border-style:none;display:block;padding-bottom:0.5em;padding-top:0.5em;}

This works in all readers I have tested (Calibre, Kindle Previewer 3, Microsoft Edge built-in EPUB reader) just fine... but not in FBReader for Android. There, the <hr> just disappears without any indication anything is there, not even a hint of additional vertical blank space.

This seems like a major bug to me, because semantically, clearly there should be a visible separator there, and visibility:hidden is pretty well-defined (and it's not the same as display:none).

ghost avatar Jan 28 '18 04:01 ghost

See issue #30. <hr> is simply not supported. A major bug indeed, not fixed since 2012 for some reason.

link2xt avatar Apr 03 '18 16:04 link2xt

Well, by now I have simply accepted my ebooks don't work correctly in FBreaderJ. They work fine literally everywhere else I tried, so at some point I simply stopped caring.

ghost avatar Apr 03 '18 17:04 ghost