Bug 17039 - 'border-color' does not animate to the value of 'color' when unspecified
Summary: 'border-color' does not animate to the value of 'color' when unspecified
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-27 19:43 PST by mitz
Modified: 2008-02-06 08:04 PST (History)
0 users

See Also:


Attachments
Test case (283 bytes, text/html)
2008-01-27 19:45 PST, mitz
no flags Details
Fix (12.37 KB, patch)
2008-02-05 19:32 PST, mitz
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2008-01-27 19:43:10 PST
When 'border-color' is unspecified, its value is the computed value of 'color', but when animating to that state, the value animates to 'transparent' instead. See the attached test case.
Comment 1 mitz 2008-01-27 19:44:16 PST
(The same happens when animating *from* an unspecified border-color).
Comment 2 mitz 2008-01-27 19:45:06 PST
Created attachment 18730 [details]
Test case

The border should animated from red to blue and back to red, but never be transparent.
Comment 3 mitz 2008-01-27 20:04:11 PST
The reason for this bug is that the "copy from the 'color' property" rule is implemented as a paint-time hack (strangely it is replaced with "set to light gray" if the border style is one of the "3D" styles; Firefox does not do that).
Comment 4 mitz 2008-02-05 19:32:35 PST
Created attachment 18946 [details]
Fix
Comment 5 Darin Adler 2008-02-06 06:45:41 PST
Comment on attachment 18946 [details]
Fix

r=me
Comment 6 mitz 2008-02-06 08:04:41 PST
Fixed in <http://trac.webkit.org/projects/webkit/changeset/30039>.