<!DOCTYPE HTML> <html lang="en"> <head> <title>Testcase, bug 472252</title> <style type="text/css"> #wrap {width:600px; border:1px solid;position:relative} .a {background:lime; color:#fff; width:80%;} .b {position:absolute; right:0; width:18%; background: cyan; color: #000; height:10em;} textarea {width: 100%; height:10em;} </style> <title>test</title> </head> <body> <div id="wrap"> <div class="b"></div> <div class="a"><textarea></textarea></div> </div> </body> </html>