Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Issue 2844213002: Fix behaviour of shadow interpolation with mismatched list lengths (Closed)

Created:
3 years, 7 months ago by alancutter (OOO until 2018)
Modified:
3 years, 7 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans, suzyh_UTC10 (ex-contributor)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix behaviour of shadow interpolation with mismatched list lengths For shadow properties like box-shadow and text-shadow we were incorrectly interpolating shadow lists with mismatched lengths. The old behaviour would repeat each list to the lowest common multiple, the correct behaviour is to pad the shorted list with "zero" shadows. Spec: https://www.w3.org/TR/css3-transitions/#animatable-types This change adds the "padding" behaviour to list interpolation and composition and updates our shadow animation test cases to match spec behaviour. BUG=713674 Review-Url: https://codereview.chromium.org/2844213002 Cr-Commit-Position: refs/heads/master@{#470205} Committed: https://chromium.googlesource.com/chromium/src/+/4aaaf95a33ef49f61476ca1f3699700fa7ea3fe8

Patch Set 1 #

Patch Set 2 : testspants #

Total comments: 5

Patch Set 3 : enumClass #

Total comments: 2

Patch Set 4 : colourcolorcolour #

Patch Set 5 : Revert transition test to old behaviour #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -153 lines) Patch
M third_party/WebKit/LayoutTests/animations/composition/box-shadow-composition.html View 1 4 chunks +30 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/composition/text-shadow-composition.html View 4 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/box-shadow-interpolation.html View 1 2 3 5 chunks +69 lines, -55 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html View 5 chunks +20 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/responsive/box-shadow-responsive.html View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/transitions/multiple-shadow-transitions.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/transitions/multiple-shadow-transitions-expected.txt View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSImageListInterpolationType.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSShadowListInterpolationType.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.cpp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ListInterpolationFunctions.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ListInterpolationFunctions.cpp View 1 2 7 chunks +147 lines, -38 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
alancutter (OOO until 2018)
3 years, 7 months ago (2017-04-27 05:55:36 UTC) #3
shend
lgtm with nits. https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html File third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html (right): https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html#newcode26 third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html:26: to: 'green 20px 20px 20px', What ...
3 years, 7 months ago (2017-04-27 06:07:49 UTC) #4
alancutter (OOO until 2018)
https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html File third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html (right): https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html#newcode26 third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html:26: to: 'green 20px 20px 20px', On 2017/04/27 at 06:07:49, ...
3 years, 7 months ago (2017-04-27 07:09:22 UTC) #6
shend
https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html File third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html (right): https://codereview.chromium.org/2844213002/diff/20001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html#newcode26 third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html:26: to: 'green 20px 20px 20px', On 2017/04/27 at 07:09:22, ...
3 years, 7 months ago (2017-04-27 07:30:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2844213002/40001
3 years, 7 months ago (2017-04-28 23:43:16 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 7 months ago (2017-04-28 23:43:18 UTC) #12
alancutter (OOO until 2018)
+suzyh for OWNERS review.
3 years, 7 months ago (2017-04-29 23:27:49 UTC) #14
suzyh_UTC10 (ex-contributor)
rs lgtm https://codereview.chromium.org/2844213002/diff/40001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html File third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html (right): https://codereview.chromium.org/2844213002/diff/40001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html#newcode26 third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html:26: to: 'green 20px 20px 20px', Is colour-at-end ...
3 years, 7 months ago (2017-05-01 00:23:55 UTC) #15
alancutter (OOO until 2018)
https://codereview.chromium.org/2844213002/diff/40001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html File third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html (right): https://codereview.chromium.org/2844213002/diff/40001/third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html#newcode26 third_party/WebKit/LayoutTests/animations/interpolation/text-shadow-interpolation.html:26: to: 'green 20px 20px 20px', On 2017/05/01 at 00:23:55, ...
3 years, 7 months ago (2017-05-08 06:36:42 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2844213002/60001
3 years, 7 months ago (2017-05-08 06:37:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/447381)
3 years, 7 months ago (2017-05-08 08:50:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2844213002/80001
3 years, 7 months ago (2017-05-09 00:07:10 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/448273)
3 years, 7 months ago (2017-05-09 01:26:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2844213002/80001
3 years, 7 months ago (2017-05-09 02:40:57 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 04:29:30 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4aaaf95a33ef49f61476ca1f3699...

Powered by Google App Engine
This is Rietveld 408576698