text-overflow-003.html (1174B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Basic User Interface Test: text-overflow - inherit - inherit clip value of parent's text-overflow property</title> 4 <link rel="author" title="Intel" href="http://www.intel.com/"> 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> 6 <link rel="help" title="8.2. Overflow Ellipsis: the 'text-overflow' property" href="http://www.w3.org/TR/css3-ui/#text-overflow"> 7 <link rel="match" href="reference/text-overflow-001-ref.html"> 8 <meta name="assert" content="Test checks that text-overflow inherits the parent' clip value when text-overflow set inherit"> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style> 11 #container { 12 text-overflow: clip; 13 } 14 #test { 15 font-size: 10px; 16 overflow: hidden; 17 text-overflow: inherit; 18 white-space: nowrap; 19 width: 120px; 20 } 21 span { 22 font-family: Ahem; 23 font-size: 30px; 24 } 25 </style> 26 <body> 27 <p>Test passes if there is a <strong>black rectangle</strong> below.</p> 28 <div id="container"> 29 <div id="test"> 30 <span>Test checks the content broken if the content overflows the container</span> 31 </div> 32 </div> 33 </body>