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

Unified Diff: LayoutTests/fast/css/webkit-keyframes-errors.html

Issue 13871007: Add CSS parser recovery from errors while parsing @-webkit-keyframes key values. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added tests for out-of-range percentage key values Created 7 years, 8 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: LayoutTests/fast/css/webkit-keyframes-errors.html
diff --git a/LayoutTests/fast/css/webkit-keyframes-errors.html b/LayoutTests/fast/css/webkit-keyframes-errors.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b153f38da0b6ecf3659352837d8a4959cbc792b
--- /dev/null
+++ b/LayoutTests/fast/css/webkit-keyframes-errors.html
@@ -0,0 +1,42 @@
+<html>
+<body>
+ <p>Test for Blink bug <a href="https://code.google.com/p/chromium/issues/detail?id=228870">228870</a>: CSS parser incorrectly handles invalid @-webkit-keyframes key values</p>
+ <style>
+ @-webkit-keyframes foo {
+ 0 {foo: bar;}
+ }
+
+ #output-1:before {
+ content: "PASSED";
+ }
+
+ @-webkit-keyframes foo {
+ 0, 100% {foo: bar;}
+ }
+
+ #output-2:before {
+ content: "PASSED";
+ }
+
+ @-webkit-keyframes foo {
+ 10%, none {foo: bar;}
+ }
+
+ #output-3:before {
+ content: "PASSED";
+ }
+
+ @-webkit-keyframes foo {
+ -10%, from {foo: bar;}
+ }
+
+ #output-4:before {
+ content: "PASSED";
+ }
+ </style>
+ <div id="output-1"> (INTEGER single key)</div>
+ <div id="output-2"> (INTEGER in a key list)</div>
+ <div id="output-3"> (unknown IDENT in a key list)</div>
+ <div id="output-4"> (out-of-range percentage key value in a key list)</div>
+</body>
+</html>
« no previous file with comments | « LayoutTests/animations/keyframes-invalid-keys-expected.txt ('k') | LayoutTests/fast/css/webkit-keyframes-errors-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698