backplate-bg-image-004.html (624B)
1 <!DOCTYPE html> 2 <head> 3 <link rel="stylesheet" type="text/css" href="ahem.css" /> 4 <title>Assigning a negative z-index to text which is backplated should change the z-index of the text only; the backplate should not be affected.</title> 5 <style> 6 body { 7 font: 20px Ahem; 8 } 9 .std { 10 background-image: url("blue.png"); 11 padding: 15px; 12 } 13 .relpos { 14 position: relative; 15 left: 20px; 16 } 17 .negZ { 18 z-index: -1; 19 } 20 .ib { 21 display: inline-block; 22 } 23 </style> 24 </head> 25 <body> 26 <span class="std ib"> 27 <span class="relpos negZ">ppppp ppppp</span> 28 </span> 29 <span>ppppp ppppp</span> 30 </body>