1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <title>:nth-child() pseudo-class with hidden elements</title>
4 <style type="text/css"><![CDATA[
5 line { display: block; }
6 [type~=match] { background: lime ! important; }
7 line:nth-child(3n-1) { background: red; }
8 [hidden] { display: none; }
10 <link rel="first" href="css3-modsel-1.xml" title="Groups of selectors"/>
11 <link rel="prev" href="css3-modsel-146a.xml" title=":nth-child() pseudo-class with hidden elements"/>
12 <link rel="next" href="css3-modsel-147a.xml" title=":nth-last-of-type() pseudo-class with collapsed elements"/>
13 <link rel="last" href="css3-modsel-d4.xml" title="Dynamic updating of :first-child and :last-child"/>
14 <link rel="up" href="./index.html"/>
15 <link rel="top" href="../../index.html"/>
18 <test xmlns="http://www.example.org/">
19 <line type="">This line should be unstyled.</line>
20 <line type="match">This line should be green.</line>
21 <line type="">This line should be unstyled.</line>
22 <line type="">This line should be unstyled.</line>
23 <line type="match">This line should be green.</line>
24 <line type="">This line should be unstyled.</line>
25 <line type="" hidden="hidden">This line should be unstyled.</line>
26 <line type="match">This line should be green.</line>
27 <line type="">This line should be unstyled.</line>
28 <line type="">This line should be unstyled.</line>
29 <line type="match">This line should be green.</line>
30 <line type="">This line should be unstyled.</line>
31 <line type="" hidden="hidden">This line should be unstyled.</line>
32 <line type="match" hidden="hidden">This line should be green.</line>
33 <line type="">This line should be unstyled.</line>
34 <line type="">This line should be unstyled.</line>
35 <line type="match">This line should be green.</line>
36 <line type="">This line should be unstyled.</line>
37 <line type="">This line should be unstyled.</line>
38 <line type="match">This line should be green.</line>
39 <line type="">This line should be unstyled.</line>