clip-path-reference-box-004.html (1078B)
1 <!DOCTYPE html> 2 <title>CSS Masking: clip path reference box with inline boxes</title> 3 <link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com"> 4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path"> 5 <link rel="help" href="https://drafts.csswg.org/css-box-3/#content-area"> 6 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#funcdef-polygon"> 7 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=641907"> 8 <link rel="match" href="reference/clip-path-reference-box-004-ref.html"> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"/> 10 <meta name="assert" content="Check that the 'clip-path' property applied to an inline that spans multiple lines uses the correct reference boxes/reference box for each fragment."> 11 12 <style> 13 div { 14 width: 100px; 15 height: 100px; 16 overflow: hidden; 17 line-height: 50px; 18 font-size: 50px; 19 font-family: Ahem; 20 } 21 span { 22 background-color: green; 23 color: green; 24 clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); 25 } 26 </style> 27 <div> 28 <span>XX XX</span> 29 </div>