fontface-size-adjust-descriptor-ref.html (599B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>Tests that the sizeAdjust attribute of FontFace works</title> 4 <script> 5 /* Load Ahem similarly to the testcase so that Gecko gives it the 6 same antialiasing treatment. */ 7 const ahem = new FontFace( 8 'Ahem-normal', 9 'local("Ahem"), url("/fonts/Ahem.ttf")'); 10 document.fonts.add(ahem); 11 </script> 12 <style> 13 #target { 14 font-family: "Ahem-normal"; 15 font-size: 40px; 16 letter-spacing: 10px; 17 } 18 span { 19 font-size: 50%; 20 } 21 </style> 22 23 <p>The first and fourth characters should be double-sized:</p> 24 <div id="target"> 25 F<span>oo</span>B<span>ar</span> 26 </div>