Summary: | SVG Animation doesn't respect 'currentColor' | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dirk Schulze <krit> | ||||
Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | eric, zimmermann | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | PC | ||||||
OS: | OS X 10.5 | ||||||
URL: | http://www.w3.org/Graphics/SVG/Test/20061213/svggen/animate-elem-85-t.svg | ||||||
Attachments: |
|
Description
Dirk Schulze
2010-03-27 01:19:33 PDT
Created attachment 51833 [details]
Patch
Comment on attachment 51833 [details]
Patch
Patch looks fine, the test is flawed though.
New SVG animation tests (not part of SVG 1.1 testsuite) need to go into svg/animations and need to be implemented using the SVG animation specific DRT commands, sampling the animation values at certain times.
When running your new test through DRT, the animation is not executed at all - the png even reflects this, as only one green rects is shown.
Happy to review the follow-up :-)
(In reply to comment #2) > (From update of attachment 51833 [details]) > Patch looks fine, the test is flawed though. > New SVG animation tests (not part of SVG 1.1 testsuite) need to go into > svg/animations and need to be implemented using the SVG animation specific DRT > commands, sampling the animation values at certain times. > When running your new test through DRT, the animation is not executed at all - > the png even reflects this, as only one green rects is shown. > > Happy to review the follow-up :-) It reflects it. It's not realy neccessary to know what happens during the animation. It's just neccessary if the correct color for 'currentColor' is detected. And with the current trunk, this test would fail. (In reply to comment #3) > (In reply to comment #2) > > (From update of attachment 51833 [details] [details]) > > Patch looks fine, the test is flawed though. > > New SVG animation tests (not part of SVG 1.1 testsuite) need to go into > > svg/animations and need to be implemented using the SVG animation specific DRT > > commands, sampling the animation values at certain times. > > When running your new test through DRT, the animation is not executed at all - > > the png even reflects this, as only one green rects is shown. > > > > Happy to review the follow-up :-) > > It reflects it. It's not realy neccessary to know what happens during the > animation. It's just neccessary if the correct color for 'currentColor' is > detected. And with the current trunk, this test would fail. Hm, I'm confused. So the testcase should only show one green rect? Not four rects at all? It's not clear on first sight, so you might want to add comments. (In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #2) > > > (From update of attachment 51833 [details] [details] [details]) > > > Patch looks fine, the test is flawed though. > > > New SVG animation tests (not part of SVG 1.1 testsuite) need to go into > > > svg/animations and need to be implemented using the SVG animation specific DRT > > > commands, sampling the animation values at certain times. > > > When running your new test through DRT, the animation is not executed at all - > > > the png even reflects this, as only one green rects is shown. > > > > > > Happy to review the follow-up :-) > > > > It reflects it. It's not realy neccessary to know what happens during the > > animation. It's just neccessary if the correct color for 'currentColor' is > > detected. And with the current trunk, this test would fail. > > Hm, I'm confused. So the testcase should only show one green rect? Not four > rects at all? > It's not clear on first sight, so you might want to add comments. 4 green rects, that form one rect of the size 100x100 :-) Comment on attachment 51833 [details]
Patch
Jeez, misread the testcase! :-) Fine with me as is, r=me.
Hm, I recall a W3C test that should be fixed by this. Is it part of the 2nd edition and not present in trunk? (In reply to comment #7) > Hm, I recall a W3C test that should be fixed by this. Is it part of the 2nd > edition and not present in trunk? The bad thing about W3C tests is, that they not only test one thing, but different parts of SVG per test. :-( Two tests on the test suite look better with the patch, but still don't pass. Already opened bug reports about the issues and added you to the CC lists :-) Comment on attachment 51833 [details] Patch Clearing flags on attachment: 51833 Committed r56775: <http://trac.webkit.org/changeset/56775> All reviewed patches have been landed. Closing bug. svg/custom/animation-currentColor.svg has been failing on teh Gtk 32-bit Debug builder since this change. Please fix. :) Commited DRT update in http://trac.webkit.org/changeset/56971 |