<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Change Element.style using javascript object"
   href="https://bugs.webkit.org/show_bug.cgi?id=164537">164537</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Change Element.style using javascript object
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>CSS
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nainar&#64;google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The spec here (<a href="https://drafts.csswg.org/cssom/#cssstylerule">https://drafts.csswg.org/cssom/#cssstylerule</a>) states that the style attribute on Element has [PutForwards=cssText] in the CSSOM spec and cssText is of DOMString type. You should be able to modify the element.style variable by the following:

element.style = 'valid css'

The attached file shows
First:: 200
Second:: 0
on both FF and Chrome

It shows 
First:: 200
Second:: 200 
on Safari and IE. 

Also you can take a look at the relevant discussion on the Chrome bug here: <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=662664">https://bugs.chromium.org/p/chromium/issues/detail?id=662664</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>