Skip to content

Commit

Permalink
Add CSSProperties.prototype.animation* properties
Browse files Browse the repository at this point in the history
Effectively preventing the following CSSProperties from being
obfuscated when ADVANCED_OPTIMIZATIONS flag is present:

animationName
animationDuration
animationTimingFunction
animationIterationCount
animationDirection
animationPlayState
animationDelay
animationFillMode
animation

Fixes #3006

Closes #3011

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=203804927
  • Loading branch information
esseswann authored and lauraharker committed Jul 9, 2018
1 parent 2199c57 commit e5d4332
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions externs/browser/w3c_css.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,62 @@ CSSProperties.prototype.opacity;
*/
CSSProperties.prototype.textOverflow;

// CSS 3 animations

/**
* @type {string|number}
* @see https://www.w3.org/TR/css-animations-1/#animation
*/
CSSProperties.prototype.animation;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-delay
*/
CSSProperties.prototype.animationDelay;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-direction
*/
CSSProperties.prototype.animationDirection;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-duration
*/
CSSProperties.prototype.animationDuration;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-fill-mode
*/
CSSProperties.prototype.animationFillMode;

/**
* @type {string|number}
* @see https://www.w3.org/TR/css-animations-1/#animation-iteration-count
*/
CSSProperties.prototype.animationIterationCount;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-name
*/
CSSProperties.prototype.animationName;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-play-state
*/
CSSProperties.prototype.animationPlayState;

/**
* @type {string}
* @see https://www.w3.org/TR/css-animations-1/#animation-timing-function
*/
CSSProperties.prototype.animationTimingFunction;

// CSS 3 transforms

/**
Expand Down
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/resources.json

Large diffs are not rendered by default.

0 comments on commit e5d4332

Please sign in to comment.