shape-outside-inset-021.html (1954B)
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 right, 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-021-ref.html"> 12 <meta name="assert" content="Test the boxes are wrapping around the right 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-4"> 14 <style> 15 .container { 16 writing-mode: horizontal-tb; 17 direction: rtl; 18 inline-size: 200px; 19 line-height: 0; 20 } 21 22 .shape { 23 float: right; 24 shape-outside: inset(10px round 0 40px/ 0 60px) border-box; 25 clip-path: inset(10px round 0 40px/ 0 60px) border-box; 26 box-sizing: content-box; 27 block-size: 40px; 28 inline-size: 40px; 29 padding: 20px 10px; 30 border: solid lightgreen; 31 border-width: 30px 20px; 32 background-color: orange; 33 } 34 35 .box { 36 display: inline-block; 37 inline-size: 80px; 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: 10px;"></div> <!-- Fill the inset space --> 49 <div class="box" style="block-size: 24px;"></div> <!-- Box at corner --> 50 <div class="box" style="block-size: 36px;"></div> 51 <div class="box" style="block-size: 36px;"></div> 52 <div class="box" style="block-size: 24px;"></div> <!-- Box at corner --> 53 <div class="long box" style="block-size: 10px;"></div> <!-- Fill the inset space --> 54 </main> 55 </html>