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

Unified Diff: Source/core/css/CSSGrammar.y.in

Issue 16583003: Error recovery for valid media query followed by garbage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing comma in test. Created 7 years, 6 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
« no previous file with comments | « LayoutTests/fast/media/media-query-list-syntax-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGrammar.y.in
diff --git a/Source/core/css/CSSGrammar.y.in b/Source/core/css/CSSGrammar.y.in
index 6f375f2e6d33acd194a77e85fba727bad7d65a98..5bf4a90313e55a8bc72951285a3b98eef59ce880 100644
--- a/Source/core/css/CSSGrammar.y.in
+++ b/Source/core/css/CSSGrammar.y.in
@@ -638,6 +638,9 @@ valid_media_query:
media_query:
valid_media_query
+ | valid_media_query error rule_error_recovery {
+ $$ = parser->createFloatingNotAllQuery();
+ }
| error rule_error_recovery {
$$ = parser->createFloatingNotAllQuery();
}
« no previous file with comments | « LayoutTests/fast/media/media-query-list-syntax-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698