text-overflow-string-002.html (936B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Basic User Interface Test: text-overflow - string - clip ellipsis when space is insufficient</title> 4 <link rel="author" title="Minseong Kim" href="mailto:jja08111@gmail.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4"> 6 <link rel="match" href="reference/text-overflow-string-002-ref.html"> 7 <meta name="assert" content="Test checks when there is insufficient space for the ellipsis"> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style> 10 div { 11 font-family: Ahem; 12 font-size: 10px; 13 } 14 span { 15 font-family: Ahem; 16 font-size: 30px; 17 } 18 .test { 19 overflow: hidden; 20 text-overflow: "123456789"; 21 width: 50px; 22 } 23 </style> 24 <body> 25 <p>Test passes if the two blocks are the same</p> 26 <div class="test"> 27 <span>TestChecksThatTheBrokenContentRepalcedBy12</span> 28 </div> 29 <br/> 30 <div> 31 <span>T</span>12 32 </div> 33 </body>