You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/audits/non-composited-animations.js
+43-5Lines changed: 43 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,14 @@ const UIStrings = {
32
32
=1 {Unsupported CSS Property: {properties}}
33
33
other {Unsupported CSS Properties: {properties}}
34
34
}`,
35
+
/**
36
+
* @description [ICU Syntax] Descriptive reason for why a user-provided animation failed to be optimized by the browser due to custom CSS properties (CSS variables) not being supported on the compositor. Shown in a table with a list of other potential failure reasons.
=1 {Custom CSS properties cannot be animated on the compositor: {properties}}
41
+
other {Custom CSS properties cannot be animated on the compositor: {properties}}
42
+
}`,
35
43
/** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to a `transform` property being dependent on the size of the element itself. Shown in a table with a list of other potential failure reasons. */
36
44
transformDependsBoxSize: 'Transform-related property depends on box size',
37
45
/** Descriptive reason for why a user-provided animation failed to be optimized by the browser due to a `filter` property possibly moving pixels. Shown in a table with a list of other potential failure reasons. */
@@ -90,14 +98,44 @@ function getActionableFailureReasons(failureCode, unsupportedProperties) {
90
98
returnACTIONABLE_FAILURE_REASONS
91
99
.filter(reason=>failureCode&reason.flag)
92
100
.map(reason=>{
101
+
// Handle both regular CSS properties and custom CSS properties
0 commit comments