diff --git a/LayoutTests/platform/gtk/fast/css/empty-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.png similarity index 50% rename from LayoutTests/platform/gtk/fast/css/empty-pseudo-class-expected.png rename to LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.png index 5570b842a15e..9e410974c4f3 100644 Binary files a/LayoutTests/platform/gtk/fast/css/empty-pseudo-class-expected.png and b/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.txt index f42b52896169..76c3feafe7b6 100644 --- a/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/empty-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x1601 +layer at (0,0) size 785x1616 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x1601 - RenderBlock {HTML} at (0,0) size 785x1601 - RenderBody {BODY} at (8,16) size 769x1537 [bgcolor=#FFFFFF] +layer at (0,0) size 785x1616 + RenderBlock {HTML} at (0,0) size 785x1616 + RenderBody {BODY} at (8,16) size 769x1552 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,53 +22,53 @@ layer at (0,0) size 785x1601 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x1503 - RenderListItem {LI} at (40,0) size 616x192 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x1518 + RenderListItem {LI} at (40,0) size 616x195 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 89x61 - text run at (6,6) width 65: ":empty {" - text run at (70,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 89: "
" - RenderBlock {P} at (16,142) size 584x18 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 89x61 + text run at (6,9) width 65: ":empty {" + text run at (70,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 89: "
" + RenderBlock {P} at (16,145) size 584x18 RenderText {#text} at (0,0) size 481x17 text run at (0,0) width 481: "The CSS selector should match the div element, because it is empty" - RenderListItem {LI} at (40,240) size 616x192 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,243) size 616x195 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 273x61 - text run at (6,6) width 65: ":empty {" - text run at (70,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 273: "
" - RenderBlock {P} at (16,142) size 584x18 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 273x61 + text run at (6,9) width 65: ":empty {" + text run at (70,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 273: "
" + RenderBlock {P} at (16,145) size 584x18 RenderText {#text} at (0,0) size 481x17 text run at (0,0) width 481: "The CSS selector should match the div element, because it is empty" - RenderListItem {LI} at (40,480) size 616x192 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,486) size 616x195 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 97x61 - text run at (6,6) width 65: ":empty {" - text run at (70,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 97: "
" - RenderBlock {P} at (16,142) size 584x18 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 97x61 + text run at (6,9) width 65: ":empty {" + text run at (70,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 97: "
" + RenderBlock {P} at (16,145) size 584x18 RenderText {#text} at (0,0) size 533x17 text run at (0,0) width 533: "The CSS selector should not match the div element, because it is not empty" - RenderListItem {LI} at (40,720) size 616x240 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,729) size 616x240 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x42 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x42 RenderListMarker at (-37,12) size 17x17: "4" @@ -89,41 +89,41 @@ layer at (0,0) size 785x1601 RenderBlock {P} at (16,190) size 584x18 RenderText {#text} at (0,0) size 533x17 text run at (0,0) width 533: "The CSS selector should not match the div element, because it is not empty" - RenderListItem {LI} at (40,1008) size 616x192 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1017) size 616x195 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {BLOCKQUOTE} at (12,12) size 560x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 289x61 - text run at (6,6) width 65: ":empty {" - text run at (70,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 289: "
" - RenderBlock {P} at (16,142) size 584x18 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 289x61 + text run at (6,9) width 65: ":empty {" + text run at (70,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 289: "
" + RenderBlock {P} at (16,145) size 584x18 RenderText {#text} at (0,0) size 533x17 text run at (0,0) width 533: "The CSS selector should not match the div element, because it is not empty" - RenderListItem {LI} at (40,1248) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1260) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (12,12) size 560x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "6" - RenderText {#text} at (6,6) size 385x106 - text run at (6,6) width 65: ":empty {" - text run at (70,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 225: "
" - text run at (230,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 385: "var ib = document.getElementById('appendChild');" - text run at (390,81) width 1: " " - text run at (6,96) width 369: "ib.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "6" + RenderText {#text} at (6,9) size 385x106 + text run at (6,9) width 65: ":empty {" + text run at (70,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 225: "
" + text run at (230,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 385: "var ib = document.getElementById('appendChild');" + text run at (390,84) width 1: " " + text run at (6,99) width 369: "ib.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 573x35 text run at (0,0) width 573: "The CSS selector should not match the orignal div element, because it will not be" text run at (0,18) width 47: "empty " diff --git a/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.png new file mode 100644 index 000000000000..971f9c46a477 Binary files /dev/null and b/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.txt index ff93a6321362..5eb566edb729 100644 --- a/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/first-child-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x2252 +layer at (0,0) size 785x2270 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x2252 - RenderBlock {HTML} at (0,0) size 785x2252 - RenderBody {BODY} at (8,16) size 769x2188 [bgcolor=#FFFFFF] +layer at (0,0) size 785x2270 + RenderBlock {HTML} at (0,0) size 785x2270 + RenderBody {BODY} at (8,16) size 769x2206 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,75 +22,75 @@ layer at (0,0) size 785x2252 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x2154 - RenderListItem {LI} at (40,0) size 616x240 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x2172 + RenderListItem {LI} at (40,0) size 616x243 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x103 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 145x91 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 49: "
" - RenderBlock {P} at (16,172) size 584x36 + RenderBlock {PRE} at (16,53) size 584x106 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 145x91 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 49: "
" + RenderBlock {P} at (16,175) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should match the inner div element, because it is the only child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,288) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,291) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 225x106 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 225: "
" - text run at (230,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 225x106 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 225: "
" + text run at (230,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the first child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,591) size 616x273 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,597) size 616x276 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 209x106 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 209: " " - text run at (214,66) width 1: " " - text run at (6,81) width 113: "
" - text run at (118,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x54 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 209x106 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 209: " " + text run at (214,69) width 1: " " + text run at (6,84) width 113: "
" + text run at (118,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x54 RenderText {#text} at (0,0) size 567x53 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the first child" text run at (0,18) width 169: "of the outer div element " text run at (169,18) width 358: "Comments are not elements, so they should not be" text run at (0,36) width 307: "considered when determining the first child." - RenderListItem {LI} at (40,912) size 616x291 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,921) size 616x291 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x42 [bgcolor=#990000] RenderBlock (anonymous) at (0,0) size 584x18 RenderListMarker at (-37,0) size 17x17: "4" @@ -117,77 +117,77 @@ layer at (0,0) size 785x2252 text run at (0,18) width 173: "of the outer div element. " text run at (173,18) width 348: "Regular text is not an element, so it should not be" text run at (0,36) width 307: "considered when determining the first child." - RenderListItem {LI} at (40,1251) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1260) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,0) size 584x0 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 225x106 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 225: "
" - text run at (230,66) width 1: " " - text run at (6,81) width 113: "
" - text run at (118,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 225x106 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 225: "
" + text run at (230,69) width 1: " " + text run at (6,84) width 113: "
" + text run at (118,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 582x35 text run at (0,0) width 582: "The CSS selector should not match the inner div element, because it is the second" text run at (0,18) width 203: "child of the outer div element" - RenderListItem {LI} at (40,1554) size 616x285 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1566) size 616x288 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x148 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "6" - RenderText {#text} at (6,6) size 521x136 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 257: "
" - text run at (262,66) width 1: " " - text run at (6,81) width 49: "
" - text run at (54,81) width 1: " " - text run at (6,96) width 1: " " - text run at (6,111) width 393: "var ib = document.getElementById('insertBefore');" - text run at (398,111) width 1: " " - text run at (6,126) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" - RenderBlock {P} at (16,217) size 584x36 + RenderBlock {PRE} at (16,53) size 584x151 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "6" + RenderText {#text} at (6,9) size 521x136 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 257: "
" + text run at (262,69) width 1: " " + text run at (6,84) width 49: "
" + text run at (54,84) width 1: " " + text run at (6,99) width 1: " " + text run at (6,114) width 393: "var ib = document.getElementById('insertBefore');" + text run at (398,114) width 1: " " + text run at (6,129) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" + RenderBlock {P} at (16,220) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the div element that is inserted by the Javascript" text run at (0,18) width 39: "code." - RenderListItem {LI} at (40,1887) size 616x267 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1902) size 616x270 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x148 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "7" - RenderText {#text} at (6,6) size 521x136 - text run at (6,6) width 145: "div :first-child {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 257: "
" - text run at (262,66) width 1: " " - text run at (6,81) width 49: "
" - text run at (54,81) width 1: " " - text run at (6,96) width 1: " " - text run at (6,111) width 393: "var ib = document.getElementById('insertBefore');" - text run at (398,111) width 1: " " - text run at (6,126) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" - RenderBlock {P} at (16,217) size 584x18 + RenderBlock {PRE} at (16,53) size 584x151 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "7" + RenderText {#text} at (6,9) size 521x136 + text run at (6,9) width 145: "div :first-child {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 257: "
" + text run at (262,69) width 1: " " + text run at (6,84) width 49: "
" + text run at (54,84) width 1: " " + text run at (6,99) width 1: " " + text run at (6,114) width 393: "var ib = document.getElementById('insertBefore');" + text run at (398,114) width 1: " " + text run at (6,129) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" + RenderBlock {P} at (16,220) size 584x18 RenderText {#text} at (0,0) size 515x17 text run at (0,0) width 515: "The original div element should not be a match for the :first-child selector." diff --git a/LayoutTests/platform/gtk/fast/css/first-of-type-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.png similarity index 51% rename from LayoutTests/platform/gtk/fast/css/first-of-type-pseudo-class-expected.png rename to LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.png index 116f0fa63835..2b6439e79258 100644 Binary files a/LayoutTests/platform/gtk/fast/css/first-of-type-pseudo-class-expected.png and b/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.txt index ecc6acab1c66..3500bcaf050c 100644 --- a/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/first-of-type-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x2882 +layer at (0,0) size 785x2912 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x2882 - RenderBlock {HTML} at (0,0) size 785x2882 - RenderBody {BODY} at (8,16) size 769x2818 [bgcolor=#FFFFFF] +layer at (0,0) size 785x2912 + RenderBlock {HTML} at (0,0) size 785x2912 + RenderBody {BODY} at (8,16) size 769x2848 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,208 +22,208 @@ layer at (0,0) size 785x2882 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x2784 - RenderListItem {LI} at (40,0) size 616x210 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x2814 + RenderListItem {LI} at (40,0) size 616x213 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 281x61 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - RenderBlock {P} at (16,142) size 584x36 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 281x61 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + RenderBlock {P} at (16,145) size 584x36 RenderText {#text} at (0,0) size 551x35 text run at (0,0) width 551: "The CSS selector should match the marked div element, because it is the only" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,258) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,261) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 89: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 89: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the first" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,531) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,537) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {BLOCKQUOTE} at (0,0) size 584x0 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 201: "
" - text run at (206,51) width 1: " " - text run at (6,66) width 281: "
Does this element match?
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 201: "
" + text run at (206,54) width 1: " " + text run at (6,69) width 281: "
Does this element match?
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the first" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,804) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,813) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x0 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "4" - RenderText {#text} at (6,6) size 305x106 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 89: "
" - text run at (94,51) width 1: " " - text run at (6,66) width 97: "
" - text run at (102,66) width 1: " " - text run at (6,81) width 305: "
Does this element match?
" - text run at (310,81) width 1: " " - text run at (6,96) width 105: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "4" + RenderText {#text} at (6,9) size 305x106 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 89: "
" + text run at (94,54) width 1: " " + text run at (6,69) width 97: "
" + text run at (102,69) width 1: " " + text run at (6,84) width 305: "
Does this element match?
" + text run at (310,84) width 1: " " + text run at (6,99) width 105: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the first" text run at (0,18) width 230: "element of this type in this scope" - RenderListItem {LI} at (40,1107) size 616x240 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1119) size 616x243 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x103 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 305x91 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 305: "
Does this element match?
" - text run at (310,66) width 1: " " - text run at (6,81) width 49: "
" - RenderBlock {P} at (16,172) size 584x36 + RenderBlock {PRE} at (16,53) size 584x106 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 305x91 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 305: "
Does this element match?
" + text run at (310,69) width 1: " " + text run at (6,84) width 49: "
" + RenderBlock {P} at (16,175) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the first" text run at (0,18) width 280: "element of this type in the current scope" - RenderListItem {LI} at (40,1395) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1410) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {BLOCKQUOTE} at (0,0) size 584x0 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "6" - RenderText {#text} at (6,6) size 281x106 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 97: "
" - text run at (102,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 105: "
" - text run at (110,81) width 1: " " - text run at (6,96) width 281: "
Does this element match?
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "6" + RenderText {#text} at (6,9) size 281x106 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 97: "
" + text run at (102,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 105: "
" + text run at (110,84) width 1: " " + text run at (6,99) width 281: "
Does this element match?
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the first" text run at (0,18) width 280: "element of this type in the current scope" - RenderListItem {LI} at (40,1698) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1716) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "7" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 89: "
" - text run at (94,51) width 1: " " - text run at (6,66) width 281: "
Does this element match?
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "7" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 89: "
" + text run at (94,54) width 1: " " + text run at (6,69) width 281: "
Does this element match?
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 543x35 text run at (0,0) width 543: "The CSS selector should not match the marked div element, because it is the" text run at (0,18) width 193: "second element of this type" - RenderListItem {LI} at (40,1971) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1992) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "8" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 89: "
" - text run at (94,51) width 1: " " - text run at (6,66) width 281: "
Does this element match?
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "8" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 89: "
" + text run at (94,54) width 1: " " + text run at (6,69) width 281: "
Does this element match?
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 543x35 text run at (0,0) width 543: "The CSS selector should not match the marked div element, because it is the" text run at (0,18) width 193: "second element of this type" - RenderListItem {LI} at (40,2244) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,2268) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "9" - RenderText {#text} at (6,6) size 521x106 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 233: "
" - text run at (238,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 393: "var ib = document.getElementById('insertBefore');" - text run at (398,81) width 1: " " - text run at (6,96) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "9" + RenderText {#text} at (6,9) size 521x106 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 233: "
" + text run at (238,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 393: "var ib = document.getElementById('insertBefore');" + text run at (398,84) width 1: " " + text run at (6,99) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the div element that is inserted by the Javascript" text run at (0,18) width 39: "code." - RenderListItem {LI} at (40,2547) size 616x237 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,2574) size 616x240 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-46,3) size 26x18: "10" - RenderText {#text} at (6,6) size 521x106 - text run at (6,6) width 153: "div:first-of-type {" - text run at (158,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 233: "
" - text run at (238,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 393: "var ib = document.getElementById('insertBefore');" - text run at (398,81) width 1: " " - text run at (6,96) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" - RenderBlock {P} at (16,187) size 584x18 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-46,6) size 26x18: "10" + RenderText {#text} at (6,9) size 521x106 + text run at (6,9) width 153: "div:first-of-type {" + text run at (158,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 233: "
" + text run at (238,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 393: "var ib = document.getElementById('insertBefore');" + text run at (398,84) width 1: " " + text run at (6,99) width 521: "ib.parentElement.insertBefore(document.createElement(\"div\"), ib);" + RenderBlock {P} at (16,190) size 584x18 RenderText {#text} at (0,0) size 529x17 text run at (0,0) width 529: "The original div element should not be a match for the :first-of-type selector." diff --git a/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.png new file mode 100644 index 000000000000..3460b26a3ebc Binary files /dev/null and b/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.txt index ff6a184fadb9..3b0a8a9f62d9 100644 --- a/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/last-child-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x2252 +layer at (0,0) size 785x2270 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x2252 - RenderBlock {HTML} at (0,0) size 785x2252 - RenderBody {BODY} at (8,16) size 769x2188 [bgcolor=#FFFFFF] +layer at (0,0) size 785x2270 + RenderBlock {HTML} at (0,0) size 785x2270 + RenderBody {BODY} at (8,16) size 769x2206 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,75 +22,75 @@ layer at (0,0) size 785x2252 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x2154 - RenderListItem {LI} at (40,0) size 616x240 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x2172 + RenderListItem {LI} at (40,0) size 616x243 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x103 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 137x91 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 49: "
" - RenderBlock {P} at (16,172) size 584x36 + RenderBlock {PRE} at (16,53) size 584x106 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 137x91 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 49: "
" + RenderBlock {P} at (16,175) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should match the inner div element, because it is the only child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,288) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,291) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {BLOCKQUOTE} at (0,0) size 584x0 RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 225x106 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 225: "
" - text run at (230,66) width 1: " " - text run at (6,81) width 113: "
" - text run at (118,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 225x106 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 225: "
" + text run at (230,69) width 1: " " + text run at (6,84) width 113: "
" + text run at (118,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the last child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,591) size 616x273 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,597) size 616x276 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 209x106 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 209: " " - text run at (214,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x54 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 209x106 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 209: " " + text run at (214,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x54 RenderText {#text} at (0,0) size 567x53 text run at (0,0) width 567: "The CSS selector should match the inner div element, because it is the last child" text run at (0,18) width 169: "of the outer div element " text run at (169,18) width 358: "Comments are not elements, so they should not be" text run at (0,36) width 307: "considered when determining the last child." - RenderListItem {LI} at (40,912) size 616x291 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,921) size 616x291 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x42 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock (anonymous) at (0,24) size 584x18 @@ -117,77 +117,77 @@ layer at (0,0) size 785x2252 text run at (0,18) width 173: "of the outer div element. " text run at (173,18) width 348: "Regular text is not an element, so it should not be" text run at (0,36) width 307: "considered when determining the last child." - RenderListItem {LI} at (40,1251) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1260) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 225x106 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 225: "
" - text run at (230,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 225x106 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 225: "
" + text run at (230,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 555x35 text run at (0,0) width 555: "The CSS selector should not match the inner div element, because it is the first" text run at (0,18) width 203: "child of the outer div element" - RenderListItem {LI} at (40,1554) size 616x285 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1566) size 616x288 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x0 RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x148 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "6" - RenderText {#text} at (6,6) size 481x136 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 249: "
" - text run at (254,66) width 1: " " - text run at (6,81) width 49: "
" - text run at (54,81) width 1: " " - text run at (6,96) width 1: " " - text run at (6,111) width 385: "var ib = document.getElementById('insertAfter');" - text run at (390,111) width 1: " " - text run at (6,126) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,217) size 584x36 + RenderBlock {PRE} at (16,53) size 584x151 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "6" + RenderText {#text} at (6,9) size 481x136 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 249: "
" + text run at (254,69) width 1: " " + text run at (6,84) width 49: "
" + text run at (54,84) width 1: " " + text run at (6,99) width 1: " " + text run at (6,114) width 385: "var ib = document.getElementById('insertAfter');" + text run at (390,114) width 1: " " + text run at (6,129) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,220) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the div element that is inserted by the Javascript" text run at (0,18) width 39: "code." - RenderListItem {LI} at (40,1887) size 616x267 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1902) size 616x270 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x148 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "7" - RenderText {#text} at (6,6) size 481x136 - text run at (6,6) width 137: "div :last-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 249: "
" - text run at (254,66) width 1: " " - text run at (6,81) width 49: "
" - text run at (54,81) width 1: " " - text run at (6,96) width 1: " " - text run at (6,111) width 385: "var ib = document.getElementById('insertAfter');" - text run at (390,111) width 1: " " - text run at (6,126) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,217) size 584x18 + RenderBlock {PRE} at (16,53) size 584x151 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "7" + RenderText {#text} at (6,9) size 481x136 + text run at (6,9) width 137: "div :last-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 249: "
" + text run at (254,69) width 1: " " + text run at (6,84) width 49: "
" + text run at (54,84) width 1: " " + text run at (6,99) width 1: " " + text run at (6,114) width 385: "var ib = document.getElementById('insertAfter');" + text run at (390,114) width 1: " " + text run at (6,129) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,220) size 584x18 RenderText {#text} at (0,0) size 515x17 text run at (0,0) width 515: "The original div element should not be a match for the :last-child selector." diff --git a/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.png new file mode 100644 index 000000000000..55f964c8c029 Binary files /dev/null and b/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.txt index 6dfc85a9e1cc..01e90a822f53 100644 --- a/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/last-of-type-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x2882 +layer at (0,0) size 785x2912 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x2882 - RenderBlock {HTML} at (0,0) size 785x2882 - RenderBody {BODY} at (8,16) size 769x2818 [bgcolor=#FFFFFF] +layer at (0,0) size 785x2912 + RenderBlock {HTML} at (0,0) size 785x2912 + RenderBody {BODY} at (8,16) size 769x2848 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,208 +22,208 @@ layer at (0,0) size 785x2882 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x2784 - RenderListItem {LI} at (40,0) size 616x210 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x2814 + RenderListItem {LI} at (40,0) size 616x213 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 281x61 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - RenderBlock {P} at (16,142) size 584x36 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 281x61 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + RenderBlock {P} at (16,145) size 584x36 RenderText {#text} at (0,0) size 551x35 text run at (0,0) width 551: "The CSS selector should match the marked div element, because it is the only" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,258) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,261) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x0 RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 89: "
" - text run at (94,51) width 1: " " - text run at (6,66) width 281: "
Does this element match?
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 89: "
" + text run at (94,54) width 1: " " + text run at (6,69) width 281: "
Does this element match?
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the last" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,531) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,537) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 201: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 201: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the last" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,804) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,813) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {BLOCKQUOTE} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "4" - RenderText {#text} at (6,6) size 305x106 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 97: "
" - text run at (102,51) width 1: " " - text run at (6,66) width 305: "
Does this element match?
" - text run at (310,66) width 1: " " - text run at (6,81) width 105: "
" - text run at (110,81) width 1: " " - text run at (6,96) width 89: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "4" + RenderText {#text} at (6,9) size 305x106 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 97: "
" + text run at (102,54) width 1: " " + text run at (6,69) width 305: "
Does this element match?
" + text run at (310,69) width 1: " " + text run at (6,84) width 105: "
" + text run at (110,84) width 1: " " + text run at (6,99) width 89: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the last" text run at (0,18) width 230: "element of this type in this scope" - RenderListItem {LI} at (40,1107) size 616x240 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1119) size 616x243 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 - RenderBlock {PRE} at (16,53) size 584x103 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 305x91 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 305: "
Does this element match?
" - text run at (310,66) width 1: " " - text run at (6,81) width 49: "
" - RenderBlock {P} at (16,172) size 584x36 + RenderBlock {PRE} at (16,53) size 584x106 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 305x91 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 305: "
Does this element match?
" + text run at (310,69) width 1: " " + text run at (6,84) width 49: "
" + RenderBlock {P} at (16,175) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the last" text run at (0,18) width 280: "element of this type in the current scope" - RenderListItem {LI} at (40,1395) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1410) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "6" - RenderText {#text} at (6,6) size 281x106 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 97: "
" - text run at (102,66) width 1: " " - text run at (6,81) width 113: "
" - text run at (118,81) width 1: " " - text run at (6,96) width 105: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "6" + RenderText {#text} at (6,9) size 281x106 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 97: "
" + text run at (102,69) width 1: " " + text run at (6,84) width 113: "
" + text run at (118,84) width 1: " " + text run at (6,99) width 105: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 546x35 text run at (0,0) width 546: "The CSS selector should match the marked div element, because it is the last" text run at (0,18) width 280: "element of this type in the current scope" - RenderListItem {LI} at (40,1698) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1716) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "7" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 89: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "7" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 89: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should not match the marked div element, because it is the first" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,1971) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1992) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "8" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 89: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "8" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 89: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should not match the marked div element, because it is the first" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,2244) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,2268) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x0 RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "9" - RenderText {#text} at (6,6) size 481x106 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 225: "
" - text run at (230,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 385: "var ib = document.getElementById('insertAfter');" - text run at (390,81) width 1: " " - text run at (6,96) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "9" + RenderText {#text} at (6,9) size 481x106 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 225: "
" + text run at (230,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 385: "var ib = document.getElementById('insertAfter');" + text run at (390,84) width 1: " " + text run at (6,99) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 567x35 text run at (0,0) width 567: "The CSS selector should match the div element that is inserted by the Javascript" text run at (0,18) width 39: "code." - RenderListItem {LI} at (40,2547) size 616x237 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,2574) size 616x240 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 [bgcolor=#990000] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-46,3) size 26x18: "10" - RenderText {#text} at (6,6) size 481x106 - text run at (6,6) width 145: "div:last-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 225: "
" - text run at (230,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 385: "var ib = document.getElementById('insertAfter');" - text run at (390,81) width 1: " " - text run at (6,96) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,187) size 584x18 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-46,6) size 26x18: "10" + RenderText {#text} at (6,9) size 481x106 + text run at (6,9) width 145: "div:last-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 225: "
" + text run at (230,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 385: "var ib = document.getElementById('insertAfter');" + text run at (390,84) width 1: " " + text run at (6,99) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,190) size 584x18 RenderText {#text} at (0,0) size 529x17 text run at (0,0) width 529: "The original div element should not be a match for the :last-of-type selector." diff --git a/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.png new file mode 100644 index 000000000000..76c10c061ac3 Binary files /dev/null and b/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.txt index 9c8c7f532aa9..fcefdaa0b84d 100644 --- a/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/only-child-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x1601 +layer at (0,0) size 785x1613 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x1601 - RenderBlock {HTML} at (0,0) size 785x1601 - RenderBody {BODY} at (8,16) size 769x1537 [bgcolor=#FFFFFF] +layer at (0,0) size 785x1613 + RenderBlock {HTML} at (0,0) size 785x1613 + RenderBody {BODY} at (8,16) size 769x1549 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,50 +22,50 @@ layer at (0,0) size 785x1601 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x1503 - RenderListItem {LI} at (40,0) size 616x240 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x1515 + RenderListItem {LI} at (40,0) size 616x243 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x103 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 137x91 - text run at (6,6) width 137: "div :only-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 49: "
" - RenderBlock {P} at (16,172) size 584x36 + RenderBlock {PRE} at (16,53) size 584x106 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 137x91 + text run at (6,9) width 137: "div :only-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 49: "
" + RenderBlock {P} at (16,175) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should match the inner div element, because it is the only child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,288) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,291) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 209x106 - text run at (6,6) width 137: "div :only-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 209: " " - text run at (214,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 209x106 + text run at (6,9) width 137: "div :only-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 209: " " + text run at (214,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should match the inner div element, because it is the only child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,591) size 616x273 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,597) size 616x273 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x42 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock (anonymous) at (0,24) size 584x18 @@ -90,52 +90,52 @@ layer at (0,0) size 785x1601 RenderText {#text} at (0,0) size 572x35 text run at (0,0) width 572: "The CSS selector should match the inner div element, because it is the only child" text run at (0,18) width 165: "of the outer div element" - RenderListItem {LI} at (40,912) size 616x258 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,918) size 616x261 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {BLOCKQUOTE} at (40,40) size 504x0 - RenderBlock {PRE} at (16,56) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "4" - RenderText {#text} at (6,6) size 225x106 - text run at (6,6) width 137: "div :only-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 49: "
" - text run at (54,51) width 1: " " - text run at (6,66) width 113: "
" - text run at (118,66) width 1: " " - text run at (6,81) width 225: "
" - text run at (230,81) width 1: " " - text run at (6,96) width 49: "
" - RenderBlock {P} at (16,190) size 584x36 + RenderBlock {PRE} at (16,56) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "4" + RenderText {#text} at (6,9) size 225x106 + text run at (6,9) width 137: "div :only-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 49: "
" + text run at (54,54) width 1: " " + text run at (6,69) width 113: "
" + text run at (118,69) width 1: " " + text run at (6,84) width 225: "
" + text run at (230,84) width 1: " " + text run at (6,99) width 49: "
" + RenderBlock {P} at (16,193) size 584x36 RenderText {#text} at (0,0) size 570x35 text run at (0,0) width 570: "The CSS selector should not match the inner div element, because it not the only" text run at (0,18) width 34: "child" - RenderListItem {LI} at (40,1218) size 616x285 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1227) size 616x288 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x148 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 481x136 - text run at (6,6) width 137: "div :only-child {" - text run at (142,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 41: "
" - text run at (46,51) width 1: " " - text run at (6,66) width 249: "
" - text run at (254,66) width 1: " " - text run at (6,81) width 49: "
" - text run at (54,81) width 1: " " - text run at (6,96) width 1: " " - text run at (6,111) width 385: "var ib = document.getElementById('appendChild');" - text run at (390,111) width 1: " " - text run at (6,126) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,217) size 584x36 + RenderBlock {PRE} at (16,53) size 584x151 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 481x136 + text run at (6,9) width 137: "div :only-child {" + text run at (142,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 41: "
" + text run at (46,54) width 1: " " + text run at (6,69) width 249: "
" + text run at (254,69) width 1: " " + text run at (6,84) width 49: "
" + text run at (54,84) width 1: " " + text run at (6,99) width 1: " " + text run at (6,114) width 385: "var ib = document.getElementById('appendChild');" + text run at (390,114) width 1: " " + text run at (6,129) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,220) size 584x36 RenderText {#text} at (0,0) size 569x35 text run at (0,0) width 521: "The CSS selector should not match the original div element, because it is " text run at (521,0) width 48: "not the" diff --git a/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.png b/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.png new file mode 100644 index 000000000000..e2c36b3ea96c Binary files /dev/null and b/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.png differ diff --git a/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.txt b/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.txt index 72933e7936a5..5c6fd534ded0 100644 --- a/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.txt +++ b/LayoutTests/platform/glib/fast/css/only-of-type-pseudo-class-expected.txt @@ -1,8 +1,8 @@ -layer at (0,0) size 785x1478 +layer at (0,0) size 785x1493 RenderView at (0,0) size 785x600 -layer at (0,0) size 785x1478 - RenderBlock {HTML} at (0,0) size 785x1478 - RenderBody {BODY} at (8,16) size 769x1414 [bgcolor=#FFFFFF] +layer at (0,0) size 785x1493 + RenderBlock {HTML} at (0,0) size 785x1493 + RenderBody {BODY} at (8,16) size 769x1429 [bgcolor=#FFFFFF] RenderBlock {P} at (0,0) size 769x18 RenderText {#text} at (0,0) size 165x17 text run at (0,0) width 165: "This page is part of the " @@ -22,104 +22,104 @@ layer at (0,0) size 785x1478 RenderText {#text} at (617,0) size 4x17 text run at (617,0) width 4: "." RenderBlock {DIV} at (0,34) size 769x0 [bgcolor=#009900] - RenderBlock {OL} at (0,34) size 769x1380 - RenderListItem {LI} at (40,0) size 616x210 [bgcolor=#AAAAAA] + RenderBlock {OL} at (0,34) size 769x1395 + RenderListItem {LI} at (40,0) size 616x213 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x73 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "1" - RenderText {#text} at (6,6) size 281x61 - text run at (6,6) width 145: "div:only-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - RenderBlock {P} at (16,142) size 584x36 + RenderBlock {PRE} at (16,53) size 584x76 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "1" + RenderText {#text} at (6,9) size 281x61 + text run at (6,9) width 145: "div:only-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + RenderBlock {P} at (16,145) size 584x36 RenderText {#text} at (0,0) size 551x35 text run at (0,0) width 551: "The CSS selector should match the marked div element, because it is the only" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,258) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,261) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 [bgcolor=#009900] - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "2" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:only-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 201: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "2" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:only-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 201: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 551x35 text run at (0,0) width 551: "The CSS selector should match the marked div element, because it is the only" text run at (0,18) width 137: "element of this type" - RenderListItem {LI} at (40,531) size 616x255 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,537) size 616x258 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#990000] RenderBlock {DIV} at (0,0) size 584x24 [bgcolor=#009900] RenderBlock {BLOCKQUOTE} at (0,24) size 584x0 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x0 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "3" - RenderText {#text} at (6,6) size 281x106 - text run at (6,6) width 145: "div:only-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 97: "
" - text run at (102,66) width 1: " " - text run at (6,81) width 113: "
" - text run at (118,81) width 1: " " - text run at (6,96) width 105: "
" - RenderBlock {P} at (16,187) size 584x36 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "3" + RenderText {#text} at (6,9) size 281x106 + text run at (6,9) width 145: "div:only-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 97: "
" + text run at (102,69) width 1: " " + text run at (6,84) width 113: "
" + text run at (118,84) width 1: " " + text run at (6,99) width 105: "
" + RenderBlock {P} at (16,190) size 584x36 RenderText {#text} at (0,0) size 551x35 text run at (0,0) width 551: "The CSS selector should match the marked div element, because it is the only" text run at (0,18) width 230: "element of this type in this scope" - RenderListItem {LI} at (40,834) size 616x225 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,843) size 616x228 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x88 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "4" - RenderText {#text} at (6,6) size 281x76 - text run at (6,6) width 145: "div:only-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 281: "
Does this element match?
" - text run at (286,51) width 1: " " - text run at (6,66) width 89: "
" - RenderBlock {P} at (16,157) size 584x36 + RenderBlock {PRE} at (16,53) size 584x91 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "4" + RenderText {#text} at (6,9) size 281x76 + text run at (6,9) width 145: "div:only-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 281: "
Does this element match?
" + text run at (286,54) width 1: " " + text run at (6,69) width 89: "
" + RenderBlock {P} at (16,160) size 584x36 RenderText {#text} at (0,0) size 569x35 text run at (0,0) width 569: "The CSS selector should not match the marked div element, because it is not the" text run at (0,18) width 171: "only element of this type" - RenderListItem {LI} at (40,1107) size 616x273 [bgcolor=#AAAAAA] + RenderListItem {LI} at (40,1119) size 616x276 [bgcolor=#AAAAAA] RenderBlock {DIV} at (16,16) size 584x24 [bgcolor=#009900] RenderBlock {DIV} at (0,0) size 584x24 RenderBlock {DIV} at (0,24) size 584x0 - RenderBlock {PRE} at (16,53) size 584x118 [bgcolor=#FFFFFF] - RenderListMarker at (-37,3) size 17x18: "5" - RenderText {#text} at (6,6) size 481x106 - text run at (6,6) width 145: "div:only-of-type {" - text run at (150,6) width 1: " " - text run at (6,21) width 9: "}" - text run at (14,21) width 1: " " - text run at (6,36) width 1: " " - text run at (6,51) width 225: "
" - text run at (230,51) width 1: " " - text run at (6,66) width 1: " " - text run at (6,81) width 385: "var ib = document.getElementById('appendChild');" - text run at (390,81) width 1: " " - text run at (6,96) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" - RenderBlock {P} at (16,187) size 584x54 + RenderBlock {PRE} at (16,53) size 584x121 [bgcolor=#FFFFFF] + RenderListMarker at (-37,6) size 17x18: "5" + RenderText {#text} at (6,9) size 481x106 + text run at (6,9) width 145: "div:only-of-type {" + text run at (150,9) width 1: " " + text run at (6,24) width 9: "}" + text run at (14,24) width 1: " " + text run at (6,39) width 1: " " + text run at (6,54) width 225: "
" + text run at (230,54) width 1: " " + text run at (6,69) width 1: " " + text run at (6,84) width 385: "var ib = document.getElementById('appendChild');" + text run at (390,84) width 1: " " + text run at (6,99) width 481: "ib.parentElement.appendChild(document.createElement(\"div\"));" + RenderBlock {P} at (16,190) size 584x54 RenderText {#text} at (0,0) size 569x53 text run at (0,0) width 521: "The CSS selector should not match the original div element, because it is " text run at (521,0) width 48: "not the" diff --git a/LayoutTests/platform/gtk/fast/css/first-child-pseudo-class-expected.png b/LayoutTests/platform/gtk/fast/css/first-child-pseudo-class-expected.png deleted file mode 100644 index 6221bc389a20..000000000000 Binary files a/LayoutTests/platform/gtk/fast/css/first-child-pseudo-class-expected.png and /dev/null differ diff --git a/LayoutTests/platform/gtk/fast/css/last-child-pseudo-class-expected.png b/LayoutTests/platform/gtk/fast/css/last-child-pseudo-class-expected.png deleted file mode 100644 index b95bf0f4ddd2..000000000000 Binary files a/LayoutTests/platform/gtk/fast/css/last-child-pseudo-class-expected.png and /dev/null differ diff --git a/LayoutTests/platform/gtk/fast/css/last-of-type-pseudo-class-expected.png b/LayoutTests/platform/gtk/fast/css/last-of-type-pseudo-class-expected.png deleted file mode 100644 index ad5eb28e086b..000000000000 Binary files a/LayoutTests/platform/gtk/fast/css/last-of-type-pseudo-class-expected.png and /dev/null differ diff --git a/LayoutTests/platform/gtk/fast/css/only-child-pseudo-class-expected.png b/LayoutTests/platform/gtk/fast/css/only-child-pseudo-class-expected.png deleted file mode 100644 index b2c1070a03a4..000000000000 Binary files a/LayoutTests/platform/gtk/fast/css/only-child-pseudo-class-expected.png and /dev/null differ diff --git a/LayoutTests/platform/gtk/fast/css/only-of-type-pseudo-class-expected.png b/LayoutTests/platform/gtk/fast/css/only-of-type-pseudo-class-expected.png deleted file mode 100644 index 97e1d71f3ba1..000000000000 Binary files a/LayoutTests/platform/gtk/fast/css/only-of-type-pseudo-class-expected.png and /dev/null differ