hyphens-auto-004.html (1157B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text: 'hyphens: auto' with a valid 'lang' attribute specification</title> 4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> 5 <link rel="help" title="5.4. Hyphenation: the hyphens property" href="https://drafts.csswg.org/css-text-3/#hyphenation"> 6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-hyphens-auto"> 7 <link rel="match" href="reference/hyphens-auto-004M-ref.html"> 8 <link rel="match" href="reference/hyphens-auto-004H-ref.html"> 9 <meta name="flags" content="ahem"> 10 <meta name="assert" content="When 'hyphens' is set to 'auto' and when 'lang' attribute is also set to a valid value, then words may be broken at hyphenation opportunities determined automatically by an hyphenation resource appropriate to the language of the text involved."> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style> 13 .test { 14 border: solid 1px; 15 font: 32px/1 monospace; 16 width: 6ch; 17 18 hyphens: auto; 19 } 20 </style> 21 <body lang="en"> 22 <div class="test">regulation        implementation now</div> 23 </body>