shape-outside-ellipse-033.html (1793B)
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, ellipse(40px 60px at right bottom)</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-ellipse-033-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the left float shape defined by the basic shape ellipse(40px 60px at right bottom) value."> 13 <style> 14 .container { 15 width: 200px; 16 line-height: 0; 17 } 18 19 .shape { 20 float: left; 21 shape-outside: ellipse(40px 60px at right bottom); 22 clip-path: ellipse(40px 60px at right bottom); 23 box-sizing: content-box; 24 height: 40px; 25 width: 40px; 26 padding: 20px; 27 border: 20px solid lightgreen; 28 background-color: orange; 29 } 30 31 .box { 32 display: inline-block; 33 width: 60px; 34 background-color: blue; 35 } 36 37 .long { 38 width: 200px; 39 } 40 </style> 41 42 <main class="container"> 43 <div class="shape"></div> 44 <div class="shape"></div> 45 <div class="long box" style="height: 60px;"></div> <!-- Fill the space above the first float --> 46 <div class="box" style="height: 36px;"></div> 47 <div class="box" style="height: 12px;"></div> 48 <div class="box" style="height: 12px;"></div> 49 <div class="long box" style="height: 60px;"></div> <!-- Fill the space between two floats --> 50 <div class="box" style="height: 36px;"></div> 51 <div class="box" style="height: 12px;"></div> 52 <div class="box" style="height: 12px;"></div> 53 </main> 54 </html>