| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <svg xmlns="http://www.w3.org/2000/svg" width="150" height="100"> |
| 3 | <style type="text/css"> |
| 4 | rect[id] { fill: blue; } |
| 5 | |
| 6 | rect[id="rojo"] { fill: red; } |
| 7 | rect[id|="rojo"] { fill: red; } |
| 8 | |
| 9 | rect[id^="verde"] { fill: lime; } |
| 10 | rect[id$="verde"] { fill: lime; } |
| 11 | |
| 12 | rect[id*="azul"] { fill: blue; } |
| 13 | </style> |
| 14 | |
| 15 | <rect x="0" y="0" width="50" height="50" id="rojo"/> |
| 16 | <rect x="0" y="50" width="50" height="50" id="rojo-jojojo"/> |
| 17 | |
| 18 | <rect x="50" y="0" width="50" height="50" id="verdecito"/> |
| 19 | <rect x="50" y="50" width="50" height="50" id="superverde"/> |
| 20 | |
| 21 | <rect x="100" y="0" width="50" height="50" id="cualquier_cosa"/> |
| 22 | <rect x="100" y="50" width="50" height="50" id="superazulito"/> |
| 23 | </svg> |