title: input field text entry gets sluggish when many background elements are present (and more) in Microsoft Edge
body: <p><a href="http://jsfiddle.net/Pointy/2xr0chrp/8/" rel="nofollow noreferrer">Here is a JSFiddle that demonstrates what I describe below</a></p>
  
  <p>I've been trying to track down a weird Edge rendering issue. I have not been able to reproduce the problem, but I have been able to reproduce some odd behavior that I think is directly related. I've got a background trick I use on some full pages and some page headers that involves creating a bunch of random <code>&lt;div&gt;</code> elements with very low opacity (that is, almost transparent) and then randomly transforming them around. It's sort-of dumb but it's been working for me without any issue in Firefox and Chrome for a while.</p>
  
  <p>I recently started testing in Edge (general testing; nothing specific about the background, which I don't spend any time thinking about normally), and very soon noticed that, randomly, mousing over things with simple <code>:hover</code> style shifts (like, darkening button background color) would cause a nearly-opaque gray box to show up covering the element. The gray box would stick around for an unpredictable amount of time, and then go away randomly. It happened sometimes on just a few elements on the page, and sometimes not at all.</p>
  
  <p>That as you can imagine has been making me crazy, partly because I cannot reproduce it in a CodePen or JSFiddle. While trying to investigate, I started noticing that typing into an input field on one affected page (the login page in fact) was extremely sluggish. I'm using a VirtualBox VM for this (not a factor, I don't think, as a coworker with native Windows 10 sees exactly the same problems) so I originally thought it was just latency through that, but after a while it became clear that it wasn't.</p>
  
  <p>On one of several attempts to randomly change something to see what was going on, I disabled the random <code>&lt;div&gt;</code> background, and both the gray box problem and the sluggish input problem went away.</p>
  
  <p>The fiddle linked above is a little simpler than the real setup, but not much. It's simple markup:</p>
  
  <pre><code>&lt;div class=container&gt;
      &lt;input&gt;
      &lt;br&gt;
      &lt;button class=toggle&gt;Toggle Background&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and then some CSS:</p>
  
  <pre><code>body {
      background-color: blue;
      text-align: center;
  }
  .container {
      position: relative;
      display: inline-block;
      margin-top: 100px;
  }
  .shape {
      position: absolute;
      background-color: white;
  }
  .noshapes .shape {
      display: none;
  }
  </code></pre>
  
  <p>The JavaScript to make the shapes is also simple:</p>
  
  <pre><code>for (var i = 0; i &lt; 2000; ++i) {
      $("&lt;div/&gt;", {
          "class": "shape",
          css: {
              transform: "translate(" + Math.random() * 1000 + "px, " + Math.random() * 1000 + "px)",
              opacity: Math.random() * 5 / 100,
              height: Math.random() * 200 + "px",
              width: Math.random() * 200 + "px"
          }
      }).prependTo("body");
  }
  </code></pre>
  
  <p>(On my real page, I only make about 100 random elements.)</p>
  
  <p>On Firefox and Chrome, the input box is completely unaffected by the presence (or absence) of the background elements. However, in Edge, there's a distinct lag when typing into the input field when the elements are visible. It's as if the renderer is trying to do some sort of collision calculation as it updates the <code>&lt;input&gt;</code> display as the value changes.</p>
  
  <p>I wish I could reproduce the even weirder gray box problem, but I haven't been successful. It's clearly a rendering bug, much like many I've seen over the years with predecessor IE in that the manifestation involves a lot of randomness, and seemingly uninteresting events (like the window losing focus, or random mouse movements even) trigger changes. It's a little odd that Edge would suffer from such an issue, but then maybe not. (Does Edge still have the weird "hasLayout" thing?)</p>
  
  <p>I'll probably end up just sniffing for Edge (which seems really sad) because I can't think of any "feature detect" approach for the problem.</p>
  
  <p>Anybody else seen this?  I haven't found mention of it so far.</p>
  
  <p><em>edit</em> I think I see the slow input issue in IE11, but I cannot reproduce the gray box problem there.</p>