CSS Live Demo: -webkit-text-stroke Click the demo button below!
selector {
    -webkit-text-stroke: <'-webkit-text-stroke-width'> || <'-webkit-text-stroke-color'>;
    /*
        These values correspond to the values of the
        -webkit-text-stroke-width and
        -webkit-text-stroke-color properties.
        The order of these property values does not matter.
        If a property value is omitted, its initial value is used.
    */
}
/* width | color */
-webkit-text-stroke: 3px magenta;
-webkit-text-stroke: thin magenta;
-webkit-text-stroke: medium magenta;
-webkit-text-stroke: thick magenta;

/* color | width */
-webkit-text-stroke: magenta 3px;
-webkit-text-stroke: rgba(0, 0, 0, 0.6) 3px;

/* width: % values are not allowed */
-webkit-text-stroke: 5% magenta;

/* Global values */
-webkit-text-stroke: inherit;
-webkit-text-stroke: initial;
-webkit-text-stroke: revert;
-webkit-text-stroke: revert-layer;
-webkit-text-stroke: unset;
Overlapping Paths in Variable Fonts
<style>
    @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,900;1,900&display=swap');
    .text {
        font-family: "Roboto", sans-serif;
        font-size: 47px;
        font-weight: 900;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: 1px red;
    }
</style>
<p class="text">ABCDEF</p>
Live Example Preview
<style>
    .text {
        font-size: 47px;
        font-weight: 900;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: 1px red;
    }
</style>
<p class="text">TEXT STROKE</p>
Rendered Output
<style>
    .text {
        font-size: 47px;
        font-weight: 900;
        color: #fff;
        -webkit-text-stroke: 1px red;
        text-shadow: 1px 4px red;
    }
</style>
<p class="text">TEXT STROKE</p>
Rendered Output
<style>
    .text {
        font-size: 47px;
        font-weight: 900;
        color: #fff;
        -webkit-text-stroke: 5px transparent;
        -webkit-background-clip: text;
        background-clip: text;
        background-image: linear-gradient(to bottom, red, blue);
    }
</style>
<p class="text">TEXT STROKE</p>
Rendered Output