Re: epub3 cover bug?
Bob Stayton <[email protected]> Tue, 15 Nov 2022 23:32:39 -0800
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
That's a bug. The imageobject generates a table to manage a viewport,
but that generated table does not get processed as a node set (as it
should) to fix up its attributes for epub3.
Bob
On 11/15/2022 5:51 PM, Michael Urban wrote:
> The epub3 stylesheet takes:
>
> <cover>
> <mediaobject role="cover">
> <imageobject>
> <imagedata width="554px" format="PNG"
> fileref="images/TitlePage.png"/>
> </imageobject>
> </mediaobject>
> </cover>
>
> and produces cover.xhtml:
>
> <?xml version="1.0" encoding="utf-8" standalone="no"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <title>Cover</title>
> <style type="text/css"> img { max-width: 100%; }</style>
> </head>
> <body>
> <div id="cover-image">
> <table border="0" style="cellpadding: 0; cellspacing: 0;" width="554">
> <tr>
> <td>
> <img src="images/TitlePage.png" width="554"/>
> </td>
> </tr>
> </table>
> </div>
> </body>
> </html>
>
> But epubcheck3 isn't happy, because border="0" should be border="", and
> <table> should have no width attribute.
>
> Bug? Or user error?
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:[email protected]
> For additional commands, e-mail:[email protected]
>
>