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> |