Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / css3-modsel-36.html
blob109baad99733509c71fca7ef073a3f03182f7fc2
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3 <head>
4 <title>:only-child pseudo-class</title>
5 <style type="text/css">.red { background-color : red }
6 p:only-child { background-color : lime }
7 div.testText > div > p { margin-left : 1em }
8 </style>
9 <link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
10 <link rel="prev" href="css3-modsel-35.html" title=":last-of-type pseudo-class">
11 <link rel="next" href="css3-modsel-37.html" title=":only-of-type pseudo-class">
12 <link rel="last" href="css3-modsel-d5e.html" title="NEGATED :indeterminate with :checked">
13 <link rel="up" href="./index.html">
14 <link rel="top" href="../../index.html">
15 </head>
16 <body>
17 <p>This paragraph should have normal background</p>
18 <div>This div contains only one paragraph
19 <p class="red">This paragraph should have green background</p>
20 </div>
21 </body>
22 </html>