shape-outside-border-box-002-ref.html (1589B)
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, border-box reference</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 <style> 11 .container { 12 direction: rtl; 13 width: 200px; 14 line-height: 0; 15 } 16 17 .shape { 18 float: right; 19 /* Omit shape-outside: border-box; */ 20 box-sizing: content-box; 21 height: 25px; 22 width: 25px; 23 padding: 25px; 24 border: 25px solid lightgreen; 25 margin-right: 25px; 26 background-color: orange; 27 } 28 29 .box { 30 display: inline-block; 31 width: 25px; 32 height: 25px; 33 background-color: blue; 34 } 35 36 .longbox { 37 display: inline-block; 38 width: 200px; 39 height: 25px; 40 background-color: blue; 41 } 42 </style> 43 44 <main class="container"> 45 <div class="longbox"></div> <!-- Saturate the margin space --> 46 <div class="shape"></div> 47 <div class="box"></div> 48 <div class="box"></div> 49 <div class="box"></div> 50 <div class="box"></div> 51 <div class="box"></div> 52 <div class="longbox"></div> <!-- Saturate the margin space --> 53 54 <div class="longbox"></div> <!-- Saturate the margin space --> 55 <div class="shape"></div> 56 <div class="box"></div> 57 <div class="box"></div> 58 <div class="box"></div> 59 <div class="box"></div> 60 <div class="box"></div> 61 <div class="longbox"></div> <!-- Saturate the margin space --> 62 </main> 63 </html>