| <?xml version="1.0" encoding="UTF-8"?> |
| <svg xmlns="http://www.w3.org/2000/svg"> |
| <g fill="orange"> |
| <rect width="100" height="100" fill="red"/> |
| <rect width="100" height="100" fill="#ff"/> |
| <g fill="black"> |
| <text x="10" y="130">The above rect should be ORANGE.</text> |
| <text x="10" y="150">SVG 1.1 FULL says there should be a "highly perceivable error" message when an invalid fill is used.</text> |
| <text x="10" y="170">Browsers don't display such an error, instead use some sort of fill-fallback.</text> |
| <text x="10" y="190">If there's an invalid fill color, but no fallback specified, the fill of the object is inherited from parent object.</text> |
| <text x="10" y="210">Our result matches Opera and Firefox now.</text> |
| </g> |
| </g> |
| </svg> |