Skip to content

Commit a9474db

Browse files
committed
Adding a test for the AVIF format
1 parent 5763394 commit a9474db

File tree

7 files changed

+54
-0
lines changed

7 files changed

+54
-0
lines changed

tests/pub-cmt-avif.epub

23.1 KB
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
2+
<head>
3+
<title>AVIF image</title>
4+
</head>
5+
<body>
6+
<p>Test passes if you can see an image below.</p>
7+
<img src="img/001.avif" />
8+
</body>
9+
</html>
20.5 KB
Binary file not shown.

tests/pub-cmt-avif/EPUB/nav.xhtml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en">
2+
<head>
3+
<title>AVIF image</title>
4+
</head>
5+
<body>
6+
<nav epub:type="toc">
7+
<ol>
8+
<li><a href="content_001.xhtml">Link to main page</a></li>
9+
</ol>
10+
</nav>
11+
</body>
12+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<package xmlns="http://www.idpf.org/2007/opf" xmlns:epub="http://www.idpf.org/2007/ops" version="3.0" xml:lang="en" unique-identifier="pub-id">
2+
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
3+
<dc:coverage id="coverage">Core Media Types</dc:coverage>
4+
<meta refines="#coverage" property="schema:version">3.4</meta>
5+
<dc:creator>Ivan Herman</dc:creator>
6+
<dc:date>2025-10-06</dc:date>
7+
<dc:description>An AVIF image is displayed as part of the XHTML content.</dc:description>
8+
<dc:identifier id="pub-id">pub-cmt-avif</dc:identifier>
9+
<dc:language>en</dc:language>
10+
<dc:publisher>W3C</dc:publisher>
11+
<dc:title>pub-cmt-avif</dc:title>
12+
<link rel="dcterms:rights" href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"/>
13+
<link rel="dcterms:rightsHolder" href="https://www.w3.org"/>
14+
<meta property="dcterms:isReferencedBy">https://www.w3.org/TR/epub/#cmt-avif</meta>
15+
<meta property="dcterms:isReferencedBy">https://www.w3.org/TR/epub-rs/#confreq-rs-epub3-images</meta>
16+
<meta property="dcterms:modified">2025-10-06T13:40:00Z</meta>
17+
</metadata>
18+
<manifest>
19+
<item id="content_001" href="content_001.xhtml" media-type="application/xhtml+xml"/>
20+
<item id="nav" properties="nav" href="nav.xhtml" media-type="application/xhtml+xml"/>
21+
<item id="img001" href="img/001.avif" media-type="image/avif"/>
22+
</manifest>
23+
<spine>
24+
<itemref idref="content_001"/>
25+
</spine>
26+
</package>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
3+
<rootfiles>
4+
<rootfile full-path="EPUB/package.opf" media-type="application/oebps-package+xml" />
5+
</rootfiles>
6+
</container>

tests/pub-cmt-avif/mimetype

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
application/epub+zip

0 commit comments

Comments
 (0)