| <svg width="300" height="300" version="1.1" xmlns="http://www.w3.org/2000/svg"> |
| <defs> |
| <linearGradient id="gradient1"> |
| <!-- color stop traversal should not reach into the group below --> |
| <g> |
| <stop offset="0%" stop-color="red"/> |
| <stop offset="100%" stop-color="red"/> |
| </g> |
| </linearGradient> |
| <linearGradient id="gradient2"> |
| <!-- color stop traversal should ignore the group below --> |
| <g/> |
| <stop offset="0%" stop-color="green"/> |
| <stop offset="100%" stop-color="green"/> |
| </linearGradient> |
| </defs> |
| |
| <rect width="100" height="100" fill="green"/> |
| <rect width="100" height="100" fill="url(#gradient1)"/> |
| |
| <rect x="150" width="100" height="100" fill="red"/> |
| <rect x="150" width="100" height="100" fill="url(#gradient2)"/> |
| </svg> |