shape-outside-margin-box-border-radius-008.html (1768B)
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 in ltr container, margin-box, border-top-left-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-margin-box-border-radius-008-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the right float shape in ltr container defined by the margin-box and border-top-left-radius value."> 13 <style> 14 .bfc { 15 width: 200px; 16 line-height: 0; 17 direction: rtl; 18 } 19 20 .container { 21 direction: ltr; 22 unicode-bidi: bidi-override; 23 } 24 25 .shape { 26 float: right; 27 shape-outside: margin-box; 28 border-top-left-radius: 50%; 29 box-sizing: content-box; 30 height: 20px; 31 width: 20px; 32 padding: 20px; 33 border: 20px solid lightgreen; 34 margin: 10px; 35 background-color: orange; 36 } 37 38 .box { 39 display: inline-block; 40 width: 60px; 41 background-color: blue; 42 } 43 </style> 44 45 <main class="bfc"> 46 <span class="container"> 47 <div class="shape"></div> 48 </span> 49 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 50 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 51 <div class="box" style="height: 36px;"></div> 52 <div class="box" style="height: 36px;"></div> 53 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 54 <div class="box" style="height: 12px;"></div> <!-- Box at corner --> 55 </main> 56 </html>