shape-outside-content-box-border-radius-001.html (1703B)
1 <!DOCTYPE html> 2 <!-- Any copyright is dedicated to the Public Domain. 3 - http://creativecommons.org/publicdomain/zero/1.0/ --> 4 5 <html> 6 <meta charset="utf-8"> 7 <title>CSS Shape Test: float left, content-box, border-radius</title> 8 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 9 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 10 <link rel="help" href="https://drafts.csswg.org/css-shapes-1/#shapes-from-box-values"> 11 <link rel="match" href="reference/shape-outside-content-box-border-radius-001-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the content-box and border-radius value."> 13 <style> 14 .container { 15 width: 200px; 16 line-height: 0; 17 } 18 19 .shape { 20 float: left; 21 shape-outside: content-box; 22 border-radius: 50%; 23 box-sizing: content-box; 24 height: 120px; 25 width: 120px; 26 padding: 10px; 27 border: 5px solid lightgreen; 28 margin: 5px; 29 background-color: orange; 30 } 31 32 .box { 33 display: inline-block; 34 width: 60px; 35 background-color: blue; 36 } 37 38 .longbox { 39 display: inline-block; 40 width: 200px; 41 height: 20px; 42 background-color: blue; 43 } 44 </style> 45 46 <main class="container"> 47 <div class="shape"></div> 48 <div class="longbox"></div> <!-- Saturate the margin and border space --> 49 <div class="box" style="height: 24px;"></div> <!-- Box at corner --> 50 <div class="box" style="height: 36px;"></div> 51 <div class="box" style="height: 36px;"></div> 52 <div class="box" style="height: 24px;"></div> <!-- Box at corner --> 53 <div class="longbox"></div> <!-- Saturate the margin and border space --> 54 </main> 55 </html>