background-image-first-line.html (1124B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>CSS Test: background-image applicability to ::first-line</title> 4 <link rel="help" href="http://www.w3.org/TR/css3-background/#placement"> 5 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-image"> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties"> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo"> 8 <link rel="match" href="reference/background-image-first-line-ref.html"> 9 <meta name="flags" content="ahem image"> 10 <meta name="assert" content="background-image applicability to ::first-line"> 11 <script src="/common/reftest-wait.js"></script> 12 <link rel="preload" as="image" href="support/cat.png" onload="takeScreenshot()" /> 13 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 14 <style type="text/css"> 15 #content { 16 color: transparent; 17 font: 100px/1 Ahem; 18 } 19 #content::first-line { 20 background-image: url("support/cat.png"); /* 98 w. by 99px h. */ 21 background-repeat: no-repeat; 22 } 23 </style> 24 <p>Test passes if cat image is visible.</p> 25 <div id="content">X</div> 26 </html>