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