forked from w3c/csswg-drafts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselection-tests.html
59 lines (43 loc) · 1.61 KB
/
selection-tests.html
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
<!DOCTYPE html>
<style>
.unstyled span { color: orange; }
.shadow p { text-shadow: 2px 2px 1px red; }
.shadow p { text-decoration: underline line-through; }
.shadow span x{ color: transparent; rgba(0,0,180,0.5); background: red; xrgba(0,0,180,0.5);}
.shadow ::-moz-selection { color: white; background: rgba(0,0,255,0.5); }
.shadow xspan::-moz-selection { color: rgba(0,0,255,0.5); background: rgba(255,255,0,0.5);}
.cascade p::-moz-selection { color: yellow; background: green; }
.cascade p::selection { color: yellow; background: green; }
.inherit p::-moz-selection { color: yellow; background: green; }
.inherit p::selection { color: yellow; background: green; }
.inherit em::-moz-selection { color: inherit; background: inherit; }
.inherit em::selection { color: inherit; background: inherit; }
.initial ::-moz-selection { background: green; }
.initial ::selection { background: green; }
.initial span { color: orange; }
.override ::-moz-selection { display: inline; }
.override ::selection { display: inline; }
.override2 ::-moz-selection { display: block; }
.override2 ::selection { display: block; }
</style>
<div class="unstyled">
<p>This is <span>some</span> text</p>
</div>
<div class="shadow">
<p>This is <span>some</span> text</p>
</div>
<div class="cascade">
<p>This is <span>some</span> <em>text</em></p>
</div>
<div class="inherit">
<p>This is <span>some</span> <em>text</em></p>
</div>
<div class="initial">
<p>This is <span>some</span> <em>text</em></p>
</div>
<div class="override">
<p>This is <span>some</span> <em>text</em></p>
</div>
<div class="override2">
<p>This is <span>some</span> <em>text</em></p>
</div>