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

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: Brought the behavior closer to the spec, added another test 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..f8c83b58c2027b43e477b59183ba93429fc96252
--- /dev/null
+++ b/LayoutTests/fast/css/webkit-keyframes-errors.html
@@ -0,0 +1,33 @@
+<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";
+ }
+ </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>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698