Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-text/text-transform/math/text-transform-math-auto-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>text-transform math-auto</title>
<link rel="match" href="text-transform-math-auto-002-ref.html"/>
<meta name="assert" content="Test 'text-transform: math-auto' for text nodes of different lengths">
<style>
@font-face {
font-family: TestFont;
src: url("/fonts/math/mathvariant-italic.woff");
}
body > div {
padding: 10px;
}
div > span {
font-family: monospace;
font-size: 16px;
}
.testfont {
font-family: TestFont;
font-size: 16px;
}
</style>
<body>
<p>Test passes if all the equalities below are true.</p>
<div>Single character: <span class="testfont" style="text-transform: math-auto">∂</span>=<span>1D715</span></div>
<div>Two characters: <span class="testfont" style="text-transform: math-auto">∂∇</span>=<span>0220202207</span></div>
<div>Three characters: <span class="testfont" style="text-transform: math-auto">∂∇ȷ</span>=<span>022020220700237</span></div>
</body>
</html>