Bug 1582199 [wpt PR 19141] - [web-animations-1] Update interpolation test for drop-shadow initial value, a=testonly
authorStephen McGruer <smcgruer@chromium.org>
Mon, 23 Sep 2019 12:24:22 +0000
changeset 494689 a1b6ba1100b009271df5ab160ec61592802b385f
parent 494688 ab438452cdfc98656c31a23a80c1dd389d6b3c63
child 494690 960fdf0a69203402e98d4747e070491fe5468cda
push id114126
push userwptsync@mozilla.com
push dateTue, 24 Sep 2019 19:34:44 +0000
treeherdermozilla-inbound@068d8731f1c4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1582199, 19141
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1582199 [wpt PR 19141] - [web-animations-1] Update interpolation test for drop-shadow initial value, a=testonly Automatic update from web-platform-tests [web-animations-1] Update interpolation test for drop-shadow initial value According to the spec (https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-drop-shadow): The initial value for [drop-shadow] interpolation is all length values set to 0 and the used color set to transparent. -- wpt-commits: 2f7b420ac06b3afa3e687ec82c1fa1ee7a39d541 wpt-pr: 19141
testing/web-platform/tests/web-animations/animation-model/animation-types/property-types.js
--- a/testing/web-platform/tests/web-animations/animation-model/animation-types/property-types.js
+++ b/testing/web-platform/tests/web-animations/animation-model/animation-types/property-types.js
@@ -2190,28 +2190,27 @@ const filterListType = {
            expected:
            'opacity(0.5) grayscale(0.5) invert(0.5) sepia(0.5) blur(5px)' }]);
     }, `${property}: interpolate different length of filter-function-list`
        + ' with function which lacuna value is 0');
 
     test(t => {
       const idlName = propertyToIDL(property);
       const target = createTestElement(t, setup);
-      target.style.color = "rgba(255, 0, 0, 0.4)";
       const animation = target.animate(
         { [idlName]:
           ['blur(0px)',
            'blur(10px) drop-shadow(10px 10px 10px rgba(0, 0, 255, 0.8))'] },
         1000);
 
       testAnimationSamples(animation, idlName,
         [{ time: 500,
-           // The lacuna value of drop-shadow's color is taken from
-           // the color property.
-           expected: 'blur(5px) drop-shadow(rgba(85, 0, 170, 0.6) 5px 5px 5px' }]);
+           // Per the spec: The initial value for interpolation is all length values
+           // set to 0 and the used color set to transparent.
+           expected: 'blur(5px) drop-shadow(rgba(0, 0, 255, 0.4) 5px 5px 5px' }]);
     }, `${property}: interpolate different length of filter-function-list`
        + ' with drop-shadow function');
 
     test(t => {
       const idlName = propertyToIDL(property);
       const target = createTestElement(t, setup);
       const animation = target.animate({ [idlName]: ['none', 'blur(10px)'] },
                                      1000);