subpixel-position-center-ref.tentative.html (760B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Backgrounds: Subpixel position center is centered, reference</title> 5 <link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org"> 6 <style> 7 .first{ 8 outline: 2px solid green; 9 position: absolute; 10 width: 87.5px; 11 height: 87.5px; 12 left: 43.75px; 13 top: 43.75px; 14 } 15 .second { 16 background-image: url("../../resources/green-100.png"); 17 background-repeat: no-repeat; 18 background-position: center center; 19 background-size: 38.5px 35px; 20 position: absolute; 21 width: 140px; 22 height: 140px; 23 left: 17.5px; 24 top: 17.5px; 25 } 26 </style> 27 </head> 28 <body> 29 <div class="first"></div> 30 <div class="second"></div> 31 </body> 32 </html>