OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #div-horizontal { |
| 4 width: 200px; |
| 5 height: 100px; |
| 6 /* red band at the bottom */ |
| 7 background-image: url("data:image/svg+xml,\ |
| 8 <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'>\ |
| 9 <rect width='100%' height='100%' fill='red'/>\ |
| 10 <rect width='100%' height='100' fill='green'/>\ |
| 11 </svg>"); |
| 12 } |
| 13 |
| 14 #div-vertical { |
| 15 width: 100px; |
| 16 height: 200px; |
| 17 /* red band on the right */ |
| 18 background-image: url("data:image/svg+xml,\ |
| 19 <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'>\ |
| 20 <rect width='100%' height='100%' fill='red'/>\ |
| 21 <rect width='100' height='100%' fill='green'/>\ |
| 22 </svg>"); |
| 23 } |
| 24 </style> |
| 25 |
| 26 <script src="resources/srcset-helper.js"></script> |
| 27 |
| 28 <!-- There should be no bleeding due to repeat edge wrapping in the dimension |
| 29 fully covered by the tile --> |
| 30 <div id="div-horizontal"></div> |
| 31 <br> |
| 32 <div id="div-vertical"></div> |
| 33 |
OLD | NEW |