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

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

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/selectors3/xhtml/css3-modsel-27a.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>Impossible rules (:root:first-child, etc)</title>
5 <style type="text/css">
6 :root:first-child { background-color: red; }
7 :root:last-child { background-color: red; }
8 :root:only-child { background-color: red; }
9 :root:nth-child(1) { background-color: red; }
10 :root:nth-child(n) { background-color: red; }
11 :root:nth-last-child(1) { background-color: red; }
12 :root:nth-last-child(n) { background-color: red; }
13 :root:first-of-type { background-color: red; }
14 :root:last-of-type { background-color: red; }
15 :root:only-of-type { background-color: red; }
16 :root:nth-of-type(1) { background-color: red; }
17 :root:nth-of-type(n) { background-color: red; }
18 :root:nth-last-of-type(1) { background-color: red; }
19 :root:nth-last-of-type(n) { background-color: red; }
20 p { color: green; }</style>
21 <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
22 <link rel="prev" href="css3-modsel-27.html" title=":root pseudo-class">
23 <link rel="next" href="css3-modsel-27b.html" title="Impossible rules (* html, * :root)">
24 <link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first- child and :last-child">
25 <link rel="up" href="./index.html">
26 <link rel="top" href="../../index.html">
27 </head>
28 <body>
29 <p>This line should be green (there should be no red on this page).</p>
30 </body>
31 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/selectors3/xhtml/css3-modsel-27a.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698