font-face-local-not-family-ref.html (528B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>@font-face src:local() reference</title> 4 5 <style> 6 @font-face { 7 /* Load the regular face of Arial, or if not present, harmlessly fall back to Ahem 8 (but the test will then be pointless). */ 9 font-family: "LocalArial"; 10 src: local("Arial"), 11 local("ArialMT"), 12 local(Ahem), 13 url(/fonts/Ahem.ttf); 14 } 15 </style> 16 17 <p style="font: 24px LocalArial">These two lines should look the same</p> 18 19 <p style="font: 24px LocalArial">These two lines should look the same</p>