font-synthesis-04.html (1022B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 4 <title>CSS Test: font-synthesis: bold disables fake italic/oblique</title> 5 <link rel="author" title="Chris Lilley" href="chris@w3.org"> 6 <link rel="match" href="font-synthesis-04-ref.html"> 7 <link rel="help" href="https://www.w3.org/TR/css-fonts-3/#font-synthesis-prop"> 8 <meta name="assert" content="if ‘style’ is not specified user agents must not synthesize italic faces"> 9 <style> 10 @font-face { 11 font-family: "test"; 12 src: url(/fonts/Lato-Medium.ttf); 13 } 14 @supports not (font-synthesis: weight) { 15 .test {color: red;} 16 } 17 .test { 18 font-family: "test"; 19 font-size: 3em; 20 } 21 .nosynth { 22 font-style: italic; 23 font-synthesis: weight; 24 } 25 </style> 26 27 <p>Test passes if the two lines below are identical (the second line is <em>not obliqued</em>), and there is no red.</p> 28 <section class="test"> 29 <p>Filler text</p> 30 <p class="nosynth">Filler text</p> 31 </section>