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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html

Issue 1537523003: Add correct equality testing for ComputedStyle's StyleVariableData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/core.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html b/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
new file mode 100644
index 0000000000000000000000000000000000000000..582af3576a9cb049dd1edbb089d6a4a85c9fdbf6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+
+<style>
+body {
+ --b: 420px;
+}
+#element {
+ --a: var(--b);
+ width: 100px;
+ height: 100px;
+ background-color: red;
+ transition: width 1s;
+}
+
+#element.triggered {
+ width: var(--a);
+}
+</style>
+
+<div id='element'></div>
+
+<script>
+var test = async_test("this test passes if it doesn't assert");
+
+requestAnimationFrame(x => {
+ element.classList.add('triggered');
+ requestAnimationFrame(x => {
+ requestAnimationFrame(x => {
+ requestAnimationFrame(x => {
+ requestAnimationFrame(x => {
+ test.done();
+ })
+ })
+ })
+ })
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698