OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 |
| 3 <style> |
| 4 svg { |
| 5 width: 100px; |
| 6 height: 100px; |
| 7 margin: 1px; |
| 8 } |
| 9 |
| 10 #test-root { |
| 11 position: absolute; |
| 12 left: 10px; |
| 13 top: 10px; |
| 14 } |
| 15 |
| 16 #test-child { |
| 17 position: absolute; |
| 18 left: 10px; |
| 19 top: 130px; |
| 20 } |
| 21 </style> |
| 22 |
| 23 <p id="test-root"> |
| 24 |
| 25 <!-- SVG root element: the first three filters are valid, the rest are not. --> |
| 26 |
| 27 <svg viewBox="0 0 50 50"> |
| 28 <rect fill="lime" x="0" y="0" height="50" width="50"/> |
| 29 </svg> |
| 30 |
| 31 <svg viewBox="0 0 50 50"> |
| 32 <rect fill="lime" x="0" y="0" height="50" width="50"/> |
| 33 </svg> |
| 34 |
| 35 <svg viewBox="0 0 50 50"> |
| 36 <rect fill="lime" x="0" y="0" height="50" width="50"/> |
| 37 </svg> |
| 38 |
| 39 <svg viewBox="0 0 50 50"> |
| 40 <rect fill="red" x="0" y="0" height="50" width="50"/> |
| 41 </svg> |
| 42 |
| 43 <svg viewBox="0 0 50 50"> |
| 44 <rect fill="red" x="0" y="0" height="50" width="50"/> |
| 45 </svg> |
| 46 |
| 47 <svg viewBox="0 0 50 50"> |
| 48 <rect fill="red" x="0" y="0" height="50" width="50"/> |
| 49 </svg> |
| 50 |
| 51 <svg viewBox="0 0 50 50"> |
| 52 <rect fill="red" x="0" y="0" height="50" width="50"/> |
| 53 </svg> |
| 54 </p> |
| 55 |
| 56 <p id="test-child"> |
| 57 |
| 58 <!-- SVG child element: the first filter is valid, the rest are not. --> |
| 59 |
| 60 <svg viewBox="0 0 50 50"> |
| 61 <rect fill="lime" x="0" y="0" height="50" width="50"/> |
| 62 </svg> |
| 63 </p> |
OLD | NEW |