Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css3 / selectors3 / xhtml / css3-modsel-32.xml
blob655ea6167dd95a793dc40b4ceab182b3fc4eb116
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4   <title>:first-child pseudo-class</title>
5   <style type="text/css"><![CDATA[.red { background-color : red }
6 .t1 td:first-child { background-color : lime }
7 p > *:first-child { background-color : lime }
8 ]]></style>
9   <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
10   <link rel="prev" href="css3-modsel-31.xml" title=":nth-last-of-type() pseudo-class"/>
11   <link rel="next" href="css3-modsel-33.xml" title=":last-child pseudo-class"/>
12   <link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
13   <link rel="up" href="./index.html"/>
14   <link rel="top" href="../../index.html"/>
15  </head>
16  <body>
17 <div>
18 <table class="t1" border="1">
19   <tr>
20     <td class="red">green cell</td>
21     <td>1.2</td>
22     <td>1.3</td>
23   </tr>
24   <tr>
25     <td class="red">green cell</td>
26     <td>2.2</td>
27     <td>2.3</td>
28   </tr>
29   <tr>
30     <td class="red">green cell</td>
31     <td>3.2</td>
32     <td>3.3</td>
33   </tr>
34 </table>
35 </div>
36 <p>This paragraph contains some text
37           <span>and a span that should have a green background</span>
38 </p>
39 </body>
40 </html>