Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: third_party/WebKit/LayoutTests/animations/animate-shorthand-var-crash.html

Issue 2146053003: Avoid mishandling CSSPendingSubstitutionValues in CSS animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/animate-shorthand-var-crash.html
diff --git a/third_party/WebKit/LayoutTests/animations/animate-shorthand-var-crash.html b/third_party/WebKit/LayoutTests/animations/animate-shorthand-var-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..1bd15ecedb25fbe821f5e4f16d63247c2790278f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/animate-shorthand-var-crash.html
@@ -0,0 +1,16 @@
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+@keyframes crash {
+ from { border-radius: var(--) }
+}
+#target {
+ animation: crash 1s infinite;
+}
+</style>
+<div id="target"></div>
+<script>
+test(() => {
+ getComputedStyle(target).borderRadius;
+}, 'Do not crash when animating a shorthand with var().');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698