Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an animated value for SvgLengthOrPercentageOrNumber. #18198
Add an animated value for SvgLengthOrPercentageOrNumber. #18198
Changes from 1 commit
f009cb9b375d2cFile filter...
Jump to…
Add animated value for stroke-*.
SMIL animation which fill mode equal 'freeze' will use the specified from/to value, current servo use SvgLengthOrPercentageOrNumber, so animated value when an animation is finished will be LengthOrPercentage value. i.e. If we animate between '20' and '10px'(<animate from='20' to='10px' fill='freeze'>): 0% -> 20 50% -> 15 100% -> 10px The result of computed value contains unit since smil use specified 'to' value. SMIL implementation of gecko side will call Servo_ParseProperty when specified fill='freeze' and animation finished. So this PR add animated value for stroke-* property. This animated value contains the calc() value, but gecko side implementation doesn't support calc(). For detail, see https://bugzilla.mozilla.org/show_bug.cgi?id=1386967.