diff options
author | Brian Birtles <birtles@gmail.com> | 2017-06-05 11:24:38 +0900 |
---|---|---|
committer | Brian Birtles <birtles@gmail.com> | 2017-06-05 12:49:32 +0900 |
commit | e48f94cbdac07994ce743ad22aa4b647dac1f174 (patch) | |
tree | dfe80508dda2a4479ed5f39db0d83190897571d5 /python/mach_bootstrap.py | |
parent | 00cdced2cab794d2160fcae372dd3c6902c9098e (diff) | |
download | servo-e48f94cbdac07994ce743ad22aa4b647dac1f174.tar.gz servo-e48f94cbdac07994ce743ad22aa4b647dac1f174.zip |
Don't introduce calc() when interpolating between length and percentages if either side is zero
Without this patch anim-css-strokewidth-1-by-pct-pct.svg (and possibly
others) fails because we calculate the result as 'calc(0px + 10%)' and
we don't support calc on stroke-width (yet) so the rendered result is
incorrect.
As a more thorough fix, we should make the zero-value for
LengthOrPercentageOrNumber a zero *number* (instead of a zero length)
but that won't work yet since we don't support animating between
stroke-widths with units and those that don't (see
https://bugzilla.mozilla.org/show_bug.cgi?id=1369614). Regardless of
that, we still shouldn't introduce calc in order to add a zero value
using the LengthOrPercentage type, so this change is still needed.
Diffstat (limited to 'python/mach_bootstrap.py')
0 files changed, 0 insertions, 0 deletions