 src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>

<body onload="checkLayout('.item')">

<!-- No overflow, centered in IMCB. -->
<div class="container">
  <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">
    <div class="inner"></div>
  </div>
</div>

<!-- Overflows IMCB, but not CB. -->
<div class="container">
  <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">
   