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

Side by Side Diff: third_party/WebKit/LayoutTests/css3/selectors3/xml/css3-modsel-27a.css

Issue 2588643004: Allow positional selectors to match elements without a parent. (Closed)
Patch Set: Allow positional selectors to match elements without a parent. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1
2 :root:first-child { background-color: red; }
3 :root:last-child { background-color: red; }
4 :root:only-child { background-color: red; }
5 :root:nth-child(1) { background-color: red; }
6 :root:nth-child(n) { background-color: red; }
7 :root:nth-last-child(1) { background-color: red; }
8 :root:nth-last-child(n) { background-color: red; }
9 :root:first-of-type { background-color: red; }
10 :root:last-of-type { background-color: red; }
11 :root:only-of-type { background-color: red; }
12 :root:nth-of-type(1) { background-color: red; }
13 :root:nth-of-type(n) { background-color: red; }
14 :root:nth-last-of-type(1) { background-color: red; }
15 :root:nth-last-of-type(n) { background-color: red; }
16 p { color: green; }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698