wpt / css / css-backgrounds / linear-gradient-currentcolor-first-line.html

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

/css/css-backgrounds/linear-gradient-currentcolor-first-line.html

<!doctype html>
<title>CSS Backgrounds and Borders Test: linear-gradient() with currentcolor on ::first-line</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#first-line-background">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-inheritance">
<link rel="match" href="linear-gradient-currentcolor-first-line-ref.html">
<meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-266">
<style>
  div { color: red; }
  div::first-line { color: green; }
  span { background-image: linear-gradient(currentcolor, currentcolor); }
</style>
<p>You should see no red below.</p>
<div><span>Green</span></div>

/css/css-backgrounds/linear-gradient-currentcolor-first-line-ref.html

<!doctype html>
<title>CSS Test Reference</title>
<p>You should see no red below.</p>
<span style="color:green;background:green">Green</span>