Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/nav.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
<head>
<meta name="viewport" content="width=1674,height=1378" />
<title>A Apple Pie</title>
</head>

<body>
<nav epub:type="toc">
<ol>
<li><a href="texts/Title.xhtml">Title page</a></li>
<li><a href="plates/A.svg">Letter A</a></li>
<li><a href="plates/B.svg">Letter B</a></li>
<li><a href="plates/C.svg">Letter C</a></li>
<li><a href="plates/D.svg">Letter D</a></li>
<li><a href="plates/E.svg">Letter E</a></li>
<li><a href="plates/F.svg">Letter F</a></li>
<li><a href="plates/G.svg">Letter G</a></li>
<li><a href="plates/H.svg">Letter H</a></li>
</ol>
</nav>
<!-- <nav epub:type="landmarks" id="landmarks" hidden="">
<h1>Landmarks</h1>
<ol>
<li>
<a epub:type="cover" href="texts/cover.xhtml">Cover</a>
</li>
</ol>
</nav> -->
</body>
</html>
56 changes: 56 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/package.opf
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="pub-id" xml:lang="en" xmlns="http://www.idpf.org/2007/opf" xmlns:epub="http://www.idpf.org/2007/ops">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:coverage id="coverage">Pre-paginated Layout</dc:coverage>
<meta refines="#coverage" property="schema:version">3.4</meta>
<dc:creator>Ivan Herman</dc:creator>
<dc:creator>Susan Neuhaus</dc:creator>
<dc:date>2026-01-31</dc:date>
<dc:description>Pre-paginated publication with images embedded in XHTML.</dc:description>
<dc:description>Original book by Kate Greenaway, 1846-1901; reproduced digitally at the US Library of Congress (http://hdl.loc.gov/loc.rbc/bit.11404), in public domain.</dc:description>
<dc:language>en</dc:language>
<dc:publisher>W3C</dc:publisher>
<dc:title>A Apple Pie — embedded images in SVG</dc:title>
<meta property="dcterms:modified">2026-01-31T20:32:01Z</meta>
<meta property="rendition:layout">pre-paginated</meta>
<dc:identifier id="pub-id">lay-pp-embedded-images-svg</dc:identifier>
<meta property="dcterms:isReferencedBy">https://www.w3.org/TR/epub-rs/#confreq-rs-epub3-fxl</meta>
<link rel="dcterms:rights" href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"/>
<link rel="dcterms:rightsHolder" href="https://www.w3.org"/>
<meta name="cover" content="cover-a-apple-pie.jpg"/>
</metadata>
<manifest>
<item id="Title_html" href="texts/Title.xhtml" media-type="application/xhtml+xml"/>
<item id="Title_image" href="images/Title.png" media-type="image/png"/>
<item id="A_svg" href="plates/A.svg" media-type="image/svg+xml"/>
<item id="B_svg" href="plates/B.svg" media-type="image/svg+xml"/>
<item id="C_svg" href="plates/C.svg" media-type="image/svg+xml"/>
<item id="D_svg" href="plates/D.svg" media-type="image/svg+xml"/>
<item id="E_svg" href="plates/E.svg" media-type="image/svg+xml"/>
<item id="F_svg" href="plates/F.svg" media-type="image/svg+xml"/>
<item id="G_svg" href="plates/G.svg" media-type="image/svg+xml"/>
<item id="H_svg" href="plates/H.svg" media-type="image/svg+xml"/>
<item id="A_image" href="images/A.png" media-type="image/png"/>
<item id="B_image" href="images/B.png" media-type="image/png"/>
<item id="C_image" href="images/C.png" media-type="image/png"/>
<item id="D_image" href="images/D.png" media-type="image/png"/>
<item id="E_image" href="images/E.png" media-type="image/png"/>
<item id="F_image" href="images/F.png" media-type="image/png"/>
<item id="G_image" href="images/G.png" media-type="image/png"/>
<item id="H_image" href="images/H.png" media-type="image/png"/>
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/>
<item id="css" href="texts/fixed.css" media-type="text/css"/>
<item id="cover-a-apple-pie.jpg" href="images/cover-a-apple-pie.jpg" media-type="image/jpeg" properties="cover-image"/>
</manifest>
<spine>
<itemref idref="Title_html" properties="rendition:page-spread-center"/>
<itemref idref="A_svg"/>
<itemref idref="B_svg"/>
<itemref idref="C_svg"/>
<itemref idref="D_svg"/>
<itemref idref="E_svg"/>
<itemref idref="F_svg"/>
<itemref idref="G_svg"/>
<itemref idref="H_svg"/>
</spine>
</package>
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/A.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/B.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/C.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/D.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/E.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/F.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/G.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/plates/H.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/texts/Title.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<meta name="viewport" content="width=1674,height=1378" />
<title>A APPLE PIE</title>
<link rel="stylesheet" href="fixed.css" type="text/css"/>
</head>

<body>
<figure>
<img src="../images/Title.png" alt='The text in the middle of the page says "A APPLE PIE", followed by "By KATE GREENAWAY". The text on the bottom says "London • FREDERICK WARNE &amp; Co. Ltd. • New York". There are three young girls playing in the background, each holding a huge apple in their hands.'/>
</figure>
</body>
</html>
16 changes: 16 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/texts/cover.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<meta name="viewport" content="width=1674,height=1378" />
<title>Cover</title>
</head>
<body>
<div style="height: 100vh; text-align: center; padding: 0pt; margin: 0pt;">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 3092 2397" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image width="3092" height="2397" xlink:href="../images/cover-a-apple-pie.jpg" alt="cover of antique children's book titled A Apple Pie by Kate Greenaway"/>
</svg>
</div>
</body>
</html>
20 changes: 20 additions & 0 deletions tests/lay-pp-embedded-images-svg/EPUB/texts/fixed.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
html, body {
margin: 0;
padding: 0;
height: 100%;
}

figure {
margin: 0;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
6 changes: 6 additions & 0 deletions tests/lay-pp-embedded-images-svg/META-INF/container.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
<rootfiles>
<rootfile full-path="EPUB/package.opf" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
1 change: 1 addition & 0 deletions tests/lay-pp-embedded-images-svg/mimetype
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
application/epub+zip
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/nav.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
<head>
<meta name="viewport" content="width=1674,height=1378" />
<title>A Apple Pie</title>
</head>

<body>
<nav epub:type="toc">
<ol>
<li><a href="texts/Title.xhtml">Title page</a></li>
<li><a href="plates/A.svg">Letter A</a></li>
<li><a href="plates/B.svg">Letter B</a></li>
<li><a href="plates/C.svg">Letter C</a></li>
<li><a href="plates/D.svg">Letter D</a></li>
<li><a href="plates/E.svg">Letter E</a></li>
<li><a href="plates/F.svg">Letter F</a></li>
<li><a href="plates/G.svg">Letter G</a></li>
<li><a href="plates/H.svg">Letter H</a></li>
</ol>
</nav>
<!-- <nav epub:type="landmarks" id="landmarks" hidden="">
<h1>Landmarks</h1>
<ol>
<li>
<a epub:type="cover" href="texts/cover.xhtml">Cover</a>
</li>
</ol>
</nav> -->
</body>
</html>
57 changes: 57 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/package.opf
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<package version="3.0" unique-identifier="pub-id" xml:lang="en" xmlns="http://www.idpf.org/2007/opf" xmlns:epub="http://www.idpf.org/2007/ops">
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
<dc:coverage id="coverage">Roll Layout</dc:coverage>
<meta refines="#coverage" property="schema:version">3.4</meta>
<dc:creator>Ivan Herman</dc:creator>
<dc:creator>Susan Neuhaus</dc:creator>
<dc:date>2026-01-31</dc:date>
<dc:description>Pre-paginated publication with images embedded in XHTML.</dc:description>
<dc:description>Original book by Kate Greenaway, 1846-1901; reproduced digitally at the US Library of Congress (http://hdl.loc.gov/loc.rbc/bit.11404), in public domain.</dc:description>
<dc:language>en</dc:language>
<dc:publisher>W3C</dc:publisher>
<dc:title>A Apple Pie — embedded images in SVG for roll</dc:title>
<meta property="dcterms:modified">2026-01-31T20:32:01Z</meta>
<meta property="rendition:layout">roll</meta>
<dc:identifier id="pub-id">lay-roll-embedded-images-svg</dc:identifier>
<meta property="dcterms:isReferencedBy">https://www.w3.org/TR/epub-rs/#confreq-rs-epub3-fxl</meta>
<meta property="dcterms:isReferencedBy">https://www.w3.org/TR/epub-rs/#sec-roll-layouts</meta>
<link rel="dcterms:rights" href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"/>
<link rel="dcterms:rightsHolder" href="https://www.w3.org"/>
<meta name="cover" content="cover-a-apple-pie.jpg"/>
</metadata>
<manifest>
<item id="Title_html" href="texts/Title.xhtml" media-type="application/xhtml+xml"/>
<item id="Title_image" href="images/Title.png" media-type="image/png"/>
<item id="A_svg" href="plates/A.svg" media-type="image/svg+xml"/>
<item id="B_svg" href="plates/B.svg" media-type="image/svg+xml"/>
<item id="C_svg" href="plates/C.svg" media-type="image/svg+xml"/>
<item id="D_svg" href="plates/D.svg" media-type="image/svg+xml"/>
<item id="E_svg" href="plates/E.svg" media-type="image/svg+xml"/>
<item id="F_svg" href="plates/F.svg" media-type="image/svg+xml"/>
<item id="G_svg" href="plates/G.svg" media-type="image/svg+xml"/>
<item id="H_svg" href="plates/H.svg" media-type="image/svg+xml"/>
<item id="A_image" href="images/A.png" media-type="image/png"/>
<item id="B_image" href="images/B.png" media-type="image/png"/>
<item id="C_image" href="images/C.png" media-type="image/png"/>
<item id="D_image" href="images/D.png" media-type="image/png"/>
<item id="E_image" href="images/E.png" media-type="image/png"/>
<item id="F_image" href="images/F.png" media-type="image/png"/>
<item id="G_image" href="images/G.png" media-type="image/png"/>
<item id="H_image" href="images/H.png" media-type="image/png"/>
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/>
<item id="css" href="texts/fixed.css" media-type="text/css"/>
<item id="cover-a-apple-pie.jpg" href="images/cover-a-apple-pie.jpg" media-type="image/jpeg" properties="cover-image"/>
</manifest>
<spine>
<itemref idref="Title_html" properties="rendition:page-spread-center"/>
<itemref idref="A_svg"/>
<itemref idref="B_svg"/>
<itemref idref="C_svg"/>
<itemref idref="D_svg"/>
<itemref idref="E_svg"/>
<itemref idref="F_svg"/>
<itemref idref="G_svg"/>
<itemref idref="H_svg"/>
</spine>
</package>
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/A.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/B.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/C.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/D.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/E.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/F.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/G.svg
6 changes: 6 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/plates/H.svg
16 changes: 16 additions & 0 deletions tests/lay-roll-embedded-images-svg/EPUB/texts/Title.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<meta name="viewport" content="width=1674,height=1378" />
<title>A APPLE PIE</title>
<link rel="stylesheet" href="fixed.css" type="text/css"/>
</head>

<body>
<figure>
<img src="../images/Title.png" alt='The text in the middle of the page says "A APPLE PIE", followed by "By KATE GREENAWAY". The text on the bottom says "London • FREDERICK WARNE &amp; Co. Ltd. • New York". There are three young girls playing in the background, each holding a huge apple in their hands.'/>
</figure>
</body>
</html>
Loading