Bug 159261 - Element with inline style with '!important' cannot be updated via JavaScript
Summary: Element with inline style with '!important' cannot be updated via JavaScript
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 07:12 PDT by David Gasperoni
Modified: 2016-08-01 16:11 PDT (History)
3 users (show)

See Also:


Attachments
Test case (936 bytes, text/html)
2016-06-29 07:12 PDT, David Gasperoni
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gasperoni 2016-06-29 07:12:25 PDT
Created attachment 282344 [details]
Test case

Elements that have an inline style with an important rule cannot be updated via JavaScript.

See attachment: by clicking on the button, the element on the page should change background-color AND width, but since the width inline style has the "!important" rule, it does not happen. I checked other main browsers, Chrome and Firefox change the style, while IE (and Edge) don't change it, just like Safari (and WebKit).
Comment 1 David Gasperoni 2016-08-01 16:11:38 PDT
I'm happy to report that Bug 159959 (https://bugs.webkit.org/show_bug.cgi?id=159959) resolves the issue. Found this out in WebKit Nightly r203480.