I've been working on a personal project using NextJs and TailwindCSS. Upon completion, I decided to check my progress using different browsers only to discover that the text stroke effect is not displaying properly in all browsers except Chrome.
Here's what I'm experiencing:
https://i.sstatic.net/7lXgc.jpg
Here's the desired outcome:
https://i.sstatic.net/JxV6H.jpg
Below is the code snippet used:
<div className="outline-title text-white pb-2 text-5xl font-bold text-center mb-12 mt-8">
Values & Process
</div>
CSS styling applied:
.outline-title {
color: rgba(0, 0, 0, 0);
-webkit-text-stroke: 2px black;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
If anyone can explain this issue or provide guidance on how to resolve it, I would greatly appreciate it.
Current browser compatibility is shown here: https://i.sstatic.net/kN0te.jpg