Skip to content
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

Some combination of authored styles causing "cover" image to disappear #103

Open
danielweck opened this issue Mar 22, 2021 · 1 comment
Open

Comments

@danielweck
Copy link
Member

This happens in both scroll and paginated modes in Thorium. I am filing in ReadiumCSS to see if this affects other reading systems.

EPUB contains HachetteEpubV1.3.css with:

.sectionpp {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    text-align: center;
    position: absolute;
}

and XHTML markup:

<section xmlns="http://www.w3.org/1999/xhtml" class="sectionpp" xmlns:epub="http://www.idpf.org/2007/ops" epub:type="cover" role="doc-cover"><a id="cover" tabindex="-1"><img alt="" class="imgpp" src="cover/cover.jpg" /></a>
</section>

If I remove position: absolute;, or height: 100%;, the image is displayed normally. Otherwise, invisible (the image CSS box itself is fine, it is the containing div that causes issues)

Screenshot 2021-03-22 at 15 26 32

@vincent-gros
Copy link

Hi @danielweck,

This CSS was tested in Thorium by Hachette (among other reading engines), and worked perfectly.
What do you suggest? Is this more a Readium CSS issue, or should we investigate on our side?

We'll be happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants