css-image-fallbacks-and-annotations002.html (771B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Image Fallbacks and Annotations: the 'image()' notation</title> 5 <link rel="author" title="Hirokazu Egashira" href="mailto:yo9ega@aol.com"> 6 <link rel="help" href="https://www.w3.org/TR/css-images-3/#image-values"> 7 <link rel="match" href="css-image-fallbacks-and-annotations-ref.html"> 8 <meta name="assert" content="The 'image()' function load the image."> 9 <style type="text/css"> 10 .square{ 11 width: 200px; 12 height: 200px; 13 color: white; 14 background-color: red; 15 background-image: image("support/1x1-green.png"); 16 } 17 </style> 18 </head> 19 <body> 20 <p>Test passes if background is green and no red.</p> 21 <div class="square"></div> 22 </body> 23 </html>