1 layer at (0,0) size 800x600 clip at (0,0) size 785x600 scrollHeight 2339
2 LayoutView at (0,0) size 800x600
3 layer at (0,0) size 785x2339 backgroundClip at (0,0) size 785x600 clip at (0,0) size 785x600
4 LayoutBlockFlow {HTML} at (0,0) size 785x2339
5 LayoutBlockFlow {BODY} at (8,16) size 769x2275 [bgcolor=#FFFFFF]
6 LayoutBlockFlow {P} at (0,0) size 769x19
7 LayoutText {#text} at (0,0) size 162x18
8 text run at (0,0) width 162: "This page is part of the "
9 LayoutInline {A} at (0,0) size 72x18 [color=#0000EE]
10 LayoutText {#text} at (162,0) size 72x18
11 text run at (162,0) width 72: "CSS3.info"
12 LayoutText {#text} at (234,0) size 4x18
13 text run at (234,0) width 4: " "
14 LayoutInline {A} at (0,0) size 130x18 [color=#0000EE]
15 LayoutText {#text} at (238,0) size 130x18
16 text run at (238,0) width 130: "CSS selectors test"
17 LayoutText {#text} at (368,0) size 131x18
18 text run at (368,0) width 131: ". See more info on "
19 LayoutInline {A} at (0,0) size 110x18 [color=#0000EE]
20 LayoutText {#text} at (499,0) size 110x18
21 text run at (499,0) width 110: "CSS3 selectors"
22 LayoutText {#text} at (609,0) size 4x18
23 text run at (609,0) width 4: "."
24 LayoutBlockFlow {DIV} at (0,35) size 769x0 [bgcolor=#009900]
25 LayoutBlockFlow {OL} at (0,35) size 769x2240
26 LayoutListItem {LI} at (40,0) size 615.19x251 [bgcolor=#AAAAAA]
27 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#990000]
28 LayoutBlockFlow {DIV} at (0,0) size 583.19x24 [bgcolor=#009900]
29 LayoutBlockFlow {PRE} at (16,53) size 583.19x112 [bgcolor=#FFFFFF]
30 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "1"
31 LayoutText {#text} at (6,9) size 145x97
32 text run at (6,9) width 145: "div :first-child {"
33 text run at (150,9) width 1: " "
34 text run at (6,26) width 9: "}"
35 text run at (14,26) width 1: " "
36 text run at (6,42) width 1: " "
37 text run at (6,58) width 41: "<div>"
38 text run at (46,58) width 1: " "
39 text run at (6,74) width 113: " <div></div>"
40 text run at (118,74) width 1: " "
41 text run at (6,90) width 49: "</div>"
42 LayoutBlockFlow {P} at (16,181) size 583.19x38
43 LayoutText {#text} at (0,0) size 569x37
44 text run at (0,0) width 569: "The CSS selector should match the inner div element, because it is the only child of"
45 text run at (0,19) width 143: "the outer div element"
46 LayoutListItem {LI} at (40,299) size 615.19x267 [bgcolor=#AAAAAA]
47 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#990000]
48 LayoutBlockFlow {DIV} at (0,0) size 583.19x24 [bgcolor=#009900]
49 LayoutBlockFlow {BLOCKQUOTE} at (0,24) size 583.19x0
50 LayoutBlockFlow {PRE} at (16,53) size 583.19x128 [bgcolor=#FFFFFF]
51 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "2"
52 LayoutText {#text} at (6,9) size 225x113
53 text run at (6,9) width 145: "div :first-child {"
54 text run at (150,9) width 1: " "
55 text run at (6,26) width 9: "}"
56 text run at (14,26) width 1: " "
57 text run at (6,42) width 1: " "
58 text run at (6,58) width 49: "<div> "
59 text run at (54,58) width 1: " "
60 text run at (6,74) width 113: " <div></div>"
61 text run at (118,74) width 1: " "
62 text run at (6,90) width 225: " <blockquote></blockquote>"
63 text run at (230,90) width 1: " "
64 text run at (6,106) width 49: "</div>"
65 LayoutBlockFlow {P} at (16,197) size 583.19x38
66 LayoutText {#text} at (0,0) size 567x37
67 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the first child of"
68 text run at (0,19) width 143: "the outer div element"
69 LayoutListItem {LI} at (40,614) size 615.19x286 [bgcolor=#AAAAAA]
70 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#990000]
71 LayoutBlockFlow {DIV} at (0,0) size 583.19x24 [bgcolor=#009900]
72 LayoutBlockFlow {PRE} at (16,53) size 583.19x128 [bgcolor=#FFFFFF]
73 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "3"
74 LayoutText {#text} at (6,9) size 209x113
75 text run at (6,9) width 145: "div :first-child {"
76 text run at (150,9) width 1: " "
77 text run at (6,26) width 9: "}"
78 text run at (14,26) width 1: " "
79 text run at (6,42) width 1: " "
80 text run at (6,58) width 49: "<div> "
81 text run at (54,58) width 1: " "
82 text run at (6,74) width 209: " <!-- Just a comment -->"
83 text run at (214,74) width 1: " "
84 text run at (6,90) width 113: " <div></div>"
85 text run at (118,90) width 1: " "
86 text run at (6,106) width 49: "</div>"
87 LayoutBlockFlow {P} at (16,197) size 583.19x57
88 LayoutText {#text} at (0,0) size 577x56
89 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the first child of"
90 text run at (0,19) width 147: "the outer div element "
91 text run at (147,19) width 430: "Comments are not elements, so they should not be considered"
92 text run at (0,38) width 216: "when determining the first child."
93 LayoutListItem {LI} at (40,948) size 615.19x302 [bgcolor=#AAAAAA]
94 LayoutBlockFlow {DIV} at (16,16) size 583.19x43 [bgcolor=#990000]
95 LayoutBlockFlow (anonymous) at (0,0) size 583.19x19
96 LayoutListMarker (anonymous) at (-38,0) size 17x18: "4"
97 LayoutText {#text} at (0,0) size 4x18
98 text run at (0,0) width 4: "."
99 LayoutBlockFlow {DIV} at (0,19) size 583.19x24 [bgcolor=#009900]
100 LayoutBlockFlow {PRE} at (16,72) size 583.19x125 [bgcolor=#FFFFFF]
101 LayoutText {#text} at (6,7) size 225x112
102 text run at (6,7) width 145: "div :first-child {"
103 text run at (150,7) width 1: " "
104 text run at (6,23) width 9: "}"
105 text run at (14,23) width 1: " "
106 text run at (6,39) width 1: " "
107 text run at (6,55) width 49: "<div> "
108 text run at (54,55) width 1: " "
109 text run at (6,71) width 225: " How about regular text..."
110 text run at (230,71) width 1: " "
111 text run at (6,87) width 113: " <div></div>"
112 text run at (118,87) width 1: " "
113 text run at (6,103) width 49: "</div>"
114 LayoutBlockFlow {P} at (16,213) size 583.19x57
115 LayoutText {#text} at (0,0) size 569x56
116 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the first child of"
117 text run at (0,19) width 151: "the outer div element. "
118 text run at (151,19) width 418: "Regular text is not an element, so it should not be considered"
119 text run at (0,38) width 216: "when determining the first child."
120 LayoutListItem {LI} at (40,1298) size 615.19x267 [bgcolor=#AAAAAA]
121 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#009900]
122 LayoutBlockFlow {BLOCKQUOTE} at (0,0) size 583.19x0 [bgcolor=#990000]
123 LayoutBlockFlow {DIV} at (0,0) size 583.19x24
124 LayoutBlockFlow {PRE} at (16,53) size 583.19x128 [bgcolor=#FFFFFF]
125 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "5"
126 LayoutText {#text} at (6,9) size 225x113
127 text run at (6,9) width 145: "div :first-child {"
128 text run at (150,9) width 1: " "
129 text run at (6,26) width 9: "}"
130 text run at (14,26) width 1: " "
131 text run at (6,42) width 1: " "
132 text run at (6,58) width 49: "<div> "
133 text run at (54,58) width 1: " "
134 text run at (6,74) width 225: " <blockquote></blockquote>"
135 text run at (230,74) width 1: " "
136 text run at (6,90) width 113: " <div></div>"
137 text run at (118,90) width 1: " "
138 text run at (6,106) width 49: "</div>"
139 LayoutBlockFlow {P} at (16,197) size 583.19x38
140 LayoutText {#text} at (0,0) size 565x37
141 text run at (0,0) width 565: "The CSS selector should not match the inner div element, because it is the second"
142 text run at (0,19) width 196: "child of the outer div element"
143 LayoutListItem {LI} at (40,1613) size 615.19x299 [bgcolor=#AAAAAA]
144 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#990000]
145 LayoutBlockFlow {DIV} at (0,0) size 583.19x24 [bgcolor=#009900]
146 LayoutBlockFlow {DIV} at (0,24) size 583.19x0
147 LayoutBlockFlow {PRE} at (16,53) size 583.19x160 [bgcolor=#FFFFFF]
148 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "6"
149 LayoutText {#text} at (6,9) size 521x145
150 text run at (6,9) width 145: "div :first-child {"
151 text run at (150,9) width 1: " "
152 text run at (6,26) width 9: "}"
153 text run at (14,26) width 1: " "
154 text run at (6,42) width 1: " "
155 text run at (6,58) width 41: "<div>"
156 text run at (46,58) width 1: " "
157 text run at (6,74) width 257: " <div id='insertBefore'></div>"
158 text run at (262,74) width 1: " "
159 text run at (6,90) width 49: "</div>"
160 text run at (54,90) width 1: " "
161 text run at (6,106) width 1: " "
162 text run at (6,122) width 393: "var ib = document.getElementById('insertBefore');"
163 text run at (398,122) width 1: " "
164 text run at (6,138) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);"
165 LayoutBlockFlow {P} at (16,229) size 583.19x38
166 LayoutText {#text} at (0,0) size 551x37
167 text run at (0,0) width 551: "The CSS selector should match the div element that is inserted by the Javascript"
168 text run at (0,19) width 39: "code."
169 LayoutListItem {LI} at (40,1960) size 615.19x280 [bgcolor=#AAAAAA]
170 LayoutBlockFlow {DIV} at (16,16) size 583.19x24 [bgcolor=#009900]
171 LayoutBlockFlow {DIV} at (0,0) size 583.19x0 [bgcolor=#990000]
172 LayoutBlockFlow {DIV} at (0,0) size 583.19x24
173 LayoutBlockFlow {PRE} at (16,53) size 583.19x160 [bgcolor=#FFFFFF]
174 LayoutListMarker (anonymous) at (-38,6.50) size 17x18: "7"
175 LayoutText {#text} at (6,9) size 521x145
176 text run at (6,9) width 145: "div :first-child {"
177 text run at (150,9) width 1: " "
178 text run at (6,26) width 9: "}"
179 text run at (14,26) width 1: " "
180 text run at (6,42) width 1: " "
181 text run at (6,58) width 41: "<div>"
182 text run at (46,58) width 1: " "
183 text run at (6,74) width 257: " <div id='insertBefore'></div>"
184 text run at (262,74) width 1: " "
185 text run at (6,90) width 49: "</div>"
186 text run at (54,90) width 1: " "
187 text run at (6,106) width 1: " "
188 text run at (6,122) width 393: "var ib = document.getElementById('insertBefore');"
189 text run at (398,122) width 1: " "
190 text run at (6,138) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);"
191 LayoutBlockFlow {P} at (16,229) size 583.19x19
192 LayoutText {#text} at (0,0) size 499x18
193 text run at (0,0) width 499: "The original div element should not be a match for the :first-child selector."