context-fill-07.html (703B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Test context-fill when no context fill value is provided</title> 5 <style> 6 7 img { 8 -moz-context-properties: fill; 9 width: 100px; 10 height: 100px; 11 } 12 13 </style> 14 </head> 15 <body> 16 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' fill='context-fill'/></svg>"> 17 <!-- The initial value for 'fill' is black, so we expect that to be the 18 context-fill that the following rect uses (the fallback color should 19 not be used). --> 20 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' fill='context-fill red'/></svg>"> 21 </body> 22 </html>