April 27, 2011

Webkit bug: translate3d positioning doesn't activate browser scrollbars

After some frustration in Safari and Mobile Safari, I found that by setting a -webkit-transform: translate3d() to position the y-coordinate of an html element beyond the browser window height, it will not cause the browser to activate its scrollbars. However, by switching to the web-standards css top style, this problem is alleviated. This seems like a browser bug to me.

Consider the following css, in both desktop and mobile Safari:
    .notbroken {
    .broken {
      -webkit-transform: translate3d(0px, 10000px, 0px);
  <div class="notbroken">Scrollbars, please.</div>
Both css classes position the div 10,000 pixels down the page, but if you use the .broken version, you won't get scrollbars, and you'll never be able to see the content.


  1. the same defect affects the copy paste events...

  2. I know its an old post but the correct answer is not given yet. It's not a bug, css3 translate's don't take up space in the dom.

    This means it will never cause a scrollbar to appear.