HTML5 - SVG: Linear Gradient

by jimousse

HTML

<svg height="300" width="400">
  <defs>
		<linearGradient class="xn-gradient" gradientUnits="userSpaceOnUse" x1="0" x2="10" id="lingrad" y1="3" y2="144">
			<stop class="xn-gradient-stop" offset="0" stop-color="black" stop-opacity="0.75"></stop>
			<stop class="xn-gradient-stop" offset="0.25" stop-color="black" stop-opacity="0"></stop>
			<stop class="xn-gradient-stop" offset="1" stop-color="black" stop-opacity="0.75"></stop>
		</linearGradient>
  </defs>
  <rect  width="400" height="300" fill="url(#lingrad)" /> Sorry, SVG not supported.
</svg>