text-overflow-003

text-overflow - inherit - inherit clip value of parent's text-overflow property

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks that text-overflow inherits the parent' clip value when text-overflow set inherit

Source

 1 <!DOCTYPE html>
 2 <html><head><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 href="http://www.intel.com/" rel="author" title="Intel">
 5 <link href="mailto:shiyoux.tan@intel.com" rel="author" title="Shiyou Tan">
 6 <link href="http://www.w3.org/TR/css3-ui/#text-overflow" rel="help" title="8.2. Overflow Ellipsis: the 'text-overflow' property">
 7 <link href="reference/text-overflow-001-ref.htm" rel="match">
 8 <meta content="" name="flags">
 9 <meta content="Test checks that text-overflow inherits the parent' clip value when text-overflow set inherit" name="assert">
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 </head><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 
34 </body></html>