summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-visited/caret-color-on-visited-1.html
blob: 92443cdf5da1938a759e7041c95eadc8ef42e9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<style>
@font-face {
  font-family: Ahem;
  src: url(Ahem.ttf);
}
a {
  caret-color: red;
}
a:visited {
  caret-color: green;
}
textarea {
  caret-color: inherit;
  font: 16px/1 Ahem;
  outline: none;
  border: 0 none;
  resize: none;
  padding: 0;
  margin: 0;
}
</style>
<a href="visited-page.html"><textarea></textarea></a>
<script>
  document.querySelector('textarea').focus();
</script>