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

Issue 23287005: CSS Animations: Clamp to avoid underflow when blending unsigned values (Closed)

Created:
7 years, 4 months ago by dstockwell
Modified:
7 years, 4 months ago
Reviewers:
Steve Block
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), jeez, eae+blinkwatch, Timothy Loh, dglazkov+blink, darktears, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

CSS Animations: Clamp to avoid underflow when blending unsigned values Previously our implementation could underflow when given a timing function that produced values outside 0-1. This change clamps any possible underflow of unsigned interpolation to produce 0. This affects interpolation of the following properties: border-*-width (specified to be interpolated as length) -webkit-column-rule-width (specified to be interpolated as length) -webkit-column-count (specified to be interpolated as integer) outline-width (specified to be interpolated as length) Interpolation of these types is defined here: http://dev.w3.org/csswg/css-transitions/#animtype-length http://dev.w3.org/csswg/css-transitions/#animtype-integer Both are "interpolated as real numbers" and integer is then "converted to an integer by rounding to the nearest integer" Clamping to 0 matches the behavior of Firefox for the test added here. BUG=276109 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156453

Patch Set 1 #

Total comments: 1

Patch Set 2 : Describe test #

Patch Set 3 : Update TestExpectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
A LayoutTests/animations/unsigned-underflow.html View 1 1 chunk +31 lines, -0 lines 0 comments Download
A LayoutTests/animations/unsigned-underflow-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/platform/animation/AnimationUtilities.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
dstockwell
7 years, 4 months ago (2013-08-20 06:29:03 UTC) #1
Steve Block
I assume this is the correct behaviour, but do you have a link to a ...
7 years, 4 months ago (2013-08-20 06:56:08 UTC) #2
dstockwell
On 2013/08/20 06:56:08, Steve Block wrote: > I assume this is the correct behaviour, but ...
7 years, 4 months ago (2013-08-20 07:55:45 UTC) #3
Steve Block
lgtm > Previously we underflowed, the test added here produced: > FAIL - "border-top-width" property ...
7 years, 4 months ago (2013-08-21 00:32:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/23287005/13001
7 years, 4 months ago (2013-08-21 02:44:09 UTC) #5
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-21 05:52:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/23287005/13001
7 years, 4 months ago (2013-08-21 06:18:35 UTC) #7
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-21 06:23:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dstockwell@chromium.org/23287005/13001
7 years, 4 months ago (2013-08-21 06:24:40 UTC) #9
commit-bot: I haz the power
7 years, 4 months ago (2013-08-21 07:31:37 UTC) #10
Message was sent while issue was closed.
Change committed as 156453

Powered by Google App Engine
This is Rietveld 408576698