[Okular-devel] Regarding css in epubs

Albert Astals Cid aacid at kde.org
Thu Apr 4 17:31:14 UTC 2013


El Dijous, 4 d'abril de 2013, a les 13:19:59, Jaydeep Solanki va escriure:
> On Tue, Apr 2, 2013 at 4:17 AM, Albert Astals Cid <aacid at kde.org> wrote:
> > El Dilluns, 1 d'abril de 2013, a les 13:52:27, Jaydeep Solanki va 
escriure:
> > > Hello,
> > > I remember Albert, telling me about css being ignored in epub documents,
> > 
> > so
> > 
> > > I had a look into it.
> > > I'm not sure if we are adding the stylesheet from external css files to
> > > TextDocument. I tried to add it and it seems to work, it has some
> > > limitations, but I'm working on it.
> > 
> > As said in https://git.reviewboard.kde.org/r/109364/ did you have a look
> > at
> > EpubDocument::loadResource ?
> > 
> > Okay, my bad,  EpubDocument::loadResource() gets all the css from external
> 
> files.
> But I'm not sure, how will we go on fixing this bug, may be you (Albert)
> can give a hint.

Find out why QTextDocument is ignoring CSS files with 
body {
        background-color:#fff;
}

Can you reproduce it in a simple test case?

Cheers,
  Albert

> 
> Cheers,
> Jaydeep
> 
> > Cheers,
> > 
> >   Albert
> >   
> > > Here <http://paste.kde.org/713162/> is something that I tried.
> > > 
> > > Please have a look at it.
> > > 
> > > Cheers,
> > > Jaydeep Solanki
> > 
> > _______________________________________________
> > Okular-devel mailing list
> > Okular-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/okular-devel


More information about the Okular-devel mailing list