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

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/reject-hyphen.html

Issue 1771733002: Web Animations: Use of hyphens is no longer supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid Windows Release failure Created 4 years, 9 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
Index: third_party/WebKit/LayoutTests/web-animations-api/reject-hyphen.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/reject-hyphen.html b/third_party/WebKit/LayoutTests/web-animations-api/reject-hyphen.html
new file mode 100644
index 0000000000000000000000000000000000000000..a98ce47ca97bac5f1c966feb15bb94a644a3b733
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/web-animations-api/reject-hyphen.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+
+div { font-size: 10px; }
+
+</style>
+<div id='element'></div>
+<script>
+
+var element = document.getElementById('element');
+
+test(function() {
+ element.animate({'font-size': '20px'}, {fill: 'forwards'});
+ assert_equals(getComputedStyle(element).fontSize, '10px');
+
+ element.animate({'fontSize': '30px'}, {fill: 'forwards'});
+ assert_equals(getComputedStyle(element).fontSize, '30px');
+}, 'Hyphenated propery names are ignored.');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698