| <svg xmlns="http://www.w3.org/2000/svg"> |
| <defs> |
| <clipPath id="c"> |
| <rect width="100" height="100" visibility="hidden"/> |
| <rect x="100" width="100" height="100" display="none"/> |
| </clipPath> |
| </defs> |
| |
| <g clip-path="url(#c)" > |
| <rect width="200" height="100" fill="red"/> |
| <rect width="100" height="100" fill="green"/> |
| </g> |
| |
| <g> |
| <text y="130">Above a green rectangle should be displayed.</text> |
| <text y="150">It tests that a clip path child with display=none</text> |
| <text y="170">does not contribute to the clip-path and that a clip path</text> |
| <text y="190">child with visibility=hidden does contribute. Bug 18340.</text> |
| </g> |
| </svg> |
| |