hyphens-character.html (1078B)
1 <!doctype html> 2 <html lang="en" class="reftest-wait"> 3 <link rel="author" title="Dominik Röttsches" href="mailto:drott@chromium.org"> 4 <link rel="help" href="https://www.w3.org/TR/css-text-3/#hyphenation"> 5 <link rel="match" href="reference/hyphens-character-ref.html"> 6 <meta charset="utf-8" /> 7 <meta content="This test ensure that actual characters are show for the hyphen, 8 as crbug.com/1267606 illustrates how the hyphen can go missing 9 depending on character coverage API." name="assert"> 10 <style> 11 @font-face { 12 font-family: roboto_hyphen; 13 src: url(resources/roboto_hyphenation_subset.ttf) 14 } 15 16 div { 17 display: block; 18 width: 40px; 19 hyphens: auto; 20 -webkit-hyphens: auto; 21 font-family: roboto_hyphen, cursive; 22 } 23 </style> 24 <body> 25 <div lang="de"> 26 Donaudampfschifffahrt 27 </div> 28 29 <script> 30 document.fonts.ready.then( 31 () => { document.documentElement.classList.remove("reftest-wait"); }); 32 </script> 33 </body> 34 </html>