Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-backgrounds/linear-gradient-currentcolor-first-line.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Backgrounds and Borders Test: linear-gradient() with currentcolor on ::first-line</title>
<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>