wpt / css / css-text / text-transform / math / text-transform-math-auto-002.html

Status: FAIL | Duration: 13ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-text/text-transform/math/text-transform-math-auto-002.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>text-transform math-auto</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3745"/>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#math-auto-transform">
<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">&#x2202;</span>=<span>1D715</span></div>
  <div>Two characters: <span class="testfont" style="text-transform: math-auto">&#x2202;&#x2207;</span>=<span>0220202207</span></div>
  <div>Three characters: <span class="testfont" style="text-transform: math-auto">&#x2202;&#x2207;&#x237;</span>=<span>022020220700237</span></div>
 </body>
</html>

/css/css-text/text-transform/math/text-transform-math-auto-002-ref.html

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>text-transform math-auto (reference)</title>
<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">&#x1D715;</span>=<span>1D715</span></div>
  <div>Two characters: <span class="testfont">&#x2202;&#x2207;</span>=<span>0220202207</span></div>
  <div>Three characters: <span class="testfont">&#x2202;&#x2207;&#x237;</span>=<span>022020220700237</span></div>
 </body>
</html>