webkit-text-stroke-property-005.html 866 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <title>webkit-text-stroke: 2px green</title>
  5. <link rel="author" title="Jeremy Chen" href="jeremychen@mozilla.com">
  6. <link rel="author" title="Mozilla" href="https://www.mozilla.org">
  7. <link rel="help" href="https://compat.spec.whatwg.org/#the-webkit-text-stroke">
  8. <meta name="assert" content="webkit-text-stroke-color should take effect">
  9. <link rel="match" href="webkit-text-stroke-property-005-ref.html">
  10. <style>
  11. text {
  12. padding-left: 0px;
  13. color: red;
  14. font-size: 64px;
  15. -webkit-text-fill-color: transparent;
  16. -webkit-text-stroke: 2px green;
  17. }
  18. </style>
  19. <body>
  20. <div style="width: 500px; height: 200px;">
  21. <text>TEXT stroke</text>
  22. <!-- need this inline-block to make sure text is rendered at the same position as the SVG reference -->
  23. <div style="display:inline-block; width:0px; height:100px;"/>
  24. </div>
  25. <body>
  26. <html>