order-of-images.htm (1219B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Backgrounds Test: Order of multiple overlapping background images</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-image" /> 7 <link rel="match" href="reference/order-of-images-ref.html" /> 8 <meta name="assert" content="Background images are listed in order, with the first image being rendered on top of all the other images, and so on." /> 9 <style type="text/css"> 10 div 11 { 12 width: 250px; 13 height: 250px; 14 background-image: url("support/blue_color.png"), url("support/orange_color.png"), url("support/black_color.png"); 15 background-repeat: no-repeat; 16 background-position: 30px 30px, 60px 60px, 90px 90px; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if a blue box overlaps an orange box, which overlaps a black box.</p> 22 <div></div> 23 </body> 24 </html>