font-stretch-07.html (1073B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 4 <title>CSS Test: font-stretch property, semi-condensed</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="match" href="font-stretch-pass-ref.html"> 7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-stretch-prop"> 8 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-prop-desc"> 9 <meta name="assert" content="The ‘font-stretch’ property selects a normal, condensed, or expanded face from a font family."> 10 <style> 11 @font-face { 12 font-family: "test"; 13 src: url(support/fonts/fail.woff) format("woff"); 14 font-stretch: normal; 15 } 16 @font-face { 17 font-family: "test"; 18 src: url(support/fonts/pass.woff) format("woff"); 19 font-stretch: semi-condensed; 20 } 21 .test { 22 font-family: "test"; 23 font-size: 6em; 24 font-stretch: semi-condensed; 25 } 26 27 </style> 28 29 <p>Test passes if the word PASS appears below.</p> 30 <section class="test"> 31 <p>P</p> 32 </section>