|
| 1 | +<!DOCTYPE html> |
| 2 | + |
| 3 | +<style> |
| 4 | +.unstyled span { color: orange; } |
| 5 | + |
| 6 | +.shadow p { text-shadow: 2px 2px 1px red; } |
| 7 | +.shadow p { text-decoration: underline line-through; } |
| 8 | +.shadow span x{ color: transparent; rgba(0,0,180,0.5); background: red; xrgba(0,0,180,0.5);} |
| 9 | +.shadow ::-moz-selection { color: white; background: rgba(0,0,255,0.5); } |
| 10 | +.shadow xspan::-moz-selection { color: rgba(0,0,255,0.5); background: rgba(255,255,0,0.5);} |
| 11 | + |
| 12 | +.cascade p::-moz-selection { color: yellow; background: green; } |
| 13 | +.cascade p::selection { color: yellow; background: green; } |
| 14 | + |
| 15 | +.inherit p::-moz-selection { color: yellow; background: green; } |
| 16 | +.inherit p::selection { color: yellow; background: green; } |
| 17 | +.inherit em::-moz-selection { color: inherit; background: inherit; } |
| 18 | +.inherit em::selection { color: inherit; background: inherit; } |
| 19 | + |
| 20 | +.initial ::-moz-selection { background: green; } |
| 21 | +.initial ::selection { background: green; } |
| 22 | +.initial span { color: orange; } |
| 23 | + |
| 24 | +.override ::-moz-selection { display: inline; } |
| 25 | +.override ::selection { display: inline; } |
| 26 | + |
| 27 | + |
| 28 | +.override2 ::-moz-selection { display: block; } |
| 29 | +.override2 ::selection { display: block; } |
| 30 | +</style> |
| 31 | + |
| 32 | +<div class="unstyled"> |
| 33 | +<p>This is <span>some</span> text</p> |
| 34 | +</div> |
| 35 | + |
| 36 | +<div class="shadow"> |
| 37 | +<p>This is <span>some</span> text</p> |
| 38 | +</div> |
| 39 | + |
| 40 | +<div class="cascade"> |
| 41 | +<p>This is <span>some</span> <em>text</em></p> |
| 42 | +</div> |
| 43 | + |
| 44 | +<div class="inherit"> |
| 45 | +<p>This is <span>some</span> <em>text</em></p> |
| 46 | +</div> |
| 47 | + |
| 48 | +<div class="initial"> |
| 49 | +<p>This is <span>some</span> <em>text</em></p> |
| 50 | +</div> |
| 51 | + |
| 52 | +<div class="override"> |
| 53 | +<p>This is <span>some</span> <em>text</em></p> |
| 54 | +</div> |
| 55 | + |
| 56 | + |
| 57 | +<div class="override2"> |
| 58 | +<p>This is <span>some</span> <em>text</em></p> |
| 59 | +</div> |
0 commit comments