marker-shadow.html 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE HTML>
  2. <!--
  3. Any copyright is dedicated to the Public Domain.
  4. http://creativecommons.org/licenses/publicdomain/
  5. Test: Marker should have text-shadow applied to it
  6. -->
  7. <html>
  8. <head>
  9. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  10. <style type="text/css">
  11. @font-face {
  12. font-family: DejaVuSansMono;
  13. src: url(../fonts/DejaVuSansMono.woff);
  14. }
  15. /* overflow:hidden will clip off some of our text-shadow too.
  16. Give us some padding, so we can put the shadow to the left and bottom
  17. and beat the overflow clipping. */
  18. div {
  19. font-family: DejaVuSansMono;
  20. width: 5em;
  21. padding-left: 1em;
  22. padding-bottom: 1em;
  23. overflow: hidden;
  24. white-space: nowrap;
  25. text-overflow: "...";
  26. text-shadow: -0.5em 3px 2px red;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <div>HelloKitty</div>
  32. </body>
  33. </html>