shape-outside-circle-043.html (1800B)
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 right, circle(closest-side at center) border-box</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/#supported-basic-shapes"> 11 <link rel="match" href="reference/shape-outside-circle-042-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the right float shape defined by the basic shape circle(closest-side at center) border-box value."> 13 <meta name="fuzzy" content="maxDifference=0-6; totalPixels=0-6"> 14 <style> 15 .container { 16 direction: rtl; 17 width: 200px; 18 line-height: 0; 19 } 20 21 .shape { 22 float: right; 23 shape-outside: circle(closest-side at center) border-box; 24 clip-path: circle(closest-side at center) border-box; 25 box-sizing: content-box; 26 height: 40px; 27 width: 40px; 28 padding: 20px; 29 border: 20px solid lightgreen; 30 margin-left: 10px; /* Not affect layout of the boxes */ 31 background-color: orange; 32 } 33 34 .box { 35 display: inline-block; 36 width: 60px; 37 background-color: blue; 38 } 39 </style> 40 41 <main class="container"> 42 <div class="shape"></div> 43 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 44 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 45 <div class="box" style="height: 36px;"></div> 46 <div class="box" style="height: 36px;"></div> 47 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 48 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 49 </main> 50 </html>