float-in-rtl-slr-2-ref.html (757B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <style> 5 .slr { 6 writing-mode: sideways-lr; 7 } 8 </style> 9 </head> 10 <body> 11 <div style="height:0px;width:0px;overflow:visible"> 12 <div style="height:100px;width:120px;background:rgba(0,255,0,0.8);display:inline-block;margin-top:calc(100vh - 116px);"></div> 13 </div> 14 <div style="height:0px;width:0px;overflow:visible"> 15 <div style="height:100px;width:150px;background:rgba(255,0,0,0.8);display:inline-block;margin-top:calc(100vh - 216px);"></div> 16 </div> 17 <div style="height:0px;width:0px;overflow:visible"> 18 <div class="slr" style="background:silver; height: calc(100vh - 16px);"> 19 <div style="margin-bottom:200px;">This text should appear ABOVE the green and red blocks.</div> 20 </div> 21 </div> 22 </body> 23 </html>