title: Jquery css method does not set CSS3 variables
body: <p>Good day,</p>
  
  <p>I am working with CSS3 variables to offset items and many other things in runtime however JQuery's css method ignores any attempt at setting a css var. I try the following</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-js lang-js prettyprint-override"><code>    $(document).ready(function() {
          $('#testdiv').css('--bgc','rgb(0,0,255)');
      });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code> div
      {
          --bgc:rgb(255,0,0);
          background-color:var(--bgc);
          width:50px;
          height:50px;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="testdiv"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So in theory the div should initially load as a 50px by 50px red box and as soon as page loading is complete change into a blue box however the --bgc variable is never changed on the DIV. Is there any way to set this in JQuery?</p>