text-shadow-selected-1-notref.html 624 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. function onload() {
  6. window.focus();
  7. var range = document.createRange();
  8. range.selectNodeContents(document.getElementById("selectMe"));
  9. var sel = window.getSelection();
  10. sel.removeAllRanges();
  11. sel.addRange(range);
  12. }
  13. </script>
  14. <style type="text/css">
  15. body {
  16. background: lightGray;
  17. }
  18. div {
  19. position: absolute;
  20. top: 10px;
  21. left: 10px;
  22. font: 36px monospace;
  23. color: white;
  24. }
  25. </style>
  26. </head>
  27. <!-- NOTREF case has selected text but the shadow is missing -->
  28. <body onload="onload()">
  29. <div id="selectMe">selected shadowed text</div>
  30. </body>
  31. </html>