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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
content / test / data / accessibility / css / alt-text.html [blame]
<style>
#controlparent::before {
content: "item1" "item2" url(bullet.png);
}
</style>
<div id="controlparent">
<span id="controlchild">Some Text</span>
</div>
<style>
#parent::before {
content: "\25BA" / "code";
}
</style>
<div id="parent">
<span id="child">Some Text</span>
</div>
<style>
#parentempty::before {
content: "\25BA" / "";
}
</style>
<div id="parentempty">
<span id="childempty">Some Text</span>
</div>
<style>
#imgparent::before {
content: url(bullet.png) / "star";
}
</style>
<div id="imgparent"class="title">
<span id="imgchild">Some Text</span>
</div>
<style>
#imgparentempty::before {
content: url(bullet.png) / "";
}
</style>
<div id="imgparentempty"class="title">
<span id="imgchildempty">Some Text</span>
</div>
<style>
#divlistparent::before {
content: "item1" "item2" url(bullet.png) / "a list of items";
}
</style>
<div id="divlistparent" class="title">
<span id="divlistchild">Some Text</span>
</div>
<style>
#emptylistparent::before {
content: url(bullet.png) "item1" "item2" url(bullet.png) / "";
}
</style>
<div id="emptylistparent" class="title">
<span id="emptylistchild">Some Text</span>
</div>
<style>
#firstletterchild::first-letter {
color: red;
content: "Foo" / "Bar";
}
</style>
<div id="firstletterparent">
<p id="firstletterchild">Some Text</p>
</div>
<style>
#divcontent {
content: url(bullet.png) / "alt";
}
</style>
<div id="divcontent">Div text content</div>
<!--- The following test cases are merely here to test that the addition of alt
text support has not altered the default behaviour if the content property is
incorrectly supplied -->
<style>
#divdoubleimage {
content: url(bullet.png) url(bullet.png) / "alt";
}
</style>
<div id="divdoubleimage">DOM Text</div>
<style>
#divtextcontent {
content: "text content replacement" / "alt";
}
</style>
<div id="divtextcontent">DOM Text</div>