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