DescriptionPrevent will-change:transform from changing the computed value of transform
Elements styled with "will-change: transform" are supposed to behave like
transformed elements for the purposes of containing block creation, even
if their transform value is "none". The idea is that setting a transform on
such elements should be fast, involving only moving a composited layer
rather than changing layout. Currently, this is implemented by changing the
computed value of transform from 'none' to the identity transform. However,
changing the computed value of transform causes animations on such
elements to interpolate incorrectly, since interpolating from 'none' is not
equivalent to interpolating from the identity (in particular, interpolating
from the latter can lead to matrix decomposition rather than numerical
interpolation, producing visually different results).
This CL changes makes "will-change: transform" no longer change the
computed value of transform. Instead, this CL makes
ComputedStyle::hasTransformRelatedProperty return true for elements with
"will-change: transform".
BUG=525886
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201557
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebased #Patch Set 3 : #
Messages
Total messages: 10 (5 generated)
|