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

Unified Diff: LayoutTests/css-parser/color-escape-parsing.html

Issue 1169983004: Move fast-path color parsing from CSSPropertyParser to CSSParserFastPaths (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « no previous file | Source/core/css/parser/CSSParser.cpp » ('j') | Source/core/css/parser/CSSParserFastPaths.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css-parser/color-escape-parsing.html
diff --git a/LayoutTests/css-parser/color-escape-parsing.html b/LayoutTests/css-parser/color-escape-parsing.html
new file mode 100644
index 0000000000000000000000000000000000000000..3eaf352a56fadb4539d559780782887b9af30fb8
--- /dev/null
+++ b/LayoutTests/css-parser/color-escape-parsing.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="resources/property-parsing-test.js"></script>
+<script>
+assert_valid_value("color", "\\rgb(10, 20, 30)", "rgb(10, 20, 30)");
+assert_invalid_value("border-color", "\\#ff0000");
+assert_invalid_value("background-color", "rgb\\(255\\,0\\,0\\)");
+</script>
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParser.cpp » ('j') | Source/core/css/parser/CSSParserFastPaths.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698