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

Unified Diff: third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html

Issue 1824283002: Ensure that we don't allow 'normal' alongside other values in content property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html
diff --git a/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html b/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html
new file mode 100644
index 0000000000000000000000000000000000000000..6aa63571ce7b906fef3884dacd987c389ef7c4cb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css-parser/content-parsing-invalid.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<style>
+#target::before {
+ content: normal normal;
+}
+#target::after {
+ content: normal normal;
+}
+</style>
+
+<div id="target"></div>
+
+<script>
+test(function(){
+ assert_equals(getComputedStyle(target, '::before').content, '');
+ assert_equals(getComputedStyle(target, '::after').content, '');
+}, "Test to ensure that invalid values of content on pseudo elements are dropped by the parser");
+</script>

Powered by Google App Engine
This is Rietveld 408576698