Summary: | css border-color: inherit doesn't work in Safari | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Anantha Keesara <anantha> | ||||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | aroben, mitz | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows XP | ||||||||||
URL: | http://www.hixie.ch/tests/adhoc/css/inheritance/border-color/001.html | ||||||||||
Attachments: |
|
Description
Anantha Keesara
2008-04-18 09:41:44 PDT
Created attachment 20691 [details]
patch
It's bit of a brute-force method, but the only other way is to set border-color for every element within a page and that would require pretty major modifications to the code, can't see any drawback to doing it this way, compared to not doing it at all.
(I'm a little confused about the -expected png image now being integrated in the txt file, but it seems to work fine, so I guess that's just the new way of doing it.)
(In reply to comment #1) > (I'm a little confused about the -expected png image now being integrated in > the txt file, but it seems to work fine, so I guess that's just the new way of > doing it.) This is due to a recent regression in run-webkit-tests (or DumpRenderTree?). For now, I suggest rolling WebKitTools back to r32023 and generating the results. Comment on attachment 20691 [details]
patch
+#define HANDLE_INHERIT_COND_WITH_BACKUP(propID, prop, propAlt, Prop) \
I don't know if propAlt is necessary, because I don't think it can ever be anything other than 'color'.
Comment on attachment 20691 [details]
patch
r=me
(In reply to comment #3) > I don't know if propAlt is necessary, because I don't think it can ever be > anything other than 'color'. Well, it was supposed to be re-usable, if ever needed for any other CSS properties. While there's nothing right now, there might be properties in the future that could take advantage of it. Just not a big fan of hardcoding stuff. I assume this is fine, since it was r+ by Dave? I'll udpate the patch to include the test case in the proper format. Created attachment 20697 [details]
patch (updated)
Updated the test case results to have the png and the checksum files.
Created attachment 20724 [details]
patch (updated 2)
Ok, this is now updated to include outline-color, column-rule-color, -webkit-text-fill-color, and -webkit-text-stroke-color, pert matz's suggestion.
Comment on attachment 20724 [details]
patch (updated 2)
r=me
+ Fix border-color, outline-color, column-color, -webkit-text-stroke-color, and -webkit-text-fill-color inheritance to correctly use parent's color if the parent's corresponding (border, outline, etc.)-color property wasn't set.
The ChangeLog should be hand-wrapped to ~80 columns. Whoever lands the patch should do it.
|