Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/WOFF2/valid-002.xht - WPT Dashboard Interop Dashboard
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. -->
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<title>WOFF Test: Valid WOFF 2</title>
<link rel="reviewer" title="Chris Lilley" href="mailto:chris@w3.org" />
<link rel="match" href="valid-002-ref.xht" />
<meta name="assert" content="Valid CFF flavored WOFF with metadata" />
<style type="text/css"><![CDATA[
@import url("support/test-fonts.css");
@font-face {
font-family: "WOFF Test";
src: url("support/valid-002.woff2") format("woff2");
}
body {
font-size: 20px;
}
pre {
font-size: 12px;
}
.test {
font-family: "WOFF Test", "WOFF Test CFF Fallback";
font-size: 200px;
margin-top: 50px;
}
]]></style>
</head>
<body>
<p>Test passes if the word PASS appears below.</p>
<p>The Extended Metadata Block is valid and may be displayed to the user upon request.</p>
<div class="test">P</div>
<p>The XML contained in the Extended Metadata Block is below.</p>
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<metadata version="1.0">
<uniqueid id="org.w3.webfonts.wofftest" />
<credits>
</credits>
<text>
Description without language.
</text>
<text lang="en">
Description with "en" language.
</text>
<text lang="fr">
Description with "fr" language.
</text>
</description>
<text>
License without language.
</text>
<text lang="en">
License with "en" language.
</text>
<text lang="fr">
License with "fr" language.
</text>
</license>
<copyright>
<text>
Copyright without language.
</text>
<text lang="en">
Copyright with "en" language.
</text>
<text lang="fr">
Copyright with "fr" language.
</text>
</copyright>
<trademark>
<text>
Trademark without language.
</text>
<text lang="en">
Trademark with "en" language.
</text>
<text lang="fr">
Trademark with "fr" language.
</text>
</trademark>
<licensee name="Licensee Name" />
<extension id="Extension 1">
<name>Extension 1 - Name Without Language</name>
<name lang="en">Extension 1 - Name With "en" Language</name>
<name lang="fr">Extension 1 - Name With "fr" Language</name>
<item id="Extension 1 - Item 1 ID">
<name>Extension 1 - Item 1 - Name Without Language</name>
<name lang="en">Extension 1 - Item 1 - Name With "en" Language</name>
<name lang="fr">Extension 1 - Item 1 - Name With "fr" Language</name>
<value>Extension 1 - Item 1 - Value Without Language</value>
<value lang="en">Extension 1 - Item 1 - Value With "en" Language</value>
<value lang="fr">Extension 1 - Item 1 - Value With "fr" Language</value>
</item>
<item id="Extension 1 - Item 2 ID">
<name>Extension 1 - Item 2 - Name Without Language</name>
<name lang="en">Extension 1 - Item 2 - Name With "en" Language</name>
<name lang="fr">Extension 1 - Item 2 - Name With "fr" Language</name>
<value>Extension 1 - Item 2 - Value Without Language</value>
<value lang="en">Extension 1 - Item 2 - Value With "en" Language</value>
<value lang="fr">Extension 1 - Item 2 - Value With "fr" Language</value>
</item>
</extension>
<extension id="Extension 2">
<name>Extension 2 - Name Without Language</name>
<name lang="en">Extension 2 - Name With "en" Language</name>
<name lang="fr">Extension 2 - Name With "fr" Language</name>
<item id="Extension 2 - Item 1 ID">
<name>Extension 2 - Item 1 - Name Without Language</name>
<name lang="en">Extension 2 - Item 1 - Name With "en" Language</name>
<name lang="fr">Extension 2 - Item 1 - Name With "fr" Language</name>
<value>Extension 2 - Item 1 - Value Without Language</value>
<value lang="en">Extension 2 - Item 1 - Value With "en" Language</value>
<value lang="fr">Extension 2 - Item 1 - Value With "fr" Language</value>
</item>
<item id="Extension 2 - Item 2 ID">
<name>Extension 2 - Item 2 - Name Without Language</name>
<name lang="en">Extension 2 - Item 2 - Name With "en" Language</name>
<name lang="fr">Extension 2 - Item 2 - Name With "fr" Language</name>
<value>Extension 2 - Item 2 - Value Without Language</value>
<value lang="en">Extension 2 - Item 2 - Value With "en" Language</value>
<value lang="fr">Extension 2 - Item 2 - Value With "fr" Language</value>
</item>
<item id="Extension 2 - Item 3 ID">
<name>Extension 2 - Item 3 - Name Without Language</name>
<name lang="en">Extension 2 - Item 3 - Name With "en" Language</name>
<name lang="fr">Extension 2 - Item 3 - Name With "fr" Language</name>
<value>Extension 2 - Item 3 - Value Without Language</value>
<value lang="en">Extension 2 - Item 3 - Value With "en" Language</value>
</item>
</extension>
</metadata>
</pre>
</body>
</html>