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

Unified Diff: LayoutTests/css-parser/not-pseudo-class-whitespace.html

Issue 1119983002: Allow whitespace at end of :not() pseudo-class, i.e. :not(div ) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css-parser/not-pseudo-class-whitespace.html
diff --git a/LayoutTests/css-parser/not-pseudo-class-whitespace.html b/LayoutTests/css-parser/not-pseudo-class-whitespace.html
new file mode 100644
index 0000000000000000000000000000000000000000..157bf0382e166ed5a1fb4017670f225a2878cc86
--- /dev/null
+++ b/LayoutTests/css-parser/not-pseudo-class-whitespace.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<div id="div1"></div>
+<div id="div2"></div>
+
+<script>
+test(function () {
+ assert_equals(div1, document.querySelector("div:not(#div2)"));
+ assert_equals(div1, document.querySelector("div:not( #div2)"));
+ assert_equals(div2, document.querySelector("div:not( #div1 )"));
+ assert_equals(div2, document.querySelector("div:not(#div1 )"));
+}, "Checks that whitespaces are allowed in the :not pseudo-class");
+</script>
« no previous file with comments | « no previous file | Source/core/css/parser/CSSSelectorParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698