title: Enable real fixed positioning on Samsung Android browsers
body: <p>The Android browser, since 2.2, supports fixed positioning, at least under certain circumstances such as when scaling is turned off. I have a simple HTML file with no JS, but the fixed positioning on three Samsung phones I've tried is simply wrong. Instead of true fixed positioning, the header scrolls out of view then pops back into place after the scrolling is done.</p>
  
  <p>This doesn't happen on the Android SDK emulator for any configuration I've tested (2.2, 2.3, 2.3 x86, 4.0.4). It also doesn't happen when using the WebView in an app on the Samsung phones: in those cases the positioning works as expected.</p>
  
  <p><strong>Is there a way to make the Samsung Android "stock" browser use real fixed positioning?</strong></p>
  
  <p>I've tested:
   1. Samsung Galaxy 551, Android 2.2
   2. Samsung Galaxy S, Android 2.3
   3. Samsung Galaxy S II, Android 2.3</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no,width=device-width,height=device-height"&gt; 
      &lt;style&gt;
      h1 { position: fixed; top: 0; left: 0; height: 32px; background-color: #CDCDCD; color: black; font-size: 32px; line-height: 32px; padding: 2px; width: 100%; margin: 0;}
      p { margin-top: 36px; }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Header&lt;/h1&gt;
      &lt;p&gt;Long text goes here&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The expected behaviour is that the grey header fills the top of the screen and stays put no matter how much you scroll. On Samsung Android browsers it seems to scroll out of view then pop back into place once the scrolling is done, as if the fixed-positioning is being simulated using Javascript, which it isn't.</p>
  
  <p><strong>Edit</strong>
  Judging by the comments and "answers" it seems that maybe I wasn't clear on what I need. I am looking for a meta tag or css rule/hack or javascript toggle which turns off Samsung's broken fixed-positioning and turns on the Android browser's working fixed-positioning. I am not looking for a Javascript solution that adds broken fixed-positioning to a browser that has no support whatsoever; the Samsung fixed-positioning does that already, it just looks stupid.</p>