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