wpt / css / css-inline / baseline-shift / baseline-shift-length-percentage-svg.html

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

/css/css-inline/baseline-shift/baseline-shift-length-percentage-svg.html

<!DOCTYPE html>
<html>
<head>
  <link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
  <link rel="match" href="baseline-shift-length-percentage-ref.html">
  <link rel="stylesheet" href="/fonts/ahem.css">
  <meta name="flags" content="ahem image" />
  <meta charset="utf-8">
</head>
<body>
  <svg>
    <image href="/css/support/60x60-green.png" />
    <text x="80" y="56" style="font: 20px/2 'Ahem';">
      <tspan baseline-shift="0" fill="black">X</tspan>
      <tspan baseline-shift="1em" fill="black">X</tspan>
      <tspan baseline-shift="-100%" fill="black">X</tspan>
    </text>
  </svg>
</body>
</html>

/css/css-inline/baseline-shift/baseline-shift-length-percentage-ref.html

<!DOCTYPE html>
<html>
<head>
  <link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
  <style>
    #line {
      position: relative;
    }

    #line > * {
      position: absolute;
    }

    #line > div {
      width: 20px;
      height: 20px;
      background: black;
    }

    #e1 { left: 0; top: 0; }
    #e2 { left: 80px; top: 40px; }
    #e3 { left: 120px; top: 20px; }
    #e4 { left: 160px; top: 80px; }
  </style>
</head>
<body>
  <div id="line">
    <img id="e1" src="/css/support/60x60-green.png">
    <div id="e2"></div>
    <div id="e3"></div>
    <div id="e4"></div>
  </div>
</body>
</html>