[Webkit-unassigned] [Bug 164537] New: Change Element.style using javascript object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 8 17:41:13 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=164537

            Bug ID: 164537
           Summary: Change Element.style using javascript object
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nainar at google.com

The spec here (https://drafts.csswg.org/cssom/#cssstylerule) 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: https://bugs.chromium.org/p/chromium/issues/detail?id=662664

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161109/6712b7b7/attachment.html>


More information about the webkit-unassigned mailing list