<!DOCTYPE html>
<html>
    <head>
        <style>
            div.common      {background:black; font:40px/1 Ahem;}
            div.container   {float:right;}
            div.reference   {top: 220px; position: absolute; display: inline;}
        </style>
    </head>
    <body style="text-align: right">
        Both boxes below should be the same width.<br>
        https://bugs.webkit.org/show_bug.cgi?id=47975.
        <br>
        <div class="container common">
            <div>XXX</div>
            <div>XXX</div>
        </div>
        <div class="reference common">
            <div>XXX</div>
            <div>XXX</div>
        </div>
    </body>
</html>
