Skip to content

Commit 42f7c03

Browse files
committed
HTML: tests for legacy HTML3 colors, etc
1 parent 342554c commit 42f7c03

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/example.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html><head><style type="text/css">
2+
/* This section is small because we want to focus on HTML style attributes.
3+
See example.css or suite.css for better tests for this section. */
4+
.red { color: #faa !important; white-space:nowrap }
5+
</style>
6+
</head><body text="white" bgcolor="#777" link="cyan" alink="#0f0">
7+
8+
<!-- TODO: eat green #f00d, make gold, get a tan -->
9+
10+
<p class="red red-room" style="color:red; white-space:nowrap">#faa</p>
11+
12+
<p class='blue seeing-red' style='color:red' data-red='red'>#ff0000</p>
13+
14+
<!-- We don't color bgcolor here because <font> doesn't support it. -->
15+
<p>Text that is <font color="#600" bgcolor="#aaffff">red</font>.</p>
16+
17+
<p>
18+
Here's a <a href="example.html">visited link</a>
19+
and an <a href="https://127.123.45.43:21">unvisited link</a>.
20+
</p>
21+
22+
</body></html>

0 commit comments

Comments
 (0)