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

Unified Diff: LayoutTests/fast/selectors/attr-list-01.html

Issue 14980012: Recognize html whitespaces as separators for attribute selectors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 | LayoutTests/fast/selectors/attr-list-01-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/selectors/attr-list-01.html
diff --git a/LayoutTests/fast/selectors/attr-list-01.html b/LayoutTests/fast/selectors/attr-list-01.html
new file mode 100644
index 0000000000000000000000000000000000000000..440404bb430ca3be77dd9cb9f598dec1d8118d68
--- /dev/null
+++ b/LayoutTests/fast/selectors/attr-list-01.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Whitespace-separated attribute selectors</title>
+ <style>
+ span { color: red; }
+ [data-list~="b"] { color: green; }
+ #t1:not([data-list~=" z"]) { color: green; }
+ #t2:not([data-list~="u "]) { color: green; }
+ </style>
+ </head>
+ <body>
+ <p>
+ <span data-list="a b ">This</span>
+ <span data-list="a&#10;b&#13;c">text</span>
+ <span data-list="a &#12;b &#12;">should</span>
+ <span id="t1" data-list="w z x&#09;">be</span>
+ <span id="t2" data-list="u&#09;">green</span>
+ </p>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/selectors/attr-list-01-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698