| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <!DOCTYPE html> | 
|  | 2 <html> | 
|  | 3 <head> | 
|  | 4   <script> | 
|  | 5     if (window.internals) | 
|  | 6       window.internals.settings.setCSSExclusionsEnabled(true); | 
|  | 7   </script> | 
|  | 8   <style> | 
|  | 9     .container { | 
|  | 10       width: 500px; | 
|  | 11       font: 40px/1 Ahem, sans-serif; | 
|  | 12     } | 
|  | 13     .triangle-left { | 
|  | 14       position: relative; | 
|  | 15       width: 100px; | 
|  | 16       height: 100px; | 
|  | 17       float: left; | 
|  | 18       -webkit-shape-outside: polygon(0 0, 0 100%, 100% 100%); | 
|  | 19     } | 
|  | 20     .triangle-left:before { | 
|  | 21       display: block; | 
|  | 22       position: absolute; | 
|  | 23       content: ' '; | 
|  | 24       z-index: -1; | 
|  | 25       top: 0px; | 
|  | 26       left: 0px; | 
|  | 27       width: 0; height: 0; | 
|  | 28       background-color: transparent; | 
|  | 29       border-top: 100px solid transparent; | 
|  | 30       border-left: 100px solid rgba(0, 0, 255, 0.5); | 
|  | 31     } | 
|  | 32     .triangle-right { | 
|  | 33       position: relative; | 
|  | 34       width: 100px; | 
|  | 35       height: 100px; | 
|  | 36       float: right; | 
|  | 37       -webkit-shape-outside: polygon(100% 0, 100% 100%, 0% 100%); | 
|  | 38     } | 
|  | 39     .triangle-right:before { | 
|  | 40       display: block; | 
|  | 41       position: absolute; | 
|  | 42       content: ' '; | 
|  | 43       z-index: -1; | 
|  | 44       top: 0px; | 
|  | 45       left: 0px; | 
|  | 46       width: 0; height: 0; | 
|  | 47       background-color: transparent; | 
|  | 48       border-top: 100px solid transparent; | 
|  | 49       border-right: 100px solid rgba(0, 0, 255, 0.5); | 
|  | 50     } | 
|  | 51   </style> | 
|  | 52 </head> | 
|  | 53 <body> | 
|  | 54   <h1>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=110372">110372</a> - 
    [CSS Exclusions] Properly position multiple stacked floats with non rectangular 
    shape outside</h1> | 
|  | 55   <h2>There should be two trianges on the left, and one on the right. None of | 
|  | 56     the triangles shoud overlap, and the black boxes should wrap around the tria
    ngles on the left.</h2> | 
|  | 57   <div class="container"> | 
|  | 58     <div class="triangle-left"></div> | 
|  | 59     X X X X | 
|  | 60     <div style="float:right" class="triangle-left"></div> | 
|  | 61     X X X X | 
|  | 62     <div class="triangle-left"></div> | 
|  | 63     X X X X | 
|  | 64     X X X X | 
|  | 65     X X X X | 
|  | 66     X X X X X X | 
|  | 67   </div> | 
|  | 68   <h2>There should be two trianges on the right, and one on the left. None of | 
|  | 69     the triangles shoud overlap, and the black boxes should wrap around the tria
    ngles on the right.</h2> | 
|  | 70   <div style="text-align: right" class="container"> | 
|  | 71     <div class="triangle-right"></div> | 
|  | 72     X X X X | 
|  | 73     <div style="float:left" class="triangle-right"></div> | 
|  | 74     X X X X | 
|  | 75     <div class="triangle-right"></div> | 
|  | 76     X X X X | 
|  | 77     X X X X | 
|  | 78     X X X X | 
|  | 79     X X X X X X | 
|  | 80   </div> | 
|  | 81 </body> | 
|  | 82 </html> | 
| OLD | NEW | 
|---|