overflow-wrap-anywhere-fit-content-001.html (820B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: overflow-wrap: anywhere with fit-content</title> 4 <link rel="author" title="Koji Ishii" href="mailto:kojiishi@gmail.com"> 5 <link rel="help" href="http://www.w3.org/TR/css-text-3/#overflow-wrap-property"> 6 <link rel="match" href="reference/overflow-wrap-break-word-fit-content-001.html"> 7 <meta name="assert" content="The 'overflow-wrap: anywhere' must not break non-BMP characters (which might be represented as surrogate pairs internally)"> 8 <style> 9 .test { 10 display: inline-block; 11 overflow-wrap: anywhere; 12 font-size: 20px; 13 line-height: 1; 14 margin-bottom: .2em; 15 } 16 </style> 17 <body> 18 <div id="log"></div> 19 <p class="instructions">Tests pass if all lines do not wrap. 20 <div><div class="test">𝜋</div></div> 21 <div><div class="test">𝜋</div></div> 22 </body>