shape-outside-circle-048.html (2008B)
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: vertical-rl, float left, circle(50% at left 40px top 40px)</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-048-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by circle(50% at left 40px top 40px) value under vertical-rl writing-mode."> 13 <meta name="fuzzy" content="maxDifference=0-6; totalPixels=0-6"> 14 <style> 15 .container { 16 writing-mode: vertical-rl; 17 inline-size: 200px; 18 line-height: 0; 19 } 20 21 .shape { 22 float: left; 23 shape-outside: circle(50% at left 40px top 40px) border-box; 24 clip-path: circle(50% at left 40px top 40px) border-box; 25 box-sizing: content-box; 26 block-size: 40px; 27 inline-size: 40px; 28 padding: 20px; 29 border: 20px solid lightgreen; 30 margin-inline-start: 20px; 31 margin-inline-end: 20px; 32 background-color: orange; 33 } 34 35 .box { 36 display: inline-block; 37 inline-size: 60px; 38 background-color: blue; 39 } 40 41 .long { 42 inline-size: 200px; 43 } 44 </style> 45 46 <main class="container"> 47 <div class="shape"></div> 48 <div class="long box" style="block-size: 20px;"></div> <!-- Fill the border area due to the circle shifted --> 49 <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> 50 <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> 51 <div class="box" style="block-size: 36px;"></div> 52 <div class="box" style="block-size: 36px;"></div> 53 <div class="box" style="block-size: 12px;"></div> <!-- Box at corner --> 54 <div class="long box" style="block-size: 20px;"></div> 55 </main> 56 </html>