Combine clipPath, pattern, and linearGradient in SVG
问题 I am trying to create a background that consists of multiple dots gradienting from say green to yellow from left to right. So they idea was to create a path, fill it with a gradient and clip path with a pattern: https://codepen.io/Deka87/pen/pLPqJE?editors=1000 <svg width='100' height='100' viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <linearGradient id="img-dotted-gradient"> <stop offset="0%" stop-color="green"></stop> <stop