wpt / css / css-backgrounds / background-clip / clip-text-inline.html

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

/css/css-backgrounds/background-clip/clip-text-inline.html

<!DOCTYPE html>
<title>background-clip:text on inline elements</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-4/#valdef-background-clip-text">
<link rel="match" href="clip-text-inline-ref.html">
<style>
body {
  font-size: 40px;
}
.text-clip {
  background: blue;
  background-clip: text;
  color: rgba(255,0,0,0.5);
}
</style>
<!-- Passes if all texts below are purple. -->
<!-- The &nbsp;s are to avoid glyph overflows. -->
<span class="text-clip">&nbsp;Text1&nbsp;</span><span class="text-clip">&nbsp;Text2&nbsp;</span>
<br>
<span class="text-clip">&nbsp;Text3&nbsp;</span><span class="text-clip">&nbsp;Text4&nbsp;</span>

/css/css-backgrounds/background-clip/clip-text-inline-ref.html

<!DOCTYPE html>
<title>background-clip:text on inline elements (reference)</title>
<style>
body {
  font-size: 40px;
}
.text-clip {
  background: blue;
  background-clip: text;
  color: rgba(255,0,0,0.5);
}
</style>
<!-- Passes if all texts below are purple. -->
<div class="text-clip">&nbsp;Text1&nbsp;&nbsp;Text2&nbsp;</div>
<div class="text-clip">&nbsp;Text3&nbsp;&nbsp;Text4&nbsp;</div>