lang-attribute-affects-rendering.html (593B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <link rel="help" href="https://html.spec.whatwg.org/#attr-lang"> 6 <link rel="mismatch" href="lang-attribute-affects-rendering-ref.html"> 7 <style> 8 * { font-size: 50px } 9 10 @font-face { 11 font-family: test-font-family; 12 /* <Lato-Medium.ttf> provides different ligatures for English and 13 Turkish. */ 14 src: url(/fonts/Lato-Medium.ttf); 15 } 16 17 div { font-family: test-font-family; } 18 </style> 19 </head> 20 <body> 21 `lang="en"` should render ligatures, `lang="tr"` not. 22 <div lang="en">fi</div> 23 </body> 24 </html>