context-stroke-opacity-01.html (454B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Basic context-stroke-opacity test</title> 5 <style> 6 7 img { 8 width: 100px; 9 height: 100px; 10 -moz-context-properties: stroke-opacity; 11 stroke-opacity: 0.5; 12 } 13 14 </style> 15 </head> 16 <body> 17 <img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><line x1='0' y1='50%' x2='100%' y2='50%' stroke-width='120%' stroke='blue' stroke-opacity='context-stroke-opacity'/></svg>"> 18 </body> 19 </html>