1.

What is css paint api?

Answer»

To apply stroke on text and fill color, the property text-stroke and text-fill-color can be used with prefix. The same property with prefix (-webkit) is supported by edge, FIREFOX, chrome, safari and opera.

  • HTML
<DIV id="fill-stroke"&GT;   <h1>     Stroke &amp; Fill   </h1> </div>
  • CSS  
h1 {   font-family: Arial, Helvetica, Sans-serif; } #fill-stroke {   background-color: RGB(255, 255, 255);   color: rgb(102, 102, 102);   -webkit-text-stroke: 1.4px rgb(0, 0, 0);   -webkit-text-fill-color: rgb(46, 255, 60); }

Output:



Discussion

No Comment Found