contain-paint-clip-005.html (1314B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test: 'contain: paint' on li with overflowing text contents and 6 bullet, and 'overflow-y: scroll'.</title> 7 <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com"> 8 <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-paint"> 9 <link rel="match" href="contain-paint-clip-003-ref.html"> 10 <style> 11 ul { 12 padding: 0; 13 margin: 0; 14 } 15 .root { 16 contain: paint; 17 overflow-y: scroll; 18 width: 100px; 19 height: 100px; 20 background: green; 21 margin: 25px; 22 padding: 25px; 23 } 24 ::marker { font-family: inherit; } 25 </style> 26 </head> 27 <body> 28 <ul> 29 <li class="root"> 30 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA This text should 31 be clipped to the box. Lorem ipsum dolor sit amet, consectetur adipiscing 32 elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. 33 Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis 34 ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris 35 massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu 36 ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur 37 sodales ligula in libero. 38 </li> 39 </ul> 40 </body> 41 </html>