Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CSSTransitionDiscrete] Fix custom property issues
When attempting to transition a custom property with universal syntax, we hit a DCHECK in StyleBuilder::ApplyProperty because we send a CSSVariableReferenceValue, which is normally expected to be resolved at this point. However, such custom properties represent their computed values as CSSVariableReferenceValues, and the discrete transitions machinery sends those computed values to ApplyProperty without "transformations". This is expected behavior as of CL:4315803. Representing the computed value of universal custom properties with CSSVariableReferenceValue is a bit suspicious and might warrant further investigation, but this CL does not attempt to address that. Instead we alter the DCHECK to expect CSSVariableReferenceValues for relevant custom properties. Also: - Fixed usage of irrelevant custom property in the WPT token-stream-type-type-interpolation.html. - Fixed accumulation of "transitionrun" event listeners when testing multiple transitions in the same .html file (e.g. custom-property-transition-mismatched-list.html). WPTs related to <transform-function> and <transform-list> are still failing, because we don't implement interpolation for those syntaxes yet. Bug: 1399631 Change-Id: I22f0766921061216421839def84bc305edda2a41 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4334509 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1118779}
- Loading branch information
Showing
12 changed files
with
117 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...roperties-values-api/animation/custom-property-transition-transform-function-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL A custom property of type <transform-function> can yield a CSS Transition assert_equals: A single animation is running expected 1 but got 0 | ||
FAIL A custom property of type <transform-function> can yield a CSS Transition assert_equals: Element has the expected animated value expected "translateX(150px)" but got "translateX(200px)" | ||
Harness: the test ran to completion. | ||
|
2 changes: 1 addition & 1 deletion
2
...ss-properties-values-api/animation/custom-property-transition-transform-list-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
This is a testharness.js-based test. | ||
FAIL A custom property of type <transform-list> can yield a CSS Transition assert_equals: A single animation is running expected 1 but got 0 | ||
FAIL A custom property of type <transform-list> can yield a CSS Transition assert_equals: Element has the expected animated value expected "translateX(150px) scale(3)" but got "translateX(200px) scale(4)" | ||
Harness: the test ran to completion. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters