summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/linear-gradient-currentcolor-first-line.html
blob: 7c8f8a8fda63982a7ded20fcdd25077ce4c73c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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-265">
<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>