Bug 11698

Summary: assigning "" to CSS properties has no effect
Product: WebKit Reporter: Fabian Jakobs <fabian.jakobs>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: fabian.jakobs
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test case none

Fabian Jakobs
Reported 2006-11-27 08:29:39 PST
Assigning "" to CSS properties sets the property to the default value in other browsers (IE and Firefox). WebKit just ignores such assignments. Example element.style.border = "" // no effect in WebKit, resets border in FF and IE element.style.border = "0px none" // works OK
Attachments
Test case (2.20 KB, text/html)
2006-11-27 08:30 PST, Fabian Jakobs
no flags
Fabian Jakobs
Comment 1 2006-11-27 08:30:39 PST
Created attachment 11641 [details] Test case test case added.
Matt Lilek
Comment 2 2006-11-27 09:04:44 PST
Works in Opera too.
Rob Buis
Comment 3 2007-05-17 01:09:24 PDT
The testcase seems to work in ToT. Cheers, Rob.
Alexey Proskuryakov
Comment 4 2007-05-17 10:11:18 PDT
Yes, this was fixed a while ago.
Rob Buis
Comment 5 2007-05-20 04:39:44 PDT
Marking as fixed after ap's comment. Cheers, rob.
Note You need to log in before you can comment on or make changes to this bug.