border-radius-clipping-002.html (1219B)
1 <!DOCTYPE html> 2 3 <meta charset="UTF-8"> 4 5 <title>CSS Backgrounds and Borders Test: 'border-radius' and corner-clipping of content elements</title> 6 7 <link rel="author" title="zhouli" href="mailto:liz@oupeng.com"> 8 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 9 <link rel="help" href="http://www.w3.org/TR/css3-background/#corner-clipping"> 10 <link rel="match" href="../reference/ref-nothing-below.xht"> 11 12 <meta content="" name="flag"> 13 <meta name="assert" content="When set with 'overflow: hidden', an outer container must clip text of its child element at its corners. In this test, the outer container, which has immense size, has a 'border-radius' declaration which implies that the clipping must occur at its curve."> 14 15 <style> 16 body 17 { 18 overflow: hidden; 19 /* 20 otherwise, horizontal and vertical 21 scroll bars will be generated 22 */ 23 } 24 25 div#fail-condition 26 { 27 border-radius: 250em; 28 color: red; 29 font-size: 32px; 30 height: 500em; 31 overflow: hidden; 32 width: 500em; 33 } 34 </style> 35 36 <p>Test passes if there is nothing below. 37 38 <div id="fail-condition">FAIL FAIL FAIL FAIL</div>