OLD | NEW |
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
2 <svg xmlns="http://www.w3.org/2000/svg"> | 2 <svg xmlns="http://www.w3.org/2000/svg"> |
3 <rect width="98" height="98" fill="red"/> | 3 <rect width="98" height="98" fill="red"/> |
4 <foreignObject width="200" height="200" transform="translate(-100, 0)"> | 4 <foreignObject width="200" height="200" transform="translate(-100, 0)"> |
5 <!-- Fixed-position content should be relative to the foreignObject viewport
. --> | 5 <!-- Fixed-position content should be relative to the foreignObject viewport
. --> |
6 <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; left: 100p
x; width: 100px; height: 50%; background-color: green;"></div> | 6 <div xmlns="http://www.w3.org/1999/xhtml" style="position: fixed; left: 100p
x; width: 100px; height: 50%; background-color: green;"></div> |
7 </foreignObject> | 7 </foreignObject> |
8 </svg> | 8 </svg> |
OLD | NEW |