paint-order: stroke; worked wonders for me in this D3 chart I’m working on.
My final css:
.name-text {
font-size: 18px;
paint-order: stroke;
stroke: #000000;
stroke-width: 1px;
stroke-linecap: butt;
stroke-linejoin: miter;
font-weight: 800;
}
My source (scroll down just a bit):
https://svgwg.org/svg2-draft/painting.html#PaintOrderProperty