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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 10 11:24:12 PST 2012


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





--- Comment #4 from Ian Henderson <ianh at apple.com>  2012-02-10 11:24:11 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > Just verified that the issue only affects shorthand properties. Maybe we can merge this bug into bug 49098 because they might be of the same cause?
> 
> It also affect regular longhand properties.
> 
> It seems that it behaves like this on purpose :
> 
> https://bugs.webkit.org/show_bug.cgi?id=60007
> 
> Now I couldn't find anything in the spec about Ian's comment : 
> "An element with a !important property in its style will allow you to override this property in JavaScript without using !important."
> 
> If I take the snippet and run it into Opera 11, Firefox 10 it runs as expecting overriding the !important property.
> 
> So what should we do here? I'll be happy to make the patch if a behavior fix is needed.
> 
> Ian, Dan???

If you have "#elem { background: yellow !important; background: red }" in a stylesheet, should the element end up yellow?  If so, why should the behavior of the JS equivalent be different?

-- 
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