Commit ea986fb6 authored by schenney's avatar schenney Committed by Commit bot

Convert css1/basic/class_as_selector to a ref test.

To avoid scrollbars ruining the ref test, I removed a non-test-relevent line.

Patch based on https://bugs.webkit.org/show_bug.cgi?id=113970 by Benjamin Poulain.

R=timloh
BUG=cr227282

Review URL: https://codereview.chromium.org/1482493003

Cr-Commit-Position: refs/heads/master@{#367095}
parent e4134331
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<body background="../resources/basebg.gif">
<p>The style declarations which apply to the text below are:</p>
<pre>.one {color: green;}
.1 {color: red;}
.a1 {color: green;}
P.two {color: purple;}
</pre>
<hr><p style="color:green">This sentence should be green.</p>
<p>This sentence should be black, not red-- class selectors cannot begin with digits in CSS1.</p>
<p style="color:green">This sentence should be green.</p>
<p style="color:purple">This sentence should be purple.</p>
<pre>This sentence should NOT be purple.</pre>
<ul>
<li>This sentence should NOT be purple.</li>
</ul>
<table border cellspacing="0" cellpadding="3">
<tr>
<td bgcolor="silver">&nbsp;</td>
<td>
<p style="color:green">This sentence should be green.</p>
<p>This sentence should be black, not red-- class selectors cannot begin with digits in CSS1.</p>
<p style="color:green">This sentence should be green.</p>
<p style="color:purple">This sentence should be purple.</p>
<pre>This sentence should NOT be purple.</pre>
<ul>
<li>This sentence should NOT be purple.</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
...@@ -43,9 +43,6 @@ This sentence should be purple. ...@@ -43,9 +43,6 @@ This sentence should be purple.
<TABLE border cellspacing="0" cellpadding="3" class="tabletest"> <TABLE border cellspacing="0" cellpadding="3" class="tabletest">
<TR> <TR>
<TD colspan="2" bgcolor="silver"><STRONG>TABLE Testing Section</STRONG></TD>
</TR>
<TR>
<TD bgcolor="silver">&nbsp;</TD> <TD bgcolor="silver">&nbsp;</TD>
<TD><P class="one"> <TD><P class="one">
This sentence should be green. This sentence should be green.
......
layer at (0,0) size 800x600 scrollHeight 609
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x609 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x609
LayoutBlockFlow {BODY} at (8,8) size 784x593 [bgcolor=#CCCCCC]
LayoutBlockFlow {P} at (0,0) size 784x20
LayoutText {#text} at (0,0) size 337x19
text run at (0,0) width 337: "The style declarations which apply to the text below are:"
LayoutBlockFlow {PRE} at (0,36) size 784x64
LayoutText {#text} at (0,0) size 176x64
text run at (0,0) width 160: ".one {color: green;}"
text run at (160,0) width 0: " "
text run at (0,16) width 128: ".1 {color: red;}"
text run at (128,16) width 0: " "
text run at (0,32) width 152: ".a1 {color: green;}"
text run at (152,32) width 0: " "
text run at (0,48) width 176: "P.two {color: purple;}"
text run at (176,48) width 0: " "
LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow {P} at (0,131) size 784x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (0,167) size 784x20
LayoutText {#text} at (0,0) size 536x19
text run at (0,0) width 536: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (0,203) size 784x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (0,239) size 784x20 [color=#800080]
LayoutText {#text} at (0,0) size 189x19
text run at (0,0) width 189: "This sentence should be purple."
LayoutBlockFlow {PRE} at (0,275) size 784x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (0,307) size 784x20
LayoutListItem {LI} at (40,0) size 744x20
LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
LayoutText {#text} at (0,0) size 226x19
text run at (0,0) width 226: "This sentence should NOT be purple."
LayoutTable {TABLE} at (0,343) size 558x250 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 556x248
LayoutTableRow {TR} at (0,0) size 556x28
LayoutTableCell {TD} at (0,0) size 556x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
LayoutInline {STRONG} at (0,0) size 157x19
LayoutText {#text} at (4,4) size 157x19
text run at (4,4) width 157: "TABLE Testing Section"
LayoutTableRow {TR} at (0,28) size 556x220
LayoutTableCell {TD} at (0,124) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
LayoutText {#text} at (4,4) size 4x19
text run at (4,4) width 4: " "
LayoutTableCell {TD} at (12,28) size 544x220 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
LayoutBlockFlow {P} at (4,4) size 536x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (4,40) size 536x20
LayoutText {#text} at (0,0) size 536x19
text run at (0,0) width 536: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (4,76) size 536x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (4,112) size 536x20 [color=#800080]
LayoutText {#text} at (0,0) size 189x19
text run at (0,0) width 189: "This sentence should be purple."
LayoutBlockFlow {PRE} at (4,148) size 536x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (4,180) size 536x20
LayoutListItem {LI} at (40,0) size 496x20
LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
LayoutText {#text} at (0,0) size 226x19
text run at (0,0) width 226: "This sentence should NOT be purple."
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
LayoutBlockFlow {P} at (0,0) size 784x18
LayoutText {#text} at (0,0) size 363x18
text run at (0,0) width 363: "The style declarations which apply to the text below are:"
LayoutBlockFlow {PRE} at (0,34) size 784x60
LayoutText {#text} at (0,0) size 172x60
text run at (0,0) width 157: ".one {color: green;}"
text run at (156,0) width 1: " "
text run at (0,15) width 125: ".1 {color: red;}"
text run at (124,15) width 1: " "
text run at (0,30) width 149: ".a1 {color: green;}"
text run at (148,30) width 1: " "
text run at (0,45) width 172: "P.two {color: purple;}"
text run at (171,45) width 1: " "
LayoutBlockFlow {HR} at (0,107) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow {P} at (0,125) size 784x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x18
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (0,159) size 784x18
LayoutText {#text} at (0,0) size 570x18
text run at (0,0) width 570: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (0,193) size 784x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x18
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (0,227) size 784x18 [color=#800080]
LayoutText {#text} at (0,0) size 203x18
text run at (0,0) width 203: "This sentence should be purple."
LayoutBlockFlow {PRE} at (0,261) size 784x15
LayoutText {#text} at (0,0) size 274x15
text run at (0,0) width 274: "This sentence should NOT be purple."
text run at (273,0) width 1: " "
LayoutBlockFlow {UL} at (0,292) size 784x18
LayoutListItem {LI} at (40,0) size 744x18
LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
LayoutText {#text} at (0,0) size 240x18
text run at (0,0) width 240: "This sentence should NOT be purple."
LayoutTable {TABLE} at (0,326) size 592x237 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 590x235
LayoutTableRow {TR} at (0,0) size 590x26
LayoutTableCell {TD} at (0,0) size 590x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
LayoutInline {STRONG} at (0,0) size 161x18
LayoutText {#text} at (4,4) size 161x18
text run at (4,4) width 161: "TABLE Testing Section"
LayoutTableRow {TR} at (0,26) size 590x209
LayoutTableCell {TD} at (0,117) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
LayoutText {#text} at (4,4) size 4x18
text run at (4,4) width 4: " "
LayoutTableCell {TD} at (12,26) size 578x209 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
LayoutBlockFlow {P} at (4,4) size 570x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x18
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (4,38) size 570x18
LayoutText {#text} at (0,0) size 570x18
text run at (0,0) width 570: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (4,72) size 570x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x18
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (4,106) size 570x18 [color=#800080]
LayoutText {#text} at (0,0) size 203x18
text run at (0,0) width 203: "This sentence should be purple."
LayoutBlockFlow {PRE} at (4,140) size 570x15
LayoutText {#text} at (0,0) size 274x15
text run at (0,0) width 274: "This sentence should NOT be purple."
text run at (273,0) width 1: " "
LayoutBlockFlow {UL} at (4,171) size 570x18
LayoutListItem {LI} at (40,0) size 530x18
LayoutListMarker (anonymous) at (-17,0) size 7x18: bullet
LayoutText {#text} at (0,0) size 240x18
text run at (0,0) width 240: "This sentence should NOT be purple."
layer at (0,0) size 800x600 scrollHeight 609
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x609 backgroundClip at (0,0) size 800x600 clip at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x609
LayoutBlockFlow {BODY} at (8,8) size 784x593 [bgcolor=#CCCCCC]
LayoutBlockFlow {P} at (0,0) size 784x20
LayoutText {#text} at (0,0) size 337x19
text run at (0,0) width 337: "The style declarations which apply to the text below are:"
LayoutBlockFlow {PRE} at (0,36) size 784x64
LayoutText {#text} at (0,0) size 176x64
text run at (0,0) width 160: ".one {color: green;}"
text run at (160,0) width 0: " "
text run at (0,16) width 128: ".1 {color: red;}"
text run at (128,16) width 0: " "
text run at (0,32) width 152: ".a1 {color: green;}"
text run at (152,32) width 0: " "
text run at (0,48) width 176: "P.two {color: purple;}"
text run at (176,48) width 0: " "
LayoutBlockFlow {HR} at (0,113) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow {P} at (0,131) size 784x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (0,167) size 784x20
LayoutText {#text} at (0,0) size 536x19
text run at (0,0) width 536: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (0,203) size 784x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (0,239) size 784x20 [color=#800080]
LayoutText {#text} at (0,0) size 189x19
text run at (0,0) width 189: "This sentence should be purple."
LayoutBlockFlow {PRE} at (0,275) size 784x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (0,307) size 784x20
LayoutListItem {LI} at (40,0) size 744x20
LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
LayoutText {#text} at (0,0) size 226x19
text run at (0,0) width 226: "This sentence should NOT be purple."
LayoutTable {TABLE} at (0,343) size 558x250 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 556x248
LayoutTableRow {TR} at (0,0) size 556x28
LayoutTableCell {TD} at (0,0) size 556x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
LayoutInline {STRONG} at (0,0) size 159x19
LayoutText {#text} at (4,4) size 159x19
text run at (4,4) width 159: "TABLE Testing Section"
LayoutTableRow {TR} at (0,28) size 556x220
LayoutTableCell {TD} at (0,124) size 12x28 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
LayoutText {#text} at (4,4) size 4x19
text run at (4,4) width 4: " "
LayoutTableCell {TD} at (12,28) size 544x220 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
LayoutBlockFlow {P} at (4,4) size 536x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (4,40) size 536x20
LayoutText {#text} at (0,0) size 536x19
text run at (0,0) width 536: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (4,76) size 536x20 [color=#008000]
LayoutText {#text} at (0,0) size 184x19
text run at (0,0) width 184: "This sentence should be green."
LayoutBlockFlow {P} at (4,112) size 536x20 [color=#800080]
LayoutText {#text} at (0,0) size 189x19
text run at (0,0) width 189: "This sentence should be purple."
LayoutBlockFlow {PRE} at (4,148) size 536x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (4,180) size 536x20
LayoutListItem {LI} at (40,0) size 496x20
LayoutListMarker (anonymous) at (-18,0) size 7x19: bullet
LayoutText {#text} at (0,0) size 226x19
text run at (0,0) width 226: "This sentence should NOT be purple."
layer at (0,0) size 800x600
LayoutView at (0,0) size 800x600
layer at (0,0) size 800x600
LayoutBlockFlow {HTML} at (0,0) size 800x600
LayoutBlockFlow {BODY} at (8,8) size 784x584 [bgcolor=#CCCCCC]
LayoutBlockFlow {P} at (0,0) size 784x18
LayoutText {#text} at (0,0) size 363x17
text run at (0,0) width 363: "The style declarations which apply to the text below are:"
LayoutBlockFlow {PRE} at (0,34) size 784x64
LayoutText {#text} at (0,0) size 176x64
text run at (0,0) width 160: ".one {color: green;}"
text run at (160,0) width 0: " "
text run at (0,16) width 128: ".1 {color: red;}"
text run at (128,16) width 0: " "
text run at (0,32) width 152: ".a1 {color: green;}"
text run at (152,32) width 0: " "
text run at (0,48) width 176: "P.two {color: purple;}"
text run at (176,48) width 0: " "
LayoutBlockFlow {HR} at (0,111) size 784x2 [border: (1px inset #EEEEEE)]
LayoutBlockFlow {P} at (0,129) size 784x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x17
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (0,163) size 784x18
LayoutText {#text} at (0,0) size 570x17
text run at (0,0) width 570: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (0,197) size 784x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x17
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (0,231) size 784x18 [color=#800080]
LayoutText {#text} at (0,0) size 203x17
text run at (0,0) width 203: "This sentence should be purple."
LayoutBlockFlow {PRE} at (0,265) size 784x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (0,297) size 784x18
LayoutListItem {LI} at (40,0) size 744x18
LayoutListMarker (anonymous) at (-17,0) size 7x17: bullet
LayoutText {#text} at (0,0) size 240x17
text run at (0,0) width 240: "This sentence should NOT be purple."
LayoutTable {TABLE} at (0,331) size 592x238 [border: (1px outset #808080)]
LayoutTableSection {TBODY} at (1,1) size 590x236
LayoutTableRow {TR} at (0,0) size 590x26
LayoutTableCell {TD} at (0,0) size 590x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=0 c=0 rs=1 cs=2]
LayoutInline {STRONG} at (0,0) size 161x17
LayoutText {#text} at (4,4) size 161x17
text run at (4,4) width 161: "TABLE Testing Section"
LayoutTableRow {TR} at (0,26) size 590x210
LayoutTableCell {TD} at (0,118) size 12x26 [bgcolor=#C0C0C0] [border: (1px inset #808080)] [r=1 c=0 rs=1 cs=1]
LayoutText {#text} at (4,4) size 4x17
text run at (4,4) width 4: " "
LayoutTableCell {TD} at (12,26) size 578x210 [border: (1px inset #808080)] [r=1 c=1 rs=1 cs=1]
LayoutBlockFlow {P} at (4,4) size 570x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x17
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (4,38) size 570x18
LayoutText {#text} at (0,0) size 570x17
text run at (0,0) width 570: "This sentence should be black, not red-- class selectors cannot begin with digits in CSS1."
LayoutBlockFlow {P} at (4,72) size 570x18 [color=#008000]
LayoutText {#text} at (0,0) size 197x17
text run at (0,0) width 197: "This sentence should be green."
LayoutBlockFlow {P} at (4,106) size 570x18 [color=#800080]
LayoutText {#text} at (0,0) size 203x17
text run at (0,0) width 203: "This sentence should be purple."
LayoutBlockFlow {PRE} at (4,140) size 570x16
LayoutText {#text} at (0,0) size 280x16
text run at (0,0) width 280: "This sentence should NOT be purple."
text run at (280,0) width 0: " "
LayoutBlockFlow {UL} at (4,172) size 570x18
LayoutListItem {LI} at (40,0) size 530x18
LayoutListMarker (anonymous) at (-17,0) size 7x17: bullet
LayoutText {#text} at (0,0) size 240x17
text run at (0,0) width 240: "This sentence should NOT be purple."
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment