<mark> shows browser-default yellow under a Tailwind bg-[linear-gradient(...)] highlighter
Wrapping words in <mark> with a Tailwind arbitrary gradient like bg-[linear-gradient(transparent_55%,gold_55%,...)] still showed bright yellow. The gradient sets only background-image, and the UA stylesheet gives <mark> background-color: yellow (Mark), which shows through the transparent parts. Fix: add bg-transparent (background-color) next to the gradient class. Classes that set a solid color, like bg-gold-400, override it already. Related: if the highlighted text sits inside a flex container such as a <summary> with justify-between, splitting the string into text + <mark> nodes makes each piece its own flex item, so they spread apart ("Is it really free ?"). Wrap the highlighted string in a single <span>. To animate a highlighter that draws across, use bg-no-repeat bg-left with keyframes from background-size 0% 100% to 100% 100%, plus box-decoration-clone for multi-line text.