title: Bootstrap: modal and transform-scale on body
body: <p>I use bootstrap 4 (but I have the same issue on bootstrap 3).</p>
  
  <p>In my css, I have a <code>transform:scale(0.9)</code> on my body.</p>
  
  <p>When I open a modal the page scrolltop (that's not really a scroll, I think its a css issue) and the modal and backdrop are on the top of the page and not just upper the clicked button ...</p>
  
  <p>You can reproduce it easily: open a modal and in DOM editor(f12) add <code>transform:scale(1)</code> on the body.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html lang="fr"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Titre de la page&lt;/title&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body style="transform:scale(1)"&gt;
  top&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
  down down&lt;br&gt;
    &lt;!-- Button trigger modal --&gt;
  &lt;button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"&gt;
    Launch demo modal
  &lt;/button&gt;
  
  &lt;!-- Modal --&gt;
  &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"&gt;
    &lt;div class="modal-dialog" role="document"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
          &lt;h4 class="modal-title" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          ...
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
          &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>