[Webkit-unassigned] [Bug 73941] New: Handling of !important in inline style sets is broken
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 6 11:49:31 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=73941
Summary: Handling of !important in inline style sets is broken
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bzbarsky at mit.edu
Consider the attached testcase, which does:
document.getElementById("x").style.color = "red !important";
Per http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface the behavior should be:
Similarly for the table below, setting the IDL attribute in the first column must invoke
setProperty() with as first argument the CSS property given in the second column on the same row,
as second argument the given value, and no third argument.
and the definition of setProperty says:
If parsing the value returns null terminate this algorithm.
Note: value can not include "!important".
WebKit gets the setProperty part right, but not the idl attribute set part. Gecko and IE9 get the idl attribute part right.
--
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