[Webkit-unassigned] [Bug 49059] Unable to remove 'important' priority of a CSS shorthand property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 28 09:12:33 PDT 2013


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


Anna <ganna.khabibullina at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ganna.khabibullina at gmail.co
                   |                            |m




--- Comment #6 from Anna <ganna.khabibullina at gmail.com>  2013-10-28 09:11:19 PST ---
I don't believe it's a bug, this seems to be xbrowser approach. Once set as important you cannot override the style with the other non-important style. Having met the same problem, I did the following:

// Get the style object.
var styleObj= document.getElementById('foo').style;

// Remove the property with important priority you want to override. In the example below - height.
styleObj.removeProperty('height');

// Set the new value for the property with non-important priority.
 document.getElementById('foo').style.setProperty('height', '100px', null);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list